#include <preferencestool.h>
Public Member Functions | |
bool | setPreferencesFile (const char *filePath, const char *version) |
bool | setPreference (const char *key, const char *attribute, bool flushLater=false) |
bool | setPreference (const char *key, const int attribute, bool flushLater=false) |
const char * | getPreference (const char *key, const char *defaultValue) |
const int | getPreference (const char *key, const int defaultValue) |
void | removePreference (const char *key) |
bool | flushPreferences () |
Static Public Member Functions | |
static PreferencesTool * | get () |
Protected Member Functions | |
PreferencesTool () | |
~PreferencesTool () |
|
Protected constructor to deny external instanciation of the singleton. |
|
Cleans up after the preferencestool. |
|
Flushes the preferences to the file specified with setPreferencesFile(..).
|
|
Retrieves the instance of the PreferencesTool class.
|
|
Retrieves an int preference.
|
|
Retrieves a string preference.
|
|
Removes the preference with the key "key". (Which, in practice, means setting it to default).
|
|
Adds an int preference.
|
|
Adds a string preference.
|
|
Sets the file to store preferences in.
|