2020-09-29 23:55:11 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2016 Chantara Tith <tith.chantara@gmail.com>
|
|
|
|
SPDX-FileCopyrightText: 2019 Yuri Chornoivan <yurchor@ukr.net>
|
2016-08-08 06:53:24 +01:00
|
|
|
|
2020-09-29 23:55:11 +01:00
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KPMCORE_DEACTIVATELOGICALVOLUMEJOB_H
|
2017-09-10 20:12:52 +01:00
|
|
|
#define KPMCORE_DEACTIVATELOGICALVOLUMEJOB_H
|
2016-08-08 06:53:24 +01:00
|
|
|
|
|
|
|
#include "jobs/job.h"
|
|
|
|
|
|
|
|
class VolumeManagerDevice;
|
|
|
|
class Partition;
|
|
|
|
class Report;
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
|
|
|
|
class DeactivateLogicalVolumeJob : public Job
|
|
|
|
{
|
|
|
|
public:
|
2019-12-09 16:09:53 +00:00
|
|
|
explicit DeactivateLogicalVolumeJob(const VolumeManagerDevice& dev, const QStringList lvPaths = {});
|
2016-08-08 06:53:24 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
bool run(Report& parent) override;
|
|
|
|
QString description() const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
const VolumeManagerDevice& device() const {
|
|
|
|
return m_Device;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStringList LVList() const {
|
|
|
|
return m_LVList;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2016-08-08 18:37:21 +01:00
|
|
|
const VolumeManagerDevice& m_Device;
|
|
|
|
const QStringList m_LVList;
|
2016-08-08 06:53:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|