source: calamares/trunk/fuentes/src/modules/plasmalnf/PlasmaLnfViewStep.h @ 7538

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

sync with github

File size: 2.0 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2017, Adriaan de Groot <groot@kde..org>
4 *
5 *   Calamares is free software: you can redistribute it and/or modify
6 *   it under the terms of the GNU General Public License as published by
7 *   the Free Software Foundation, either version 3 of the License, or
8 *   (at your option) any later version.
9 *
10 *   Calamares is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef PLASMALNFVIEWSTEP_H
20#define PLASMALNFVIEWSTEP_H
21
22#include <utils/PluginFactory.h>
23#include <viewpages/ViewStep.h>
24#include <PluginDllMacro.h>
25
26#include <QObject>
27#include <QUrl>
28#include <QVariantMap>
29
30class PlasmaLnfPage;
31
32class PLUGINDLLEXPORT PlasmaLnfViewStep : public Calamares::ViewStep
33{
34    Q_OBJECT
35
36public:
37    explicit PlasmaLnfViewStep( QObject* parent = nullptr );
38    virtual ~PlasmaLnfViewStep() override;
39
40    QString prettyName() const override;
41
42    QWidget* widget() override;
43
44    void next() override;
45    void back() override;
46
47    bool isNextEnabled() const override;
48    bool isBackEnabled() const override;
49
50    bool isAtBeginning() const override;
51    bool isAtEnd() const override;
52
53    void onLeave() override;
54
55    Calamares::JobList jobs() const override;
56
57    void setConfigurationMap( const QVariantMap& configurationMap ) override;
58
59public slots:
60    void themeSelected( const QString& id );
61
62private:
63    PlasmaLnfPage* m_widget;
64    QString m_lnfPath;  // Path to the lnf tool
65    QString m_themeId;  // Id of selected theme
66    QString m_liveUser; // Name of the live user (for OEM mode)
67};
68
69CALAMARES_PLUGIN_FACTORY_DECLARATION( PlasmaLnfViewStepFactory )
70
71#endif // PLASMALNFVIEWSTEP_H
Note: See TracBrowser for help on using the repository browser.