Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlenginedebugclient_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLENGINEDEBUGCLIENT_H
5#define QQMLENGINEDEBUGCLIENT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qqmldebugclient_p.h>
19#include <private/qpacket_p.h>
20
21#include <QtCore/qurl.h>
22#include <QtCore/qvariant.h>
23
24QT_BEGIN_NAMESPACE
25
26struct QQmlEngineDebugPropertyReference
27{
28 qint32 objectDebugId = -1;
29 QString name;
30 QVariant value;
31 QString valueTypeName;
32 QString binding;
33 bool hasNotifySignal = false;
34};
35
42
54
62
68
71{
72 Q_OBJECT
73 Q_DECLARE_PRIVATE(QQmlEngineDebugClient)
74
75public:
77
78 qint32 addWatch(const QQmlEngineDebugPropertyReference &,
79 bool *success);
80 qint32 addWatch(const QQmlEngineDebugContextReference &, const QString &,
81 bool *success);
82 qint32 addWatch(const QQmlEngineDebugObjectReference &, const QString &,
83 bool *success);
85 bool *success);
87 bool *success);
88
89 void removeWatch(qint32 watch, bool *success);
90
91 qint32 queryAvailableEngines(bool *success);
93 bool *success);
95 bool *success);
96 qint32 queryObjectsForLocation(const QString &file,
97 qint32 lineNumber, qint32 columnNumber, bool *success);
99 bool *success);
100 qint32 queryObjectsForLocationRecursive(const QString &file,
101 qint32 lineNumber, qint32 columnNumber, bool *success);
102 qint32 queryExpressionResult(qint32 objectDebugId,
103 const QString &expr,
104 bool *success);
105 qint32 queryExpressionResultBC(qint32 objectDebugId,
106 const QString &expr,
107 bool *success);
108 qint32 setBindingForObject(qint32 objectDebugId, const QString &propertyName,
109 const QVariant &bindingExpression,
110 bool isLiteralValue,
111 const QString &source, qint32 line, bool *success);
112 qint32 resetBindingForObject(qint32 objectDebugId,
113 const QString &propertyName, bool *success);
114 qint32 setMethodBody(qint32 objectDebugId, const QString &methodName,
115 const QString &methodBody, bool *success);
116
117 qint32 getId();
118
119 void decode(QPacket &ds, QQmlEngineDebugContextReference &);
120 void decode(QPacket &ds, QQmlEngineDebugObjectReference &, bool simple);
121 void decode(QPacket &ds, QList<QQmlEngineDebugObjectReference> &o, bool simple);
122
127 QVariant resultExpr() const;
128 bool valid() const;
129
133 void result();
134
135protected:
136 void messageReceived(const QByteArray &) override;
137};
138
139QT_END_NAMESPACE
140
141Q_DECLARE_METATYPE(QQmlEngineDebugObjectReference)
142
143#endif // QQMLENGINEDEBUGCLIENT_H
QQmlEngineDebugContextReference rootContext
QList< QQmlEngineDebugObjectReference > objects
QList< QQmlEngineDebugEngineReference > engines
QQmlEngineDebugObjectReference object
qint32 addWatch(const QQmlEngineDebugContextReference &, const QString &, bool *success)
qint32 resetBindingForObject(qint32 objectDebugId, const QString &propertyName, bool *success)
void decode(QPacket &ds, QQmlEngineDebugContextReference &)
qint32 queryObjectsForLocationRecursive(const QString &file, qint32 lineNumber, qint32 columnNumber, bool *success)
qint32 queryExpressionResultBC(qint32 objectDebugId, const QString &expr, bool *success)
QList< QQmlEngineDebugObjectReference > objects() const
qint32 addWatch(const QQmlEngineDebugFileReference &, bool *success)
qint32 queryExpressionResult(qint32 objectDebugId, const QString &expr, bool *success)
qint32 queryRootContexts(const QQmlEngineDebugEngineReference &, bool *success)
qint32 addWatch(const QQmlEngineDebugObjectReference &, const QString &, bool *success)
void removeWatch(qint32 watch, bool *success)
qint32 queryAvailableEngines(bool *success)
void decode(QPacket &ds, QList< QQmlEngineDebugObjectReference > &o, bool simple)
qint32 addWatch(const QQmlEngineDebugObjectReference &, bool *success)
qint32 setMethodBody(qint32 objectDebugId, const QString &methodName, const QString &methodBody, bool *success)
qint32 addWatch(const QQmlEngineDebugPropertyReference &, bool *success)
qint32 setBindingForObject(qint32 objectDebugId, const QString &propertyName, const QVariant &bindingExpression, bool isLiteralValue, const QString &source, qint32 line, bool *success)
qint32 queryObjectRecursive(const QQmlEngineDebugObjectReference &, bool *success)
QQmlEngineDebugContextReference rootContext() const
void messageReceived(const QByteArray &) override
QQmlEngineDebugObjectReference object() const
void valueChanged(QByteArray, QVariant)
qint32 queryObject(const QQmlEngineDebugObjectReference &, bool *success)
QList< QQmlEngineDebugEngineReference > engines() const
qint32 queryObjectsForLocation(const QString &file, qint32 lineNumber, qint32 columnNumber, bool *success)
void decode(QPacket &ds, QQmlEngineDebugObjectReference &, bool simple)
QPacket & operator>>(QPacket &ds, QQmlObjectProperty &data)
QPacket & operator>>(QPacket &ds, QQmlObjectData &data)
QList< QQmlEngineDebugContextReference > contexts
QList< QQmlEngineDebugObjectReference > objects
QList< QQmlEngineDebugPropertyReference > properties
QQmlEngineDebugFileReference source
QList< QQmlEngineDebugObjectReference > children