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

0001 /*
0002     SPDX-FileCopyrightText: 2016 Chantara Tith <tith.chantara@gmail.com>
0003     SPDX-FileCopyrightText: 2016 Andrius Štikonas <andrius@stikonas.eu>
0004 
0005     SPDX-License-Identifier: GPL-3.0-or-later
0006 */
0007 
0008 
0009 #ifndef KPMCORE_MOVEPHYSICALVOLUMEJOB_H
0010 #define KPMCORE_MOVEPHYSICALVOLUMEJOB_H
0011 
0012 #include "core/partition.h"
0013 #include "jobs/job.h"
0014 
0015 class LvmDevice;
0016 class Report;
0017 
0018 class QString;
0019 
0020 class MovePhysicalVolumeJob : public Job
0021 {
0022 public:
0023     MovePhysicalVolumeJob(LvmDevice& dev, const QList <const Partition*>& partlist);
0024 
0025 public:
0026     bool run(Report& parent) override;
0027     QString description() const override;
0028 
0029 
0030 protected:
0031     LvmDevice& device() {
0032         return m_Device;
0033     }
0034     const LvmDevice& device() const {
0035         return m_Device;
0036     }
0037     const QList <const Partition*>& partList() const {
0038         return m_PartList;
0039     }
0040 
0041 private:
0042     LvmDevice& m_Device;
0043     const QList <const Partition*> m_PartList;
0044 };
0045 
0046 #endif