Partitions: shuffle some device-detection code off to PartUtils.cpp

This commit is contained in:
Adriaan de Groot 2017-07-11 06:07:15 -04:00
parent aeb0cd0d3f
commit 5bf03cc515
3 changed files with 105 additions and 76 deletions

View file

@ -23,6 +23,7 @@
#include <QString>
class Device;
class PartitionCoreModule;
class Partition;
@ -62,6 +63,14 @@ bool canBeResized( PartitionCoreModule* core, const QString& partitionPath );
*/
OsproberEntryList runOsprober( PartitionCoreModule* core );
/**
* @brief Gets a list of storage devices.
* @param writableOnly if set to true, only devices which can be overwritten
* safely are returned (e.g. RO-media are ignored, as are mounted partitions).
* @return a list of Devices meeting this criterium.
*/
QList< Device* > getDevices( bool writableOnly = false );
}
#endif // PARTUTILS_H