Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qqmlnativedebugconnector.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
QQMLNATIVEDEBUGCONNECTOR_H
6
#
define
QQMLNATIVEDEBUGCONNECTOR_H
7
8
#
include
<
private
/
qqmldebugconnector_p
.
h
>
9
#
include
<
QtCore
/
qvector
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QQmlNativeDebugConnector :
public
QQmlDebugConnector
14
{
15
Q_OBJECT
16
17
public
:
18
QQmlNativeDebugConnector();
19
~QQmlNativeDebugConnector() override;
20
21
bool
blockingMode()
const
override;
22
QQmlDebugService *service(
const
QString &name)
const
override;
23
void
addEngine(QJSEngine *engine) override;
24
void
removeEngine(QJSEngine *engine) override;
25
bool
hasEngine(QJSEngine *engine)
const
override;
26
bool
addService(
const
QString &name, QQmlDebugService *service) override;
27
bool
removeService(
const
QString &name) override;
28
bool
open(
const
QVariantHash &configuration) override;
29
static
void
setDataStreamVersion(
int
version);
30
31
private
:
32
void
sendMessage(
const
QString &name,
const
QByteArray &message);
33
void
sendMessages(
const
QString &name,
const
QList<QByteArray> &messages);
34
void
announceObjectAvailability(
const
QString &objectType, QObject *object,
bool
available);
35
36
QList<QQmlDebugService *> m_services;
37
QList<QJSEngine *> m_engines;
38
bool
m_blockingMode;
39
};
40
41
class
QQmlNativeDebugConnectorFactory
:
public
QQmlDebugConnectorFactory
42
{
43
Q_OBJECT
44
Q_PLUGIN_METADATA(IID QQmlDebugConnectorFactory_iid FILE
"qqmlnativedebugconnector.json"
)
45
public
:
46
QQmlDebugConnector
*
create
(
const
QString
&
key
)
override
;
47
};
48
49
QT_END_NAMESPACE
50
51
#
endif
// QQMLNATIVEDEBUGCONNECTOR_H
QQmlNativeDebugConnectorFactory
Definition
qqmlnativedebugconnector.h:42
Q_GLOBAL_STATIC
Q_GLOBAL_STATIC(QReadWriteLock, g_updateMutex)
qt_qmlDebugTestHooks
quintptr qt_qmlDebugTestHooks[]
Definition
qqmlnativedebugconnector.cpp:125
qt_qmlDebugMessageBuffer
QML_DEBUG_EXPORT const char * qt_qmlDebugMessageBuffer
Definition
qqmlnativedebugconnector.cpp:35
qt_qmlDebugClearBuffer
QML_DEBUG_EXPORT void qt_qmlDebugClearBuffer()
Definition
qqmlnativedebugconnector.cpp:62
qt_qmlDebugSetStreamVersion
QML_DEBUG_EXPORT void qt_qmlDebugSetStreamVersion(int version)
Definition
qqmlnativedebugconnector.cpp:44
qt_qmlDebugMessageLength
QML_DEBUG_EXPORT int qt_qmlDebugMessageLength
Definition
qqmlnativedebugconnector.cpp:36
qt_qmlDebugConnectorOpen
QML_DEBUG_EXPORT void qt_qmlDebugConnectorOpen()
Definition
qqmlnativedebugconnector.cpp:138
qt_qmlDebugSendDataToService
QML_DEBUG_EXPORT bool qt_qmlDebugSendDataToService(const char *serviceName, const char *hexData)
Definition
qqmlnativedebugconnector.cpp:70
qt_qmlDebugObjectAvailable
QML_DEBUG_EXPORT void qt_qmlDebugObjectAvailable()
Definition
qqmlnativedebugconnector.cpp:58
qt_qmlDebugMessageAvailable
QML_DEBUG_EXPORT void qt_qmlDebugMessageAvailable()
Definition
qqmlnativedebugconnector.cpp:51
qt_qmlDebugDisableService
QML_DEBUG_EXPORT bool qt_qmlDebugDisableService(const char *data)
Definition
qqmlnativedebugconnector.cpp:108
expectSyncronousResponse
static QT_USE_NAMESPACE bool expectSyncronousResponse
Definition
qqmlnativedebugconnector.cpp:24
QML_DEBUG_EXPORT
#define QML_DEBUG_EXPORT
Definition
qqmlnativedebugconnector.cpp:30
qt_qmlDebugEnableService
QML_DEBUG_EXPORT bool qt_qmlDebugEnableService(const char *data)
Definition
qqmlnativedebugconnector.cpp:91
qt_qmlDebugConnectionBlocker
QML_DEBUG_EXPORT bool qt_qmlDebugConnectionBlocker
Definition
qqmlnativedebugconnector.cpp:37
TRACE_PROTOCOL
#define TRACE_PROTOCOL(x)
Definition
qv4debugservice.cpp:26
qtdeclarative
src
plugins
qmltooling
qmldbg_native
qqmlnativedebugconnector.h
Generated on
for Qt by
1.18.0