@ -24,6 +24,7 @@
# include "core/KPMHelpers.h"
# include "core/PartitionLayout.h"
# include "core/PartitionModel.h"
# include "jobs/PartitionJob.h"
# include "Job.h"
# include "partition/KPMManager.h"
@ -241,32 +242,19 @@ Q_SIGNALS:
void deviceReverted ( Device * device ) ;
private :
CalamaresUtils : : Partition : : KPMManager m_kpmcore ;
struct DeviceInfo ;
void refreshAfterModelChange ( ) ;
/**
* Owns the Device , PartitionModel and the jobs
*/
struct DeviceInfo
{
DeviceInfo ( Device * ) ;
~ DeviceInfo ( ) ;
QScopedPointer < Device > device ;
QScopedPointer < PartitionModel > partitionModel ;
const QScopedPointer < Device > immutableDevice ;
// To check if LVM VGs are deactivated
bool isAvailable ;
void doInit ( ) ;
void updateHasRootMountPoint ( ) ;
void updateIsDirty ( ) ;
void scanForEfiSystemPartitions ( ) ;
void scanForLVMPVs ( ) ;
void forgetChanges ( ) ;
bool isDirty ( ) const ;
DeviceInfo * infoForDevice ( const Device * ) const ;
const Calamares : : JobList & jobs ( ) const { return m_jobs ; }
CalamaresUtils : : Partition : : KPMManager m_kpmcore ;
private :
Calamares : : JobList m_jobs ;
} ;
QList < DeviceInfo * > m_deviceInfos ;
QList < Partition * > m_efiSystemPartitions ;
QVector < const Partition * > m_lvmPVs ;
@ -278,14 +266,6 @@ private:
QString m_bootLoaderInstallPath ;
PartitionLayout * m_partLayout ;
void doInit ( ) ;
void updateHasRootMountPoint ( ) ;
void updateIsDirty ( ) ;
void scanForEfiSystemPartitions ( ) ;
void scanForLVMPVs ( ) ;
DeviceInfo * infoForDevice ( const Device * ) const ;
OsproberEntryList m_osproberLines ;
QMutex m_revertMutex ;