[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:
Adriaan de Groot 2018-09-13 06:23:33 -04:00
parent 846e496d76
commit 5136021416
3 changed files with 30 additions and 22 deletions

View file

@ -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