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 QQMLINSPECTORCLIENT_P_H
5#define QQMLINSPECTORCLIENT_P_H
6
7#include <private/qqmldebugclient_p.h>
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20QT_BEGIN_NAMESPACE
21
22class QQmlInspectorClientPrivate;
23class QQmlInspectorClient : public QQmlDebugClient
24{
25 Q_OBJECT
26 Q_DECLARE_PRIVATE(QQmlInspectorClient)
27
28public:
29 QQmlInspectorClient(QQmlDebugConnection *connection);
30
31 int setInspectToolEnabled(bool enabled);
32 int setShowAppOnTop(bool showOnTop);
33 int setAnimationSpeed(qreal speed);
34 int select(const QList<int> &objectIds);
35 int createObject(const QString &qml, int parentId, const QStringList &imports,
36 const QString &filename);
37 int moveObject(int childId, int newParentId);
38 int destroyObject(int objectId);
39
40Q_SIGNALS:
41 void responseReceived(int requestId, bool result);
42
43protected:
44 void messageReceived(const QByteArray &message) override;
45};
46
47QT_END_NAMESPACE
48
49#endif // QQMLINSPECTORCLIENT_P_H
50

source code of qtdeclarative/src/qmldebug/qqmlinspectorclient_p.h