calamares/src/modules/machineid/MachineIdJob.h

49 lines
1.1 KiB
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
2019-10-01 13:44:06 +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-10-01 13:44:06 +02:00
*
* Calamares is Free Software: see the License-Identifier above.
2019-10-01 13:44:06 +02:00
*
*/
#ifndef MACHINEIDJOB_H
#define MACHINEIDJOB_H
#include <QObject>
#include <QVariantMap>
#include "CppJob.h"
2019-10-01 13:44:06 +02:00
#include "utils/PluginFactory.h"
2019-10-01 13:44:06 +02:00
#include "DllMacro.h"
2019-10-01 13:44:06 +02:00
class PLUGINDLLEXPORT MachineIdJob : public Calamares::CppJob
{
Q_OBJECT
public:
explicit MachineIdJob( QObject* parent = nullptr );
virtual ~MachineIdJob() override;
QString prettyName() const override;
Calamares::JobResult exec() override;
void setConfigurationMap( const QVariantMap& configurationMap ) override;
private:
bool m_systemd = false; ///< write systemd's files
bool m_dbus = false; ///< write dbus files
bool m_dbus_symlink = false; ///< .. or just symlink to systemd
bool m_entropy = false; ///< write an entropy file
bool m_entropy_copy = false; ///< copy from host system
2019-10-01 13:44:06 +02:00
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( MachineIdJobFactory )
2019-10-02 12:37:31 +02:00
#endif // MACHINEIDJOB_H