2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2019-07-04 20:21:13 +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-07-04 20:21:13 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2019-07-04 20:21:13 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INITCPIOJOB_H
|
|
|
|
#define INITCPIOJOB_H
|
|
|
|
|
|
|
|
#include "CppJob.h"
|
2020-02-17 11:37:35 +01:00
|
|
|
#include "DllMacro.h"
|
2019-07-04 20:21:13 +02:00
|
|
|
#include "utils/PluginFactory.h"
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QVariantMap>
|
|
|
|
|
|
|
|
class PLUGINDLLEXPORT InitcpioJob : public Calamares::CppJob
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit InitcpioJob( QObject* parent = nullptr );
|
|
|
|
virtual ~InitcpioJob() override;
|
|
|
|
|
|
|
|
QString prettyName() const override;
|
|
|
|
|
|
|
|
Calamares::JobResult exec() override;
|
|
|
|
|
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_kernel;
|
2019-07-06 00:04:16 +02:00
|
|
|
bool m_unsafe = false;
|
2019-07-04 20:21:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( InitcpioJobFactory )
|
|
|
|
|
|
|
|
#endif // INITCPIOJOB_H
|