| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
| 3 | |
| 4 | #ifndef QMLPROFILERCLIENT_H |
| 5 | #define QMLPROFILERCLIENT_H |
| 6 | |
| 7 | #include <private/qqmlprofilerclient_p.h> |
| 8 | #include <private/qqmlprofilerclientdefinitions_p.h> |
| 9 | #include <private/qqmlprofilereventlocation_p.h> |
| 10 | |
| 11 | class QmlProfilerData; |
| 12 | class QmlProfilerClientPrivate; |
| 13 | class QmlProfilerClient : public QQmlProfilerClient |
| 14 | { |
| 15 | Q_OBJECT |
| 16 | Q_DECLARE_PRIVATE(QmlProfilerClient) |
| 17 | |
| 18 | public: |
| 19 | QmlProfilerClient(QQmlDebugConnection *connection, QmlProfilerData *data); |
| 20 | |
| 21 | Q_SIGNALS: |
| 22 | void enabledChanged(bool enabled); |
| 23 | void error(const QString &error); |
| 24 | |
| 25 | private: |
| 26 | void onStateChanged(State state); |
| 27 | }; |
| 28 | |
| 29 | #endif // QMLPROFILERCLIENT_H |
| 30 | |