partitionmanager/src/gui/resizevolumegroupdialog.h

42 lines
1.1 KiB
C
Raw Normal View History

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
#ifndef RESIZEVOLUMEGROUPDIALOG_H
#define RESIZEVOLUMEGROUPDIALOG_H
2016-07-09 01:12:31 +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
class Device;
class Operation;
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:
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;
VolumeManagerDevice* device() const {
return m_Device;
}
private:
const QList<Device*> m_Devices; // List of all devices found on the system
VolumeManagerDevice* m_Device;
const QList<Operation*> m_PendingOps; // List of pending operations in KPM
2016-07-09 01:12:31 +01:00
};
#endif