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
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
11QT_BEGIN_NAMESPACE
12
13class QQmlNativeDebugConnector : public QQmlDebugConnector
14{
15 Q_OBJECT
16
17public:
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
31private:
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 QVector<QQmlDebugService *> m_services;
37 QVector<QJSEngine *> m_engines;
38 bool m_blockingMode;
39};
40
42{
43 Q_OBJECT
44 Q_PLUGIN_METADATA(IID QQmlDebugConnectorFactory_iid FILE "qqmlnativedebugconnector.json")
45public:
47};
48
49QT_END_NAMESPACE
50
51#endif // QQMLNATIVEDEBUGCONNECTOR_H
Q_GLOBAL_STATIC(QReadWriteLock, g_updateMutex)
quintptr qt_qmlDebugTestHooks[]
QML_DEBUG_EXPORT const char * qt_qmlDebugMessageBuffer
QML_DEBUG_EXPORT void qt_qmlDebugClearBuffer()
QML_DEBUG_EXPORT void qt_qmlDebugSetStreamVersion(int version)
QML_DEBUG_EXPORT int qt_qmlDebugMessageLength
QML_DEBUG_EXPORT void qt_qmlDebugConnectorOpen()
QML_DEBUG_EXPORT bool qt_qmlDebugSendDataToService(const char *serviceName, const char *hexData)
QML_DEBUG_EXPORT void qt_qmlDebugObjectAvailable()
QML_DEBUG_EXPORT void qt_qmlDebugMessageAvailable()
QML_DEBUG_EXPORT bool qt_qmlDebugDisableService(const char *data)
static QT_USE_NAMESPACE bool expectSyncronousResponse
#define QML_DEBUG_EXPORT
QML_DEBUG_EXPORT bool qt_qmlDebugEnableService(const char *data)
QML_DEBUG_EXPORT bool qt_qmlDebugConnectionBlocker
#define TRACE_PROTOCOL(x)