Changeset View
Changeset View
Standalone View
Standalone View
plugins/flatpak/flatpakplugin.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Aleix Pol Gonzalez <aleixpol@kde.org> | ||||
3 | | ||||
4 | This library is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU Library General Public | ||||
6 | License version 2 as published by the Free Software Foundation. | ||||
7 | | ||||
8 | This library is distributed in the hope that it will be useful, | ||||
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
11 | Library General Public License for more details. | ||||
12 | | ||||
13 | You should have received a copy of the GNU Library General Public License | ||||
14 | along with this library; see the file COPYING.LIB. If not, write to | ||||
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
16 | Boston, MA 02110-1301, USA. | ||||
17 | */ | ||||
18 | | ||||
19 | #ifndef FLATPAKRUNTIMEPROVIDER_H | ||||
20 | #define FLATPAKRUNTIMEPROVIDER_H | ||||
21 | | ||||
22 | #include <interfaces/iruntime.h> | ||||
23 | #include <interfaces/iplugin.h> | ||||
24 | #include <util/path.h> | ||||
25 | #include <QProcess> | ||||
26 | | ||||
27 | class FlatpakPlugin : public KDevelop::IPlugin | ||||
28 | { | ||||
29 | Q_OBJECT | ||||
30 | public: | ||||
31 | FlatpakPlugin(QObject *parent, const QVariantList & args); | ||||
32 | ~FlatpakPlugin() override; | ||||
33 | | ||||
34 | KDevelop::ContextMenuExtension contextMenuExtension(KDevelop::Context * context) override; | ||||
35 | | ||||
36 | private: | ||||
37 | void runtimeChanged(KDevelop::IRuntime* newRuntime); | ||||
38 | void rebuildCurrent(); | ||||
39 | void exportCurrent(); | ||||
40 | | ||||
41 | QHash<KDevelop::Path, KDevelop::IRuntime *> m_runtimes; | ||||
42 | }; | ||||
43 | | ||||
44 | #endif |