Changeset View
Changeset View
Standalone View
Standalone View
plugins/meson/mesonimportjob.h
- This file was added.
1 | /* This file is part of KDevelop | ||||
---|---|---|---|---|---|
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 as published by the Free Software Foundation; either | ||||
7 | version 2 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This library is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | Library General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU Library General Public License | ||||
15 | along with this library; see the file COPYING.LIB. If not, write to | ||||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
17 | Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #ifndef MESONIMPORTJOB_H | ||||
21 | #define MESONIMPORTJOB_H | ||||
22 | | ||||
23 | #include <KJob> | ||||
24 | #include <QJsonObject> | ||||
25 | #include <QFutureWatcher> | ||||
26 | #include <interfaces/iproject.h> | ||||
27 | | ||||
28 | class MesonManager; | ||||
29 | | ||||
30 | class MesonImportJob : public KJob | ||||
31 | { | ||||
32 | Q_OBJECT | ||||
33 | | ||||
34 | public: | ||||
35 | MesonImportJob(MesonManager* manager, KDevelop::IProject* project, QObject* parent); | ||||
36 | | ||||
37 | void start() override; | ||||
38 | bool doKill() override; | ||||
39 | | ||||
40 | private: | ||||
41 | void importFinished(); | ||||
42 | | ||||
43 | KDevelop::IProject* m_project; | ||||
44 | QFutureWatcher<QJsonObject> m_futureWatcher; | ||||
45 | MesonManager* m_manager; | ||||
46 | }; | ||||
47 | | ||||
48 | #endif // MESONIMPORTJOB_H |