File indexing completed on 2024-04-28 05:45:53

0001 /*
0002     SPDX-FileCopyrightText: 2016 Chantara Tith <tith.chantara@gmail.com>
0003     SPDX-FileCopyrightText: 2019 Yuri Chornoivan <yurchor@ukr.net>
0004 
0005     SPDX-License-Identifier: GPL-3.0-or-later
0006 */
0007 
0008 #ifndef KPMCORE_DEACTIVATEVOLUMEGROUPJOB_H
0009 #define KPMCORE_DEACTIVATEVOLUMEGROUPJOB_H
0010 
0011 #include "jobs/job.h"
0012 
0013 class VolumeManagerDevice;
0014 class Partition;
0015 class Report;
0016 
0017 class QString;
0018 
0019 class DeactivateVolumeGroupJob : public Job
0020 {
0021 public:
0022     explicit DeactivateVolumeGroupJob(VolumeManagerDevice& dev);
0023 
0024 public:
0025     bool run(Report& parent) override;
0026     QString description() const override;
0027 
0028 protected:
0029     VolumeManagerDevice& device() {
0030         return m_Device;
0031     }
0032     const VolumeManagerDevice& device() const {
0033         return m_Device;
0034     }
0035 
0036 private:
0037     VolumeManagerDevice& m_Device;
0038 };
0039 
0040 #endif