2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2019-04-29 16:38:25 +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-04-29 16:38:25 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2019-04-29 16:38:25 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IDJOB_H
|
|
|
|
#define IDJOB_H
|
|
|
|
|
|
|
|
#include "Job.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class IDJob : public Calamares::Job
|
|
|
|
{
|
2019-04-29 17:22:53 +02:00
|
|
|
Q_OBJECT
|
2019-04-29 16:38:25 +02:00
|
|
|
public:
|
|
|
|
explicit IDJob( const QString& id, QObject* parent = nullptr );
|
|
|
|
|
|
|
|
virtual QString prettyName() const override;
|
|
|
|
virtual Calamares::JobResult exec() override;
|
|
|
|
|
|
|
|
private:
|
2019-04-29 17:22:53 +02:00
|
|
|
Calamares::JobResult writeId( const QString&, const QString&, const QString& );
|
|
|
|
|
2019-04-29 16:38:25 +02:00
|
|
|
QString m_batchIdentifier;
|
2020-08-22 01:19:58 +02:00
|
|
|
};
|
2019-04-29 16:38:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|