Singleton class for storing settings variables.
#include <Workspace/Application/settingsvariables.h>
◆ Type
Enumerator |
---|
FilePath | |
Path | |
String | |
◆ ~SettingsVariables()
◆ clear()
Clears all of the settings variables.
◆ contains()
bool contains |
( |
const QString & |
name | ) |
const |
- Returns
- Returns false if the supplied variable name does not exist
◆ getAllTypes()
- Returns
- Returns a list of all variable types.
◆ getInstance()
◆ getNameList()
- Returns
- A list of names for all settings variables.
◆ getSystemVariableType()
- Parameters
-
name | Name of the settings variable which will have its type checked. |
- Returns
- Returns system variable type. String value is returned if the supplied name is not a system variable.
◆ getType()
bool getType |
( |
const QString & |
name, |
|
|
Type & |
type |
|
) |
| const |
- Parameters
-
name | Name of the settings variable whose value is requested. |
type | Output parameter for settings variable type. |
- Returns
- Returns false if the requested settings variable does not exist.
◆ getValue()
bool getValue |
( |
const QString & |
name, |
|
|
QString & |
value |
|
) |
| const |
- Parameters
-
name | Name of the settings variable whose value is requested. |
value | Output parameter for settings variable value. |
- Returns
- Returns false if the requested settings variable does not exist.
◆ initializeSystemDefaults()
void initializeSystemDefaults |
( |
| ) |
|
Initializes System default settings variables.
◆ isSystemSettingsVar()
bool isSystemSettingsVar |
( |
const QString & |
name | ) |
const |
- Parameters
-
name | Name of the settings variable which will be checked. |
- Returns
- Returns true if the supplied name is reserved as a system settings variable.
◆ setType()
bool setType |
( |
const QString & |
name, |
|
|
Type |
type |
|
) |
| |
- Parameters
-
name | Name of the settings variable. |
type | Type of the settings variable. |
- Returns
- Returns false if the settings variable name is empty.
◆ setValue()
bool setValue |
( |
const QString & |
name, |
|
|
const QString & |
value |
|
) |
| |
- Parameters
-
name | Name of the settings variable. |
value | Value of the settings variable. |
- Returns
- Returns false if the settings variable name is empty.
◆ toEnum()
QString to Enum converter.
◆ toString()
QString toString |
( |
Type |
type | ) |
|
|
static |
Enum to QString converter.