2011-03-11 12:22:57 +01:00
|
|
|
#ifndef QMLPROFILERPLUGIN_H
|
|
|
|
|
#define QMLPROFILERPLUGIN_H
|
|
|
|
|
|
|
|
|
|
#include "qmlprofiler_global.h"
|
|
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static QmlProfilerPlugin *instance();
|
|
|
|
|
|
|
|
|
|
QmlProfilerPlugin();
|
|
|
|
|
~QmlProfilerPlugin();
|
|
|
|
|
|
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
|
|
|
void extensionsInitialized();
|
|
|
|
|
ShutdownFlag aboutToShutdown();
|
|
|
|
|
|
|
|
|
|
static bool debugOutput;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
class QmlProfilerPluginPrivate;
|
|
|
|
|
QmlProfilerPluginPrivate *d;
|
|
|
|
|
|
|
|
|
|
static QmlProfilerPlugin *m_instance;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2011-03-25 09:21:00 +01:00
|
|
|
} // namespace QmlProfiler
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
#endif // QMLPROFILERPLUGIN_H
|
|
|
|
|
|