mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[luksbootkeyfile] Refactor static function to outside class
This commit is contained in:
parent
7d7d4c69ef
commit
efd409cf78
1 changed files with 25 additions and 25 deletions
|
@ -66,18 +66,6 @@ struct LuksDevice
|
|||
QString passphrase;
|
||||
};
|
||||
|
||||
struct LuksDeviceList
|
||||
{
|
||||
LuksDeviceList( const QVariant& partitions )
|
||||
: valid( false )
|
||||
{
|
||||
if ( partitions.canConvert< QVariantList >() )
|
||||
{
|
||||
devices = getLuksDevices( partitions.toList() );
|
||||
valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
/** @brief Extract the luks passphrases setup.
|
||||
*
|
||||
* Given a list of partitions (as set up by the partitioning module,
|
||||
|
@ -103,6 +91,18 @@ struct LuksDeviceList
|
|||
return luksItems;
|
||||
}
|
||||
|
||||
struct LuksDeviceList
|
||||
{
|
||||
LuksDeviceList( const QVariant& partitions )
|
||||
: valid( false )
|
||||
{
|
||||
if ( partitions.canConvert< QVariantList >() )
|
||||
{
|
||||
devices = getLuksDevices( partitions.toList() );
|
||||
valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
QList< LuksDevice > devices;
|
||||
bool valid;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue