7#include <QtCore/QJsonArray>
8#include <QtCore/QMetaMethod>
9#include <QtCore/QStringList>
10#include <QtCore/QVariantList>
26QVariantList
arguments(
const QMetaMethod &signal,
void *
const *argv);
29QJsonArray
toJson(
const QVariantList &args, QStringList *texts);
47 Q_DISABLE_COPY_MOVE(
Guard)
Base class for anything that produces a stream of events for MCP clients.
Definition eventsource.h:30
An embeddable Model Context Protocol server.
Definition server.h:92
Sets recording() for its lifetime, if it wasn't set already.
Definition signalcapture_p.h:37
~Guard()
Gives the flag back, if this guard took it.
Definition signalcapture_p.h:42
bool m_active
Whether this guard set the flag.
Definition signalcapture_p.h:53
bool active() const
Whether this guard took the flag (false: already recording, so don't).
Definition signalcapture_p.h:50
Guard()
Takes the flag; check active() before recording.
Definition signalcapture_p.h:40
Capturing the arguments of a signal emission.
Definition signalcapture_p.h:18
QJsonArray toJson(const QVariantList &args, QStringList *texts)
Converts what arguments() captured to JSON; texts receives each one as text.
Definition signaltools.cpp:54
bool & recording()
Set while this thread records an emission, so the signals that recording emits (the event machinery's...
Definition signaltools.cpp:72
QVariantList arguments(const QMetaMethod &signal, void *const *argv)
Copies the arguments of an emission of signal, which are argv[1..n].
Definition signaltools.cpp:26
Embeddable Model Context Protocol server for Qt applications.
Definition dispatch.cpp:10
void installSignalTraceTools(Server &server, EventSource *events)
Registers signal_trace_start and signal_trace_stop, which report to events.
Definition signaltrace.cpp:731