mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
Partitions: shuffle some device-detection code off to PartUtils.cpp
This commit is contained in:
parent
aeb0cd0d3f
commit
5bf03cc515
3 changed files with 105 additions and 76 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue