mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 20:35:36 -04:00
[partition] Move SwapChoice to another namespace
- The choice of swap needs to be handled in more places, so make the enum available in the partition module core instead of just inside the choice page.
This commit is contained in:
parent
846e496d76
commit
5136021416
3 changed files with 30 additions and 22 deletions
|
@ -50,6 +50,23 @@ void doReplacePartition( PartitionCoreModule* core,
|
|||
Device* dev,
|
||||
Partition* partition,
|
||||
const QString& luksPassphrase = QString() );
|
||||
}
|
||||
|
||||
/** @brief Namespace for enums
|
||||
*
|
||||
* This namespace houses non-class enums.....
|
||||
*/
|
||||
namespace Choices
|
||||
{
|
||||
/** @brief Ccchoice of swap (size and type) */
|
||||
enum SwapChoice
|
||||
{
|
||||
NoSwap, // don't create any swap, don't use any
|
||||
ReuseSwap, // don't create, but do use existing
|
||||
SmallSwap, // up to 8GiB of swap
|
||||
FullSwap, // ensureSuspendToDisk -- at least RAM size
|
||||
SwapFile // use a file (if supported)
|
||||
};
|
||||
} // namespace Choices
|
||||
} // namespace PartitionActions
|
||||
|
||||
#endif // PARTITIONACTIONS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue