|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
The sonde object of every window's context: re-emits Sonde's events for QML. More...
Public Member Functions | |
| QmlEventBridge (QObject *parent) | |
Creates the bridge as a child of parent. | |
| void | follow (const QList< EventSource * > &sources) |
Starts re-emitting the events of every source in sources not followed yet. | |
| void | event (const QVariantMap &event) |
| An event happened: {source, level, category, message, data, time, ...}. | |
Private Attributes | |
| QSet< const QObject * > | m_followed |
| Sources already connected (compared by address only). | |
The sonde object of every window's context: re-emits Sonde's events for QML.
Connections { target: sonde; function onEvent(e) { ... } } receives each event as it is emitted, as the same object event_read returns (with sequence 0: the server numbers events after this signal).