| 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 | |
| 4 | #ifndef QQMLENGINECONTROLCLIENT_P_H |
| 5 | #define QQMLENGINECONTROLCLIENT_P_H |
| 6 | |
| 7 | #include "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 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QQmlEngineControlClientPrivate; |
| 23 | class QQmlEngineControlClient : public QQmlDebugClient |
| 24 | { |
| 25 | Q_OBJECT |
| 26 | Q_DECLARE_PRIVATE(QQmlEngineControlClient) |
| 27 | public: |
| 28 | QQmlEngineControlClient(QQmlDebugConnection *connection); |
| 29 | |
| 30 | void blockEngine(int engineId); |
| 31 | void releaseEngine(int engineId); |
| 32 | |
| 33 | QList<int> blockedEngines() const; |
| 34 | |
| 35 | Q_SIGNALS: |
| 36 | void engineAboutToBeAdded(int engineId, const QString &name); |
| 37 | void engineAdded(int engineId, const QString &name); |
| 38 | void engineAboutToBeRemoved(int engineId, const QString &name); |
| 39 | void engineRemoved(int engineId, const QString &name); |
| 40 | |
| 41 | protected: |
| 42 | QQmlEngineControlClient(QQmlEngineControlClientPrivate &dd); |
| 43 | |
| 44 | private: |
| 45 | void messageReceived(const QByteArray &) override; |
| 46 | }; |
| 47 | |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif // QQMLENGINECONTROLCLIENT_P_H |
| 51 |
