Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{qmlwindowtools.cpp}::QmlEventBridge Class Reference

The sonde object of every window's context: re-emits Sonde's events for QML. More...

Inheritance diagram for Sonde::anonymous_namespace{qmlwindowtools.cpp}::QmlEventBridge:

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).

Detailed Description

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).


The documentation for this class was generated from the following file: