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

57 lines
1.6 KiB
C
Raw Normal View History

2014-07-02 15:59:34 +02:00
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014, Aurélien Gâteau <agateau@kde.org>
* Copyright 2015, Teo Mrnjavac <teo@kde.org>
2014-07-02 15:59:34 +02:00
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Calamares is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DELETEPARTITIONJOB_H
#define DELETEPARTITIONJOB_H
#include <jobs/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();
Device* device() const
{
return m_device;
}
private:
Device* m_device;
};
#endif /* DELETEPARTITIONJOB_H */