qmlprofilerplugin.h 733 Bytes
Newer Older
Christiaan Janssen's avatar
Christiaan Janssen committed
1
2
3
4
5
6
7
#ifndef QMLPROFILERPLUGIN_H
#define QMLPROFILERPLUGIN_H

#include "qmlprofiler_global.h"

#include <extensionsystem/iplugin.h>

Kai Koehne's avatar
Kai Koehne committed
8
namespace QmlProfiler {
Christiaan Janssen's avatar
Christiaan Janssen committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
Kai Koehne's avatar
Kai Koehne committed
35
} // namespace QmlProfiler
Christiaan Janssen's avatar
Christiaan Janssen committed
36
37
38

#endif // QMLPROFILERPLUGIN_H