1 /*
2     SPDX-FileCopyrightText: 2008-2010 Volker Lanz <vl@fidra.de>
3     SPDX-FileCopyrightText: 2016 Andrius Štikonas <andrius@stikonas.eu>
4 
5     SPDX-License-Identifier: GPL-3.0-or-later
6 */
7 
8 #ifndef KPMCORE_DELETEPARTITIONJOB_H
9 #define KPMCORE_DELETEPARTITIONJOB_H
10 
11 #include "jobs/job.h"
12 
13 class Partition;
14 class Device;
15 class Report;
16 
17 class QString;
18 
19 /** Delete a Partition.
20     @author Volker Lanz <vl@fidra.de>
21 */
22 class DeletePartitionJob : public Job
23 {
24 public:
25     DeletePartitionJob(Device& d, Partition& p);
26 
27 public:
28     bool run(Report& parent) override;
29     QString description() const override;
30 
31 protected:
partition()32     Partition& partition() {
33         return m_Partition;
34     }
partition()35     const Partition& partition() const {
36         return m_Partition;
37     }
38 
device()39     Device& device() {
40         return m_Device;
41     }
device()42     const Device& device() const {
43         return m_Device;
44     }
45 
46 private:
47     Device& m_Device;
48     Partition& m_Partition;
49 };
50 
51 #endif
52