mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
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:
parent
e4862512f7
commit
102bed1805
6 changed files with 176 additions and 101 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue