2014-06-11 13:37:10 +02:00
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
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;
|
2015-05-14 18:02:26 +02:00
|
|
|
class RequirementsChecker;
|
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;
|
|
|
|
|
|
|
|
void next() override;
|
|
|
|
void back() 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
|
|
|
|
2014-07-08 14:02:21 +02:00
|
|
|
QList< Calamares::job_ptr > jobs() const override;
|
|
|
|
|
2015-04-02 12:27:54 +02:00
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
2014-06-27 18:00:27 +02:00
|
|
|
private:
|
2015-05-13 12:44:11 +02:00
|
|
|
WelcomePage* m_widget;
|
2015-05-14 18:02:26 +02:00
|
|
|
RequirementsChecker* 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
|