2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2018-06-04 21:31:58 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2018 Caio Jordão Carvalho <caiojcarvalho@gmail.com>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2018-06-04 21:31:58 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2018-06-04 21:31:58 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CREATEVOLUMEGROUPJOB_H
|
|
|
|
#define CREATEVOLUMEGROUPJOB_H
|
|
|
|
|
2019-06-14 23:14:11 +02:00
|
|
|
#include "Job.h"
|
2019-06-14 23:32:34 +02:00
|
|
|
#include "partition/KPMManager.h"
|
2018-06-04 21:31:58 +02:00
|
|
|
|
|
|
|
#include <QVector>
|
|
|
|
|
2020-09-21 16:46:24 +02:00
|
|
|
class Device;
|
2019-06-14 23:32:34 +02:00
|
|
|
class Partition;
|
|
|
|
|
2018-06-04 21:31:58 +02:00
|
|
|
class CreateVolumeGroupJob : public Calamares::Job
|
|
|
|
{
|
2019-02-14 22:12:43 +01:00
|
|
|
Q_OBJECT
|
2018-06-04 21:31:58 +02:00
|
|
|
public:
|
2020-09-21 16:46:24 +02:00
|
|
|
CreateVolumeGroupJob( Device*, QString& vgName, QVector< const Partition* > pvList, const qint32 peSize );
|
2018-06-04 21:31:58 +02:00
|
|
|
|
|
|
|
QString prettyName() const override;
|
|
|
|
QString prettyDescription() const override;
|
|
|
|
QString prettyStatusMessage() const override;
|
|
|
|
Calamares::JobResult exec() override;
|
|
|
|
|
|
|
|
void updatePreview();
|
|
|
|
void undoPreview();
|
|
|
|
|
|
|
|
private:
|
2019-06-14 23:32:34 +02:00
|
|
|
CalamaresUtils::Partition::KPMManager m_kpmcore;
|
2018-06-04 21:31:58 +02:00
|
|
|
QString m_vgName;
|
|
|
|
QVector< const Partition* > m_pvList;
|
|
|
|
qint32 m_peSize;
|
|
|
|
};
|
|
|
|
|
2020-04-07 11:36:40 +02:00
|
|
|
#endif // CREATEVOLUMEGROUPJOB_H
|