2017-12-20 14:39:09 +01:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
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
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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 );
|
2017-09-26 11:07:15 +02:00
|
|
|
virtual ~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
|