|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Classes | |
| class | SignalWatcher |
| Turns each emission of one signal of one object into an event. More... | |
| struct | Watches |
| The active watches: an id each, and one watcher per watched overload. More... | |
Functions | |
| constexpr QLatin1StringView | kSourceName ("signals") |
| Name of the event source the emissions go to. | |
| bool | isClone (const QMetaMethod &m) |
Whether m is a copy moc made for a default argument. | |
| QList< QMetaMethod > | matchingSignals (const QMetaObject *mo, const QString &name) |
The signals of mo named name, or with exactly that signature if name contains '('. | |
| QString | signalNames (const QMetaObject *mo) |
The signal names of mo, for error messages. | |
| ToolResult | signalWatch (Server &server, const std::shared_ptr< Watches > &watches, const QJsonObject &args) |
| The signal_watch tool. | |
| ToolResult | signalUnwatch (const std::shared_ptr< Watches > &watches, const QJsonObject &args) |
| The signal_unwatch tool. | |
Variables | |
| constexpr int | kMaxWatches = 64 |
| Most watches that can be active at once. | |
| QList< QMetaMethod > Sonde::anonymous_namespace{signaltools.cpp}::matchingSignals | ( | const QMetaObject * | mo, |
| const QString & | name ) |
The signals of mo named name, or with exactly that signature if name contains '('.
By name, moc's clones are left out: for a signal with default arguments, such as QAbstractButton::clicked(bool checked = false), moc adds clicked(), which is emitted together with clicked(bool). Watching both would report every emission twice.