calamares/src/modules/summaryq/SummaryQmlViewStep.h
demmm 6bb7df918d [summaryq] adding summaryq
initial work done by Nitrux/Camilo Higuita in 2020, reflected in license headers
C++ adjusted to make it build & work
as noted in the inline comments e80618ef1c
there are quite a few errors in the C++, but it builds, runs and shows the correct output
2021-07-06 19:09:20 +02:00

56 lines
1.2 KiB
C++

/* === This file is part of Calamares - <https://calamares.io> ===
*
* SPDX-FileCopyrightText: 2014-2015, Teo Mrnjavac <teo@kde.org>
* SPDX-FileCopyrightText: 2020, Camilo Higuita <milo.h@aol.com>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef SUMMARYQMLVIEWSTEP_H
#define SUMMARYQMLVIEWSTEP_H
#include "Config.h"
#include "utils/PluginFactory.h"
#include "viewpages/QmlViewStep.h"
#include "DllMacro.h"
#include <QObject>
class SummaryPage;
class PLUGINDLLEXPORT SummaryQmlViewStep : public Calamares::QmlViewStep
{
Q_OBJECT
public:
explicit SummaryQmlViewStep( QObject* parent = nullptr );
virtual ~SummaryQmlViewStep() override;
QString prettyName() const override;
bool isNextEnabled() const override;
bool isBackEnabled() const override;
bool isAtBeginning() const override;
bool isAtEnd() const override;
QList< Calamares::job_ptr > jobs() const override;
void onActivate() override;
QObject * getConfig() override
{
return m_config;
}
private:
Config *m_config;
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( SummaryQmlViewStepFactory )
#endif // SUMMARYQMLVIEWSTEP_H