2017-12-20 14:39:09 +01:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
2014-06-11 13:37:10 +02:00
|
|
|
*
|
2015-01-29 20:24:09 +01:00
|
|
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
2014-06-11 13:37:10 +02:00
|
|
|
*
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Calamares is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-05-13 12:44:11 +02:00
|
|
|
#ifndef WELCOMEPAGEPLUGIN_H
|
|
|
|
#define WELCOMEPAGEPLUGIN_H
|
2014-06-11 13:37:10 +02:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2017-12-02 15:56:03 +01:00
|
|
|
#include <modulesystem/Requirement.h>
|
2015-09-09 18:46:13 +02:00
|
|
|
#include <utils/PluginFactory.h>
|
|
|
|
#include <viewpages/ViewStep.h>
|
|
|
|
|
|
|
|
#include <PluginDllMacro.h>
|
2014-06-11 13:37:10 +02:00
|
|
|
|
2015-04-02 12:27:54 +02:00
|
|
|
#include <QVariantMap>
|
|
|
|
|
2015-05-13 12:44:11 +02:00
|
|
|
class WelcomePage;
|
2019-02-23 18:29:59 +01:00
|
|
|
class GeneralRequirements;
|
2014-06-27 18:00:27 +02:00
|
|
|
|
2015-05-13 12:44:11 +02:00
|
|
|
class PLUGINDLLEXPORT WelcomeViewStep : public Calamares::ViewStep
|
2014-06-11 13:37:10 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-06-27 13:58:53 +02:00
|
|
|
|
2014-06-11 13:37:10 +02:00
|
|
|
public:
|
2015-05-13 12:44:11 +02:00
|
|
|
explicit WelcomeViewStep( QObject* parent = nullptr );
|
2017-09-20 14:24:28 +02:00
|
|
|
virtual ~WelcomeViewStep() override;
|
2014-06-11 13:37:10 +02:00
|
|
|
|
2014-07-01 11:49:09 +02:00
|
|
|
QString prettyName() const override;
|
2014-06-27 18:00:27 +02:00
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
2014-07-01 11:49:09 +02:00
|
|
|
bool isNextEnabled() const override;
|
2015-01-29 20:24:09 +01:00
|
|
|
bool isBackEnabled() const override;
|
2014-06-27 18:00:27 +02:00
|
|
|
|
2014-07-01 11:49:09 +02:00
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
2014-06-27 18:00:27 +02:00
|
|
|
|
2019-02-25 13:05:12 +01:00
|
|
|
Calamares::JobList jobs() const override;
|
2014-07-08 14:02:21 +02:00
|
|
|
|
2015-04-02 12:27:54 +02:00
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
2019-05-10 13:53:44 +02:00
|
|
|
/** @brief Sets the country that Calamares is running in.
|
|
|
|
*
|
|
|
|
* This (ideally) sets up language and locale settings that are right for
|
|
|
|
* the given 2-letter country code.
|
|
|
|
*/
|
|
|
|
void setCountry( const QString& );
|
|
|
|
|
2017-12-02 17:25:26 +01:00
|
|
|
Calamares::RequirementsList checkRequirements() override;
|
|
|
|
|
2014-06-27 18:00:27 +02:00
|
|
|
private:
|
2015-05-13 12:44:11 +02:00
|
|
|
WelcomePage* m_widget;
|
2019-02-23 18:29:59 +01:00
|
|
|
GeneralRequirements* m_requirementsChecker;
|
2014-06-11 13:37:10 +02:00
|
|
|
};
|
|
|
|
|
2015-09-09 18:46:13 +02:00
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( WelcomeViewStepFactory )
|
|
|
|
|
2015-05-13 12:44:11 +02:00
|
|
|
#endif // WELCOMEPAGEPLUGIN_H
|