2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2017-12-03 13:08:54 +01:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2017-12-03 13:08:54 +01:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2017-12-03 13:08:54 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLASMALNFVIEWSTEP_H
|
|
|
|
#define PLASMALNFVIEWSTEP_H
|
|
|
|
|
2020-08-22 01:19:58 +02:00
|
|
|
#include "DllMacro.h"
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2017-12-03 13:08:54 +01:00
|
|
|
|
2020-11-11 13:08:42 +01:00
|
|
|
class Config;
|
2017-12-03 13:08:54 +01:00
|
|
|
class PlasmaLnfPage;
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT PlasmaLnfViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit PlasmaLnfViewStep( QObject* parent = nullptr );
|
2020-09-22 22:49:30 +02:00
|
|
|
~PlasmaLnfViewStep() override;
|
2017-12-03 13:08:54 +01:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
|
|
|
bool isNextEnabled() const override;
|
|
|
|
bool isBackEnabled() const override;
|
|
|
|
|
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
|
|
|
|
|
|
|
void onLeave() override;
|
|
|
|
|
|
|
|
Calamares::JobList jobs() const override;
|
|
|
|
|
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
|
|
|
private:
|
2020-11-11 13:08:42 +01:00
|
|
|
Config* m_config;
|
2017-12-03 13:08:54 +01:00
|
|
|
PlasmaLnfPage* m_widget;
|
|
|
|
};
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( PlasmaLnfViewStepFactory )
|
|
|
|
|
2020-08-22 01:19:58 +02:00
|
|
|
#endif // PLASMALNFVIEWSTEP_H
|