2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-18 15:06:56 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014 Aurélien Gâteau <agateau@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2014-07-18 15:06:56 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-18 15:06:56 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMATPARTITIONJOB_H
|
|
|
|
#define FORMATPARTITIONJOB_H
|
|
|
|
|
2019-06-14 22:59:40 +02:00
|
|
|
#include "PartitionJob.h"
|
2014-07-18 15:06:56 +02:00
|
|
|
|
|
|
|
class Device;
|
|
|
|
class Partition;
|
|
|
|
class FileSystem;
|
|
|
|
|
2014-08-08 11:46:43 +02:00
|
|
|
/**
|
|
|
|
* This job formats an existing partition.
|
|
|
|
*
|
|
|
|
* It is only used for existing partitions: newly created partitions are
|
|
|
|
* formatted by the CreatePartitionJob.
|
|
|
|
*/
|
2014-07-18 15:06:56 +02:00
|
|
|
class FormatPartitionJob : public PartitionJob
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
FormatPartitionJob( Device* device, Partition* partition );
|
|
|
|
QString prettyName() const override;
|
2015-04-09 15:16:09 +02:00
|
|
|
QString prettyDescription() const override;
|
2015-06-13 02:26:38 +02:00
|
|
|
QString prettyStatusMessage() const override;
|
2014-07-18 15:06:56 +02:00
|
|
|
Calamares::JobResult exec() override;
|
|
|
|
|
2020-04-07 11:36:40 +02:00
|
|
|
Device* device() const { return m_device; }
|
2014-07-18 15:06:56 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Device* m_device;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FORMATPARTITIONJOB_H */
|