2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-08 17:28:35 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2014-07-08 17:28:35 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-08 17:28:35 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SUMMARYPAGEPLUGIN_H
|
|
|
|
#define SUMMARYPAGEPLUGIN_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2015-09-09 18:51:51 +02:00
|
|
|
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "DllMacro.h"
|
2014-07-08 17:28:35 +02:00
|
|
|
|
|
|
|
class SummaryPage;
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT SummaryViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit SummaryViewStep( QObject* parent = nullptr );
|
2017-09-20 14:24:28 +02:00
|
|
|
virtual ~SummaryViewStep() override;
|
2014-07-08 17:28:35 +02:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
|
|
|
bool isNextEnabled() const override;
|
2015-01-29 20:24:09 +01:00
|
|
|
bool isBackEnabled() const override;
|
2014-07-08 17:28:35 +02:00
|
|
|
|
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
|
|
|
|
|
|
|
QList< Calamares::job_ptr > jobs() const override;
|
|
|
|
|
2014-07-08 18:24:39 +02:00
|
|
|
void onActivate() override;
|
2016-06-29 19:25:52 +02:00
|
|
|
void onLeave() override;
|
2014-07-08 18:24:39 +02:00
|
|
|
|
2014-07-08 17:28:35 +02:00
|
|
|
private:
|
|
|
|
SummaryPage* m_widget;
|
|
|
|
};
|
|
|
|
|
2015-09-09 18:51:51 +02:00
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( SummaryViewStepFactory )
|
|
|
|
|
2020-08-22 01:19:58 +02:00
|
|
|
#endif // SUMMARYPAGEPLUGIN_H
|