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 QV4DEBUGCLIENT_P_P_H |
5 | #define QV4DEBUGCLIENT_P_P_H |
6 | |
7 | #include "qv4debugclient_p.h" |
8 | #include "qqmldebugclient_p_p.h" |
9 | |
10 | #include <QtCore/qjsonobject.h> |
11 | |
12 | // |
13 | // W A R N I N G |
14 | // ------------- |
15 | // |
16 | // This file is not part of the Qt API. It exists purely as an |
17 | // implementation detail. This header file may change from version to |
18 | // version without notice, or even be removed. |
19 | // |
20 | // We mean it. |
21 | // |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | class QV4DebugClientPrivate : public QQmlDebugClientPrivate |
26 | { |
27 | Q_DECLARE_PUBLIC(QV4DebugClient) |
28 | |
29 | public: |
30 | QV4DebugClientPrivate(QQmlDebugConnection *connection); |
31 | |
32 | void sendMessage(const QByteArray &command, const QJsonObject &args = QJsonObject()); |
33 | void flushSendBuffer(); |
34 | QByteArray packMessage(const QByteArray &type, const QJsonObject &object); |
35 | void onStateChanged(QQmlDebugClient::State state); |
36 | |
37 | int seq = 0; |
38 | QList<QByteArray> sendBuffer; |
39 | QByteArray response; |
40 | }; |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QV4DEBUGCLIENT_P_P_H |
45 |