Partitions: split device-listing (and winnowing) into separate source file.

The grab-list-of-writable-devices code is usable for the partition module, but
also useful for welcome module, so reduce its footprint.
This commit is contained in:
Adriaan de Groot 2017-07-11 08:54:56 -04:00
parent e4862512f7
commit 102bed1805
6 changed files with 176 additions and 101 deletions

View file

@ -23,7 +23,6 @@
#include <QString>
class Device;
class PartitionCoreModule;
class Partition;
@ -63,14 +62,6 @@ 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