2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2019-04-29 14:49:53 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2019 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2019-04-29 14:49:53 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2019-04-29 14:49:53 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OEMVIEWSTEP_H
|
|
|
|
#define OEMVIEWSTEP_H
|
|
|
|
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2019-04-29 14:49:53 +02:00
|
|
|
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "DllMacro.h"
|
2019-04-29 14:49:53 +02:00
|
|
|
|
|
|
|
#include <QVariantMap>
|
|
|
|
|
|
|
|
class OEMPage;
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT OEMViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit OEMViewStep( QObject* parent = nullptr );
|
2020-09-22 22:49:30 +02:00
|
|
|
~OEMViewStep() override;
|
2019-04-29 14:49:53 +02:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
2019-04-29 16:37:32 +02:00
|
|
|
QString prettyStatus() const override;
|
2019-04-29 14:49:53 +02:00
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
|
|
|
bool isNextEnabled() const override;
|
|
|
|
bool isBackEnabled() const override;
|
|
|
|
|
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
|
|
|
|
2019-04-29 15:03:10 +02:00
|
|
|
void onActivate() override;
|
|
|
|
void onLeave() override;
|
|
|
|
|
2019-04-29 14:49:53 +02:00
|
|
|
Calamares::JobList jobs() const override;
|
|
|
|
|
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
|
|
|
private:
|
2019-04-29 15:03:10 +02:00
|
|
|
QString m_conf_batchIdentifier;
|
|
|
|
QString m_user_batchIdentifier;
|
2019-04-29 14:49:53 +02:00
|
|
|
OEMPage* m_widget;
|
2019-04-29 15:03:10 +02:00
|
|
|
bool m_visited;
|
2019-04-29 14:49:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( OEMViewStepFactory )
|
|
|
|
|
|
|
|
#endif
|