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_DEACTIVATELOGICALVOLUMEJOB_H 0009 #define KPMCORE_DEACTIVATELOGICALVOLUMEJOB_H 0010 0011 #include "jobs/job.h" 0012 0013 class VolumeManagerDevice; 0014 class Partition; 0015 class Report; 0016 0017 class QString; 0018 0019 class DeactivateLogicalVolumeJob : public Job 0020 { 0021 public: 0022 explicit DeactivateLogicalVolumeJob(const VolumeManagerDevice& dev, const QStringList lvPaths = {}); 0023 0024 public: 0025 bool run(Report& parent) override; 0026 QString description() const override; 0027 0028 protected: 0029 const VolumeManagerDevice& device() const { 0030 return m_Device; 0031 } 0032 0033 QStringList LVList() const { 0034 return m_LVList; 0035 } 0036 0037 private: 0038 const VolumeManagerDevice& m_Device; 0039 const QStringList m_LVList; 0040 }; 0041 0042 #endif