source: calamares/trunk/fuentes/src/modules/netinstall/NetInstallViewStep.h @ 7538

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

sync with github

File size: 2.1 KB
Line 
1/*
2 *   Copyright 2016, Luca Giambonini <almack@chakraos.org>
3 *   Copyright 2016, Lisa Vitolo     <shainer@chakraos.org>
4 *   Copyright 2017, Adriaan de Groot <groot@kde.org>
5 *
6 *   Calamares is free software: you can redistribute it and/or modify
7 *   it under the terms of the GNU General Public License as published by
8 *   the Free Software Foundation, either version 3 of the License, or
9 *   (at your option) any later version.
10 *
11 *   Calamares is distributed in the hope that it will be useful,
12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 *   GNU General Public License for more details.
15 *
16 *   You should have received a copy of the GNU General Public License
17 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef NETINSTALLVIEWSTEP_H
21#define NETINSTALLVIEWSTEP_H
22
23#include <utils/PluginFactory.h>
24#include <viewpages/ViewStep.h>
25
26#include <PluginDllMacro.h>
27
28#include <QVariant>
29
30class NetInstallPage;
31
32class PLUGINDLLEXPORT NetInstallViewStep : public Calamares::ViewStep
33{
34    Q_OBJECT
35
36public:
37    explicit NetInstallViewStep( QObject* parent = nullptr );
38    virtual ~NetInstallViewStep() override;
39
40    QString prettyName() const override;
41    QString prettyStatus() const override;
42
43    QWidget* widget() override;
44
45    void next() override;
46    void back() override;
47
48    bool isNextEnabled() const override;
49    bool isBackEnabled() const override;
50
51    bool isAtBeginning() const override;
52    bool isAtEnd() const override;
53
54    QList< Calamares::job_ptr > jobs() const override;
55
56    void onActivate() override;
57
58    // Leaving the page; store all selected packages for later installation.
59    void onLeave() override;
60
61    void setConfigurationMap( const QVariantMap& configurationMap ) override;
62
63public slots:
64    void nextIsReady( bool );
65
66private:
67    NetInstallPage* m_widget;
68    bool m_nextEnabled;
69    QString m_prettyStatus;
70
71    QList< Calamares::job_ptr > m_jobs;
72};
73
74CALAMARES_PLUGIN_FACTORY_DECLARATION( NetInstallViewStepFactory )
75
76#endif // NETINSTALLVIEWSTEP_H
Note: See TracBrowser for help on using the repository browser.