QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
settingsserializer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2016 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
8#ifndef SRC_SETTINGSSERIALIZER_H_
9#define SRC_SETTINGSSERIALIZER_H_
10
11#include "appsettings.h"
12
13class QSettings;
14
27class SettingsSerializer {
28public:
34 static auto load(QSettings &qs) -> AppSettings;
47 static auto loadPasswordConfiguration(QSettings &qs) -> PasswordConfiguration;
53 static void save(QSettings &qs, const AppSettings &settings);
54
55private:
56 SettingsSerializer() = default;
57};
58
59#endif // SRC_SETTINGSSERIALIZER_H_
AppSettings, the value object holding every flat QtPass setting.
static auto loadPasswordConfiguration(QSettings &qs) -> PasswordConfiguration
Read only the password generation settings from a QSettings store.
static void save(QSettings &qs, const AppSettings &settings)
Write all flat settings to a QSettings store.
static auto load(QSettings &qs) -> AppSettings
Read all flat settings from a QSettings store.
Plain value-object holding all flat QtPass configuration.
Definition appsettings.h:36
Holds the password generator settings: which character set is selected, the alphabet of every set,...