Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
qmldebugclient_p.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <QtCore/QList>
7#include <QtCore/QObject>
8#include <QtCore/QString>
9#include <QtCore/QUrl>
10#include <QtCore/QVariant>
11
12#include <functional>
13
14namespace Sonde::QmlDebug {
15
18{
19 QString name;
20 QString typeName;
21 QVariant value;
22 bool bound = false;
23};
24
27{
28 int debugId = -1;
29 int parentId = -1;
30 QString typeName;
31 QString idString;
32 QString objectName;
33 QUrl url;
34 int line = -1;
35 int column = -1;
36 QList<ServiceProperty> properties;
37};
38
47void start();
48
50bool isAvailable();
51
54QString status();
55
57using FetchCallback = std::function<void(const ServiceObject *object, const QString &error)>;
58
65void fetchProperties(QObject *object, QObject *context, const FetchCallback &done);
66
67} // namespace Sonde::QmlDebug
QString status()
What binding inspection through the service can do now, for app_info and qml_binding: "available",...
Definition qmldebugclient.cpp:800
void start()
Turns on QML debugging, with only the engine debug service, connected to a local socket Sonde opened ...
Definition qmldebugclient.cpp:790
bool isAvailable()
Whether the engine debug service is connected and answering.
Definition qmldebugclient.cpp:795
void fetchProperties(QObject *object, QObject *context, const FetchCallback &done)
Asks the service for object and its properties, each with whether it is bound now.
Definition qmldebugclient.cpp:805
std::function< void(const ServiceObject *object, const QString &error)> FetchCallback
Called with the object (properties included), or nullptr and why not.
Definition qmldebugclient_p.h:57
An object as the engine debug service reports it.
Definition qmldebugclient_p.h:27
int parentId
The service's id for its parent.
Definition qmldebugclient_p.h:29
int line
Where in that file.
Definition qmldebugclient_p.h:34
QString idString
Its id in QML, if it has one.
Definition qmldebugclient_p.h:31
QString objectName
Its objectName.
Definition qmldebugclient_p.h:32
QList< ServiceProperty > properties
Its properties (only from a full fetch).
Definition qmldebugclient_p.h:36
int debugId
The service's id for it.
Definition qmldebugclient_p.h:28
QUrl url
The file it is declared in.
Definition qmldebugclient_p.h:33
int column
Where on that line.
Definition qmldebugclient_p.h:35
QString typeName
Its QML type name.
Definition qmldebugclient_p.h:30
A property as the engine debug service reports it.
Definition qmldebugclient_p.h:18
bool bound
Whether a QML binding sets it now.
Definition qmldebugclient_p.h:22
QString name
Property name.
Definition qmldebugclient_p.h:19
QString typeName
Its type's name.
Definition qmldebugclient_p.h:20
QVariant value
Its value, if the service could send it.
Definition qmldebugclient_p.h:21