summaryrefslogtreecommitdiffstats
path: root/tools/qmldebugger/creatorplugin/qmlinspectorplugin.h
blob: b0237e2b0ee274a791e01caef15db98889a58848 (plain)
1
2
3
4
5
6
7
8
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef QMLINSPECTORPLUGIN_H
#define QMLINSPECTORPLUGIN_H

#include <extensionsystem/iplugin.h>

#include <QtCore/QObject>
#include <QtCore/QPointer>

QT_BEGIN_NAMESPACE

class QStringList;


class QmlInspectorRunControlFactory;
class QmlInspectorMode;
class InspectorOutputPane;

namespace ProjectExplorer
{
    class RunControl;
}

class QmlInspectorPlugin : public ExtensionSystem::IPlugin
{
    Q_OBJECT

public:
    QmlInspectorPlugin();
    ~QmlInspectorPlugin();

    virtual bool initialize(const QStringList &arguments, QString *errorString);
    virtual void extensionsInitialized();
    virtual void shutdown();

private slots:
    void startViewer();
    void stopViewer();

private:
    QmlInspectorMode *m_inspectMode;
    InspectorOutputPane *m_outputPane;
    
    QmlInspectorRunControlFactory *m_runControlFactory;
    QPointer<ProjectExplorer::RunControl> m_runControl;
};


QT_END_NAMESPACE

#endif // QMLINSPECTORPLUGIN_H