2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-03-25 09:25:17 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-03-25 09:25:17 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-03-25 09:25:17 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2011-03-25 09:25:17 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-03-25 09:25:17 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2011-03-25 09:25:17 +01:00
|
|
|
|
2011-03-11 12:22:57 +01:00
|
|
|
#ifndef QMLPROFILERPLUGIN_H
|
|
|
|
|
#define QMLPROFILERPLUGIN_H
|
|
|
|
|
|
|
|
|
|
#include "qmlprofiler_global.h"
|
2014-10-28 17:37:11 +01:00
|
|
|
#include "qmlprofilertimelinemodelfactory.h"
|
2015-08-28 12:50:46 +02:00
|
|
|
#include "qmlprofilersettings.h"
|
2011-03-11 12:22:57 +01:00
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2014-10-28 19:01:43 +01:00
|
|
|
#include "qmlprofilertimelinemodel.h"
|
2013-08-08 13:28:08 +02:00
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
namespace QmlProfiler {
|
2011-03-11 12:22:57 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
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:
|
2014-11-27 10:36:58 +01:00
|
|
|
QmlProfilerPlugin() : factory(0) {}
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
|
|
|
void extensionsInitialized();
|
|
|
|
|
ShutdownFlag aboutToShutdown();
|
|
|
|
|
|
|
|
|
|
static bool debugOutput;
|
2013-08-08 13:28:08 +02:00
|
|
|
static QmlProfilerPlugin *instance;
|
|
|
|
|
|
2014-10-28 19:01:43 +01:00
|
|
|
QList<QmlProfilerTimelineModel *> getModels(QmlProfilerModelManager *manager) const;
|
2015-08-28 12:50:46 +02:00
|
|
|
static QmlProfilerSettings *globalSettings();
|
2013-08-08 13:28:08 +02:00
|
|
|
|
|
|
|
|
private:
|
2014-10-28 17:37:11 +01:00
|
|
|
QmlProfilerTimelineModelFactory *factory;
|
2011-03-11 12:22:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2011-03-25 09:21:00 +01:00
|
|
|
} // namespace QmlProfiler
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
#endif // QMLPROFILERPLUGIN_H
|
|
|
|
|
|