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// Qt-Security score:significant
4
5#ifndef QQMLENGINEDEBUGCLIENT_H
6#define QQMLENGINEDEBUGCLIENT_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qqmldebugclient_p.h>
20#include <private/qpacket_p.h>
21
22#include <QtCore/qurl.h>
23#include <QtCore/qvariant.h>
24
25QT_BEGIN_NAMESPACE
26
27struct QQmlEngineDebugPropertyReference
28{
29 qint32 objectDebugId = -1;
30 QString name;
31 QVariant value;
32 QString valueTypeName;
33 QString binding;
34 bool hasNotifySignal = false;
35};
36
43
55
63
69
72{
73 Q_OBJECT
74 Q_DECLARE_PRIVATE(QQmlEngineDebugClient)
75
76public:
78
79 qint32 addWatch(const QQmlEngineDebugPropertyReference &,
80 bool *success);
81 qint32 addWatch(const QQmlEngineDebugContextReference &, const QString &,
82 bool *success);
83 qint32 addWatch(const QQmlEngineDebugObjectReference &, const QString &,
84 bool *success);
86 bool *success);
88 bool *success);
89
90 void removeWatch(qint32 watch, bool *success);
91
92 qint32 queryAvailableEngines(bool *success);
94 bool *success);
96 bool *success);
97 qint32 queryObjectsForLocation(const QString &file,
98 qint32 lineNumber, qint32 columnNumber, bool *success);
100 bool *success);
101 qint32 queryObjectsForLocationRecursive(const QString &file,
102 qint32 lineNumber, qint32 columnNumber, bool *success);
103 qint32 queryExpressionResult(qint32 objectDebugId,
104 const QString &expr,
105 bool *success);
106 qint32 queryExpressionResultBC(qint32 objectDebugId,
107 const QString &expr,
108 bool *success);
109 qint32 setBindingForObject(qint32 objectDebugId, const QString &propertyName,
110 const QVariant &bindingExpression,
111 bool isLiteralValue,
112 const QString &source, qint32 line, bool *success);
113 qint32 resetBindingForObject(qint32 objectDebugId,
114 const QString &propertyName, bool *success);
115 qint32 setMethodBody(qint32 objectDebugId, const QString &methodName,
116 const QString &methodBody, bool *success);
117
118 qint32 getId();
119
120 void decode(QPacket &ds, QQmlEngineDebugContextReference &);
121 void decode(QPacket &ds, QQmlEngineDebugObjectReference &, bool simple);
122 void decode(QPacket &ds, QList<QQmlEngineDebugObjectReference> &o, bool simple);
123
128 QVariant resultExpr() const;
129 bool valid() const;
130
134 void result();
135
136protected:
137 void messageReceived(const QByteArray &) override;
138};
139
140QT_END_NAMESPACE
141
142Q_DECLARE_METATYPE(QQmlEngineDebugObjectReference)
143
144#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)
Combined button and popup list for selecting options.
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