Declare the class QtlSettings, a base class for application settings. More...
Classes | |
class | QtlSettings |
A base class for application settings. More... | |
Macros | |
#define | QTL_SETTINGS_BOOL(getter, setter, defaultValue) |
Create getter and setter for a boolean setting. More... | |
#define | QTL_SETTINGS_ENUM(getter, setter, enumType, defaultValue) |
Create getter and setter for an enumeration setting. More... | |
#define | QTL_SETTINGS_INT(getter, setter, defaultValue) |
Create getter and setter for an integer setting. More... | |
#define | QTL_SETTINGS_STRING(getter, setter, defaultValue) |
Create getter and setter for a string setting. More... | |
Declare the class QtlSettings, a base class for application settings.
Qtl, Qt utility library.
#define QTL_SETTINGS_STRING | ( | getter, | |
setter, | |||
defaultValue | |||
) |
Create getter and setter for a string setting.
The getter and setter definitions are inlined. These accessors simply load and store the option without further processing.
getter | Name of the getter method (also used as setting name). |
setter | Name of the setter method. |
defaultValue | Default value when the setting is unset. |
#define QTL_SETTINGS_INT | ( | getter, | |
setter, | |||
defaultValue | |||
) |
Create getter and setter for an integer setting.
The getter and setter definitions are inlined. These accessors simply load and store the option without further processing.
getter | Name of the getter method (also used as setting name). |
setter | Name of the setter method. |
defaultValue | Default value when the setting is unset. |
#define QTL_SETTINGS_ENUM | ( | getter, | |
setter, | |||
enumType, | |||
defaultValue | |||
) |
Create getter and setter for an enumeration setting.
The getter and setter definitions are inlined. These accessors simply load and store the option without further processing. The enumeration values are stored as integer value. Be sure to preserve the order of enumeration values in the various versions of the application so that the settings from version N-1 can be safely loaded in version N.
getter | Name of the getter method (also used as setting name). |
setter | Name of the setter method. |
enumType | Enumeration type name. |
defaultValue | Default value when the setting is unset. |
#define QTL_SETTINGS_BOOL | ( | getter, | |
setter, | |||
defaultValue | |||
) |
Create getter and setter for a boolean setting.
The getter and setter definitions are inlined. These accessors simply load and store the option without further processing.
getter | Name of the getter method (also used as setting name). |
setter | Name of the setter method. |
defaultValue | Default value when the setting is unset. |