2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-03-25 09:25:17 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
namespace QmlProfiler {
|
2011-03-11 12:22:57 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2018-02-15 14:40:18 +01:00
|
|
|
class QmlProfilerSettings;
|
2017-08-15 16:41:32 +02:00
|
|
|
|
2011-03-11 12:22:57 +01:00
|
|
|
class QmlProfilerPlugin : public ExtensionSystem::IPlugin
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "QmlProfiler.json")
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
public:
|
2015-08-28 12:50:46 +02:00
|
|
|
static QmlProfilerSettings *globalSettings();
|
2016-05-30 11:59:32 +02:00
|
|
|
|
2017-08-15 16:41:32 +02:00
|
|
|
private:
|
2018-02-15 14:40:18 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorString) final;
|
|
|
|
|
void extensionsInitialized() final;
|
|
|
|
|
ShutdownFlag aboutToShutdown() final;
|
2019-05-27 14:12:11 +02:00
|
|
|
QVector<QObject *> createTestObjects() const final;
|
2018-02-15 14:40:18 +01:00
|
|
|
|
|
|
|
|
class QmlProfilerPluginPrivate *d = nullptr;
|
2011-03-11 12:22:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2011-03-25 09:21:00 +01:00
|
|
|
} // namespace QmlProfiler
|