2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2019-08-02 10:57:12 +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-08-02 10:57:12 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2019-08-02 10:57:12 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PACKAGECHOOSERVIEWSTEP_H
|
|
|
|
#define PACKAGECHOOSERVIEWSTEP_H
|
|
|
|
|
2020-02-17 11:37:35 +01:00
|
|
|
#include "DllMacro.h"
|
2019-09-02 15:13:51 +02:00
|
|
|
#include "locale/TranslatableConfiguration.h"
|
2019-08-02 13:05:46 +02:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
#include "viewpages/ViewStep.h"
|
2019-08-02 10:57:12 +02:00
|
|
|
|
|
|
|
#include <QVariantMap>
|
|
|
|
|
2021-04-13 13:39:47 +02:00
|
|
|
class Config;
|
2019-08-02 13:05:46 +02:00
|
|
|
class PackageChooserPage;
|
|
|
|
|
2019-08-02 10:57:12 +02:00
|
|
|
class PLUGINDLLEXPORT PackageChooserViewStep : public Calamares::ViewStep
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit PackageChooserViewStep( QObject* parent = nullptr );
|
2020-09-22 22:49:30 +02:00
|
|
|
~PackageChooserViewStep() override;
|
2019-08-02 10:57:12 +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;
|
|
|
|
|
2019-11-11 07:47:10 +01:00
|
|
|
void onActivate() override;
|
2019-08-02 10:57:12 +02:00
|
|
|
void onLeave() override;
|
|
|
|
|
|
|
|
Calamares::JobList jobs() const override;
|
|
|
|
|
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
|
|
|
private:
|
2019-08-02 13:05:46 +02:00
|
|
|
void hookupModel();
|
|
|
|
|
2021-04-13 13:39:47 +02:00
|
|
|
Config* m_config;
|
2019-08-02 13:05:46 +02:00
|
|
|
PackageChooserPage* m_widget;
|
2019-08-02 10:57:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( PackageChooserViewStepFactory )
|
|
|
|
|
|
|
|
#endif // PACKAGECHOOSERVIEWSTEP_H
|