File indexing completed on 2024-04-28 05:46:35
0001 /* 0002 SPDX-FileCopyrightText: 2016 Chantara Tith <tith.chantara@gmail.com> 0003 SPDX-FileCopyrightText: 2016-2018 Andrius Štikonas <andrius@stikonas.eu> 0004 0005 SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 #ifndef RESIZEVOLUMEGROUPDIALOG_H 0009 #define RESIZEVOLUMEGROUPDIALOG_H 0010 0011 #include <fs/lvm2_pv.h> 0012 0013 #include "gui/volumegroupdialog.h" 0014 0015 class Device; 0016 class Operation; 0017 class VolumeManagerDevice; 0018 0019 class ResizeVolumeGroupDialog : public VolumeGroupDialog 0020 { 0021 Q_DISABLE_COPY(ResizeVolumeGroupDialog) 0022 0023 public: 0024 ResizeVolumeGroupDialog(QWidget* parent, VolumeManagerDevice *d, QVector<const Partition*>& partList, QList<Device*> devices, QList<Operation*> pendingOps = QList<Operation *>()); 0025 0026 protected: 0027 void accept() override; 0028 void setupDialog() override; 0029 void setupConstraints() override; 0030 0031 VolumeManagerDevice* device() const { 0032 return m_Device; 0033 } 0034 0035 private: 0036 const QList<Device*> m_Devices; // List of all devices found on the system 0037 VolumeManagerDevice* m_Device; 0038 const QList<Operation*> m_PendingOps; // List of pending operations in KPM 0039 }; 0040 0041 #endif