[partition] Initial implementation of VolumeGroupBaseDialog.

This commit is contained in:
Caio 2018-06-04 16:31:58 -03:00
parent f72f7bd8fe
commit d15ce56c97
14 changed files with 580 additions and 1 deletions

View file

@ -111,6 +111,8 @@ public:
void createPartition( Device* device, Partition* partition,
PartitionTable::Flags flags = PartitionTable::FlagNone );
void createVolumeGroup( QString &vgName, QVector< const Partition* > pvList, qint32 peSize );
void deletePartition( Device* device, Partition* partition );
void formatPartition( Device* device, Partition* partition );
@ -132,6 +134,8 @@ public:
QList< Partition* > efiSystemPartitions() const;
QList< const Partition* > lvmPVs() const;
/**
* @brief findPartitionByMountPoint returns a Partition* for a given mount point.
* @param mountPoint the mount point to find a partition for.
@ -194,6 +198,7 @@ private:
};
QList< DeviceInfo* > m_deviceInfos;
QList< Partition* > m_efiSystemPartitions;
QList< const Partition* > m_lvmPVs;
DeviceModel* m_deviceModel;
BootLoaderModel* m_bootLoaderModel;
@ -205,6 +210,7 @@ private:
void updateHasRootMountPoint();
void updateIsDirty();
void scanForEfiSystemPartitions();
void scanForLVMPVs();
DeviceInfo* infoForDevice( const Device* ) const;