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
qqmldebugservice_p.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
QQMLDEBUGSERVICE_H
6
#
define
QQMLDEBUGSERVICE_H
7
8
#
include
<
QtCore
/
qobject
.
h
>
9
#
include
<
QtCore
/
qhash
.
h
>
10
11
#
include
<
private
/
qtqmlglobal_p
.
h
>
12
13
//
14
// W A R N I N G
15
// -------------
16
//
17
// This file is not part of the Qt API. It exists purely as an
18
// implementation detail. This header file may change from version to
19
// version without notice, or even be removed.
20
//
21
// We mean it.
22
//
23
24
QT_REQUIRE_CONFIG
(
qml_debug
);
25
26
QT_BEGIN_NAMESPACE
27
28
class
QJSEngine;
29
30
class
QQmlDebugServicePrivate
;
31
class
Q_QML_EXPORT
QQmlDebugService
:
public
QObject
32
{
33
Q_OBJECT
34
Q_DECLARE_PRIVATE(QQmlDebugService)
35
36
public
:
37
~QQmlDebugService() override;
38
39
const
QString &name()
const
;
40
float
version()
const
;
41
42
enum
State { NotConnected, Unavailable, Enabled };
43
State state()
const
;
44
void
setState(State newState);
45
46
virtual
void
stateAboutToBeChanged(State) {}
47
virtual
void
stateChanged(State) {}
48
virtual
void
messageReceived(
const
QByteArray &) {}
49
50
virtual
void
engineAboutToBeAdded(QJSEngine *engine) { Q_EMIT attachedToEngine(engine); }
51
virtual
void
engineAboutToBeRemoved(QJSEngine *engine) { Q_EMIT detachedFromEngine(engine); }
52
53
virtual
void
engineAdded(QJSEngine *) {}
54
virtual
void
engineRemoved(QJSEngine *) {}
55
56
static
const
QHash<
int
, QObject *> &objectsForIds();
57
static
int
idForObject(QObject *);
58
static
QObject *objectForId(
int
id) {
return
objectsForIds().value(id); }
59
60
protected
:
61
explicit
QQmlDebugService(
const
QString &,
float
version, QObject *parent =
nullptr
);
62
63
Q_SIGNALS:
64
void
attachedToEngine(QJSEngine *);
65
void
detachedFromEngine(QJSEngine *);
66
67
void
messageToClient(
const
QString &name,
const
QByteArray &message);
68
void
messagesToClient(
const
QString &name,
const
QList<QByteArray> &messages);
69
};
70
71
QT_END_NAMESPACE
72
73
#
endif
// QQMLDEBUGSERVICE_H
QQmlDebugServiceFactory
Definition
qqmldebugservicefactory_p.h:24
QQmlDebugServicePrivate
Definition
qqmldebugservice.cpp:26
QQmlDebugService
\inmodule QtQml
Definition
qqmldebugservice_p.h:32
QSqlRelationalDelegate
\inmodule QtSql
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
Q_QML_DEBUG_PLUGIN_LOADER
#define Q_QML_DEBUG_PLUGIN_LOADER(interfaceName)
Definition
qqmldebugpluginmanager_p.h:27
QQmlDebugConnectorParams
Definition
qqmldebugconnector.cpp:28
QQmlDebugConnectorParams::instance
QQmlDebugConnector * instance
Definition
qqmldebugconnector.cpp:32
QQmlDebugConnectorParams::arguments
QString arguments
Definition
qqmldebugconnector.cpp:31
QQmlDebugConnectorParams::QQmlDebugConnectorParams
QQmlDebugConnectorParams()
Definition
qqmldebugconnector.cpp:34
QQmlDebugConnectorParams::pluginKey
QString pluginKey
Definition
qqmldebugconnector.cpp:29
QQmlDebugConnectorParams::services
QStringList services
Definition
qqmldebugconnector.cpp:30
qtdeclarative
src
qml
debugger
qqmldebugservice_p.h
Generated on
for Qt by
1.18.0