-
Notifications
You must be signed in to change notification settings - Fork 2
/
GitQlientPlugin.h
47 lines (33 loc) · 892 Bytes
/
GitQlientPlugin.h
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
#pragma once
#include <coreplugin/imode.h>
#include <extensionsystem/iplugin.h>
using namespace Core;
class GitQlient;
namespace GitQlientNamespace
{
namespace Internal
{
class GitQlientMode : public Core::IMode
{
Q_OBJECT
public:
GitQlientMode();
GitQlient *mGitImpl = nullptr;
};
class GitQlientPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "GitQlientPlugin.json")
public:
GitQlientPlugin() = default;
~GitQlientPlugin() override = default;
bool initialize(const QStringList &arguments, QString *errorString) override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
private:
GitQlientMode *mGitQlientMode = nullptr;
QString mCurrentProject;
void aboutToChange(Utils::Id mode);
};
} // namespace Internal
} // namespace GitQlientPlugin