2020-09-16 00:35:12 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2016 Chantara Tith <tith.chantara@gmail.com>
|
|
|
|
SPDX-FileCopyrightText: 2016-2018 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2018-07-16 00:20:00 +01:00
|
|
|
#ifndef RESIZEVOLUMEGROUPDIALOG_H
|
2017-09-11 16:27:51 +01:00
|
|
|
#define RESIZEVOLUMEGROUPDIALOG_H
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2016-09-10 22:10:11 +01:00
|
|
|
#include <fs/lvm2_pv.h>
|
|
|
|
|
2016-09-04 12:25:43 +01:00
|
|
|
#include "gui/volumegroupdialog.h"
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2016-09-07 14:36:59 +01:00
|
|
|
class Device;
|
2018-07-16 00:20:00 +01:00
|
|
|
class Operation;
|
2016-08-08 00:47:05 +01:00
|
|
|
class VolumeManagerDevice;
|
2016-07-09 01:12:31 +01:00
|
|
|
|
2016-09-04 12:25:43 +01:00
|
|
|
class ResizeVolumeGroupDialog : public VolumeGroupDialog
|
2016-07-09 01:12:31 +01:00
|
|
|
{
|
2016-09-04 12:25:43 +01:00
|
|
|
Q_DISABLE_COPY(ResizeVolumeGroupDialog)
|
2016-07-09 01:12:31 +01:00
|
|
|
|
|
|
|
public:
|
2018-07-16 00:20:00 +01:00
|
|
|
ResizeVolumeGroupDialog(QWidget* parent, VolumeManagerDevice *d, QVector<const Partition*>& partList, QList<Device*> devices, QList<Operation*> pendingOps = QList<Operation *>());
|
2016-07-09 01:12:31 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void accept() override;
|
|
|
|
void setupDialog() override;
|
|
|
|
void setupConstraints() override;
|
2016-08-08 00:47:05 +01:00
|
|
|
|
2016-09-24 21:09:16 +01:00
|
|
|
VolumeManagerDevice* device() const {
|
2016-08-08 00:47:05 +01:00
|
|
|
return m_Device;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2018-07-16 00:20:00 +01:00
|
|
|
const QList<Device*> m_Devices; // List of all devices found on the system
|
2016-09-24 21:09:16 +01:00
|
|
|
VolumeManagerDevice* m_Device;
|
2018-07-16 00:20:00 +01:00
|
|
|
const QList<Operation*> m_PendingOps; // List of pending operations in KPM
|
2016-07-09 01:12:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|