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

Connects every traced signal of one object, and follows its children. More...

Inheritance diagram for Sonde::anonymous_namespace{signaltrace.cpp}::TraceHandler:

Public Member Functions

 TraceHandler (Trace *trace, QObject *sender, int depth, QList< QMetaMethod > signalList)
 Connects signalList of sender, which is depth below the trace's root.
const QMetaObject * metaObject () const override
 The SlotMetaObject.
int qt_metacall (QMetaObject::Call call, int id, void **argv) override
 Calls of the slots go to emitted(); everything else to QObject.
bool eventFilter (QObject *watched, QEvent *event) override
 Notices children being added to the sender.
QObject * traced () const
 The traced object.
int depth () const
 How far below the trace's root it is.
int connections () const
 How many of its signals are connected.
const QString & brief () const
 describeBrief() of the object, taken when the trace started.
const QString & id () const
 idFor() of the object.
const QMetaMethod & signalAt (int slot) const
 The traced signal behind slot slot.

Private Member Functions

void emitted (int slot, void **argv)
 One emission of signal slot, whose arguments are argv[1..n].

Private Attributes

QPointer< Trace > m_trace
 The trace (also this object's parent).
QPointer< QObject > m_sender
 The traced object.
int m_depth
 Below the root.
QList< QMetaMethod > m_signals
 The traced signals, by slot.
const QMetaObject * m_meta
 One slot per signal.
QString m_brief
 describeBrief() of the sender.
QString m_id
 idFor() of the sender.
int m_connections = 0
 Signals actually connected.

Detailed Description

Connects every traced signal of one object, and follows its children.

Has no Q_OBJECT: its meta-object is a SlotMetaObject with one slot per signal, and qt_metacall() handles calls to them.


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