calamares/src/modules/locale/LocaleViewStep.h

65 lines
1.4 KiB
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
*
2020-08-22 01:19:58 +02:00
* SPDX-FileCopyrightText: 2014-2016 Teo Mrnjavac <teo@kde.org>
* SPDX-FileCopyrightText: 2018 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef LOCALEVIEWSTEP_H
#define LOCALEVIEWSTEP_H
#include "Config.h"
#include "DllMacro.h"
#include "utils/PluginFactory.h"
#include "viewpages/ViewStep.h"
2015-09-09 18:52:47 +02:00
#include <memory>
class LocalePage;
class PLUGINDLLEXPORT LocaleViewStep : public Calamares::ViewStep
{
Q_OBJECT
public:
explicit LocaleViewStep( QObject* parent = nullptr );
~LocaleViewStep() override;
QString prettyName() const override;
2014-07-08 18:25:54 +02:00
QString prettyStatus() const override;
QWidget* widget() override;
bool isNextEnabled() const override;
bool isBackEnabled() const override;
bool isAtBeginning() const override;
bool isAtEnd() const override;
Calamares::JobList jobs() const override;
2014-11-26 18:52:44 +01:00
void onActivate() override;
2014-07-08 18:25:54 +02:00
void onLeave() override;
void setConfigurationMap( const QVariantMap& configurationMap ) override;
private slots:
void setUpPage();
private:
QWidget* m_widget;
LocalePage* m_actualWidget;
bool m_nextEnabled;
std::unique_ptr< Config > m_config;
};
2015-09-09 18:52:47 +02:00
CALAMARES_PLUGIN_FACTORY_DECLARATION( LocaleViewStepFactory )
2019-09-07 16:58:37 +02:00
#endif // LOCALEVIEWSTEP_H