source: calamares/trunk/fuentes/src/libcalamaresui/modulesystem/CppJobModule.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 16 months ago

sync with github

File size: 1.6 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014, Teo Mrnjavac <teo@kde.org>
4 *   Copyright 2016, Kevin Kofler <kevin.kofler@chello.at>
5 *   Copyright 2017, Adriaan de Groot <groot@kde.org>
6 *
7 *   Calamares is free software: you can redistribute it and/or modify
8 *   it under the terms of the GNU General Public License as published by
9 *   the Free Software Foundation, either version 3 of the License, or
10 *   (at your option) any later version.
11 *
12 *   Calamares is distributed in the hope that it will be useful,
13 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 *   GNU General Public License for more details.
16 *
17 *   You should have received a copy of the GNU General Public License
18 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef CALAMARES_CPPJOBMODULE_H
22#define CALAMARES_CPPJOBMODULE_H
23
24#include "UiDllMacro.h"
25#include "Module.h"
26
27class QPluginLoader;
28
29namespace Calamares
30{
31
32class UIDLLEXPORT CppJobModule : public Module
33{
34public:
35    Type type() const override;
36    Interface interface() const override;
37
38    void loadSelf() override;
39    JobList jobs() const override;
40
41protected:
42    void initFrom( const QVariantMap& moduleDescriptor ) override;
43
44private:
45    friend class Module; //so only the superclass can instantiate
46    explicit CppJobModule();
47    virtual ~CppJobModule() override;
48
49    QPluginLoader* m_loader;
50    job_ptr m_job;
51};
52
53} // namespace Calamares
54
55#endif // CALAMARES_CPPJOBMODULE_H
Note: See TracBrowser for help on using the repository browser.