calamares/src/modules/partition/jobs/DeletePartitionJob.h

45 lines
1.1 KiB
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
2014-07-02 15:59:34 +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-02 15:59:34 +02:00
*
* Calamares is Free Software: see the License-Identifier above.
2014-07-02 15:59:34 +02:00
*
*/
#ifndef DELETEPARTITIONJOB_H
#define DELETEPARTITIONJOB_H
#include "PartitionJob.h"
2014-07-02 15:59:34 +02:00
class Device;
class Partition;
class FileSystem;
2014-08-08 11:46:43 +02:00
/**
* Deletes an existing partition.
*
* This is only used for partitions which already existed before the installer
* was started: partitions created within the installer and then removed are
* simply forgotten.
*/
2014-07-18 14:29:27 +02:00
class DeletePartitionJob : public PartitionJob
2014-07-02 15:59:34 +02:00
{
Q_OBJECT
public:
DeletePartitionJob( Device* device, Partition* partition );
2014-07-10 12:06:23 +02:00
QString prettyName() const override;
QString prettyDescription() const override;
QString prettyStatusMessage() const override;
2014-07-08 19:20:04 +02:00
Calamares::JobResult exec() override;
2014-07-02 15:59:34 +02:00
void updatePreview();
2020-04-07 11:36:40 +02:00
Device* device() const { return m_device; }
2014-07-02 15:59:34 +02:00
private:
Device* m_device;
};
#endif /* DELETEPARTITIONJOB_H */