2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2012-02-09 16:04:43 +00:00
|
|
|
|
2012-03-08 15:50:14 +00:00
|
|
|
#ifndef QMLPROFILERCLIENT_H
|
|
|
|
#define QMLPROFILERCLIENT_H
|
2012-02-09 16:04:43 +00:00
|
|
|
|
2015-09-17 11:39:00 +00:00
|
|
|
#include <private/qqmlprofilerclient_p.h>
|
2018-04-23 10:23:42 +00:00
|
|
|
#include <private/qqmlprofilerclientdefinitions_p.h>
|
2017-12-14 19:06:57 +00:00
|
|
|
#include <private/qqmlprofilereventlocation_p.h>
|
2012-02-09 16:04:43 +00:00
|
|
|
|
2015-09-17 11:39:00 +00:00
|
|
|
class QmlProfilerData;
|
|
|
|
class QmlProfilerClientPrivate;
|
|
|
|
class QmlProfilerClient : public QQmlProfilerClient
|
2012-02-09 16:04:43 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2015-09-17 11:39:00 +00:00
|
|
|
Q_DECLARE_PRIVATE(QmlProfilerClient)
|
2012-02-09 16:04:43 +00:00
|
|
|
|
|
|
|
public:
|
2015-09-17 11:39:00 +00:00
|
|
|
QmlProfilerClient(QQmlDebugConnection *connection, QmlProfilerData *data);
|
2012-02-09 16:04:43 +00:00
|
|
|
|
2022-12-07 06:27:01 +00:00
|
|
|
Q_SIGNALS:
|
2015-09-17 11:39:00 +00:00
|
|
|
void enabledChanged(bool enabled);
|
|
|
|
void error(const QString &error);
|
2015-05-21 08:35:42 +00:00
|
|
|
|
2015-09-17 11:39:00 +00:00
|
|
|
private:
|
2018-02-05 13:15:47 +00:00
|
|
|
void onStateChanged(State state);
|
2012-02-09 16:04:43 +00:00
|
|
|
};
|
|
|
|
|
2012-03-08 15:50:14 +00:00
|
|
|
#endif // QMLPROFILERCLIENT_H
|