2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2017-08-29 14:00:37 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2017 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2017-08-29 14:00:37 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2017-08-29 14:00:37 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TRACKINGVIEWSTEP_H
|
|
|
|
#define TRACKINGVIEWSTEP_H
|
|
|
|
|
2017-11-08 10:25:36 +01:00
|
|
|
#include "TrackingType.h"
|
|
|
|
|
2020-03-10 02:45:40 +01:00
|
|
|
#include "DllMacro.h"
|
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2017-08-29 14:00:37 +02:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QUrl>
|
|
|
|
#include <QVariantMap>
|
|
|
|
|
2020-05-12 14:39:42 +02:00
|
|
|
class Config;
|
2017-08-29 14:00:37 +02:00
|
|
|
class TrackingPage;
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT TrackingViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit TrackingViewStep( QObject* parent = nullptr );
|
2020-09-22 22:49:30 +02:00
|
|
|
~TrackingViewStep() override;
|
2017-08-29 14:00:37 +02:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
|
|
|
|
|
|
|
QWidget* widget() override;
|
|
|
|
|
|
|
|
bool isNextEnabled() const override;
|
|
|
|
bool isBackEnabled() const override;
|
|
|
|
|
|
|
|
bool isAtBeginning() const override;
|
|
|
|
bool isAtEnd() const override;
|
|
|
|
|
2017-11-08 10:25:36 +01:00
|
|
|
void onLeave() override;
|
|
|
|
|
2017-11-08 15:59:40 +01:00
|
|
|
Calamares::JobList jobs() const override;
|
2017-09-26 11:07:15 +02:00
|
|
|
|
2017-08-29 14:00:37 +02:00
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
|
|
|
private:
|
2020-05-12 14:39:42 +02:00
|
|
|
Config* m_config;
|
2017-11-08 15:35:49 +01:00
|
|
|
TrackingPage* m_widget;
|
2017-08-29 14:00:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( TrackingViewStepFactory )
|
|
|
|
|
2019-08-01 23:05:42 +02:00
|
|
|
#endif // TRACKINGVIEWSTEP_H
|