[partition] Partial implementation of Config-side for storing replace-FS

This commit is contained in:
Adriaan de Groot 2022-06-02 14:58:28 +02:00
parent e27c57f8a6
commit b763087e11

View File

@ -31,6 +31,8 @@ class Config : public QObject
Q_PROPERTY( Q_PROPERTY(
QString eraseModeFilesystem READ eraseFsType WRITE setEraseFsTypeChoice NOTIFY eraseModeFilesystemChanged ) QString eraseModeFilesystem READ eraseFsType WRITE setEraseFsTypeChoice NOTIFY eraseModeFilesystemChanged )
Q_PROPERTY( QString replaceModeFilesystem READ replaceModeFilesystem WRITE setReplaceFilesystem NOTIFY replaceModeFilesystemChanged )
Q_PROPERTY( bool allowManualPartitioning READ allowManualPartitioning CONSTANT FINAL ) Q_PROPERTY( bool allowManualPartitioning READ allowManualPartitioning CONSTANT FINAL )
public: public:
@ -146,11 +148,13 @@ public Q_SLOTS:
void setSwapChoice( int ); ///< Translates a button ID or so to SwapChoice void setSwapChoice( int ); ///< Translates a button ID or so to SwapChoice
void setSwapChoice( SwapChoice ); void setSwapChoice( SwapChoice );
void setEraseFsTypeChoice( const QString& filesystemName ); ///< See property eraseModeFilesystem void setEraseFsTypeChoice( const QString& filesystemName ); ///< See property eraseModeFilesystem
void setReplaceFilesystemChoice( const QString& filesystemName );
Q_SIGNALS: Q_SIGNALS:
void installChoiceChanged( InstallChoice ); void installChoiceChanged( InstallChoice );
void swapChoiceChanged( SwapChoice ); void swapChoiceChanged( SwapChoice );
void eraseModeFilesystemChanged( const QString& ); void eraseModeFilesystemChanged( const QString& );
void replaceModeFilesystemChanged( const QString& );
private: private:
/** @brief Handle FS-type configuration, for erase and default */ /** @brief Handle FS-type configuration, for erase and default */