#include "iAbase_export.h"
#include <QMap>
#include <QVariant>
|
| iAbase_API void | initializeSettingTypes () |
| | Initialize Qt meta types / serialization operators required for storing and loading specific setting values.
|
| |
| iAbase_API QVariantMap | loadSettings (QString const &group, QVariantMap const &defaultValues) |
| | Load settings in the given group from the platform-specific storage.
|
| |
| iAbase_API QVariantMap | mapFromQSettings (QSettings const &settings) |
| | Retrieve a map of all values in (the current group of) a given QSettings object.
|
| |
| iAbase_API void | storeSettings (QString const &group, QVariantMap const &values) |
| | Save the given setting values to the platform-specific storage.
|
| |
◆ initializeSettingTypes()
| iAbase_API void initializeSettingTypes |
( |
| ) |
|
Initialize Qt meta types / serialization operators required for storing and loading specific setting values.
◆ loadSettings()
| iAbase_API QVariantMap loadSettings |
( |
QString const & |
group, |
|
|
QVariantMap const & |
defaultValues |
|
) |
| |
Load settings in the given group from the platform-specific storage.
- Parameters
-
| group | name of the group of settings to load from the platform-specific storage (see QSettings) |
| defaultValues | values for keys not present in the platform-specific storage will be initialized from this parameter |
◆ mapFromQSettings()
| iAbase_API QVariantMap mapFromQSettings |
( |
QSettings const & |
settings | ) |
|
Retrieve a map of all values in (the current group of) a given QSettings object.
- Parameters
-
| settings | the QSettings object to load all settings from |
- Returns
- a map containing key->value pairs for all settings currently in (current group of) the given QSettings object
◆ storeSettings()
| iAbase_API void storeSettings |
( |
QString const & |
group, |
|
|
QVariantMap const & |
values |
|
) |
| |
Save the given setting values to the platform-specific storage.