kpmcore/src/jobs/deletefilesystemjob.h

55 lines
1.0 KiB
C
Raw Normal View History

/*
SPDX-FileCopyrightText: 2008-2010 Volker Lanz <vl@fidra.de>
SPDX-FileCopyrightText: 2016 Andrius Štikonas <andrius@stikonas.eu>
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef KPMCORE_DELETEFILESYSTEMJOB_H
#define KPMCORE_DELETEFILESYSTEMJOB_H
#include "jobs/job.h"
class Partition;
class Device;
class Report;
class QString;
/** Delete a FileSystem.
2015-07-13 15:16:36 +01:00
Delete and clobber the FileSystem on the given Partition on the given Device.
2015-07-13 15:16:36 +01:00
@author Volker Lanz <vl@fidra.de>
*/
class DeleteFileSystemJob : public Job
{
2015-07-13 15:16:36 +01:00
public:
DeleteFileSystemJob(Device& d, Partition& p);
2015-07-13 15:16:36 +01:00
public:
2016-05-17 18:01:31 +01:00
bool run(Report& parent) override;
QString description() const override;
2015-07-13 15:16:36 +01:00
protected:
Partition& partition() {
return m_Partition;
}
const Partition& partition() const {
return m_Partition;
}
2015-07-13 15:16:36 +01:00
Device& device() {
return m_Device;
}
const Device& device() const {
return m_Device;
}
2015-07-13 15:16:36 +01:00
private:
Device& m_Device;
Partition& m_Partition;
};
#endif