A singleton class to provide Config access, use the macros down instead.
More...
#include <Handler.hh>
Public Member Functions |
| | ~Handler () |
| Glib::ustring | get_value (Glib::ustring) |
| | value getter for config option, use CONFIG_GET(x) macro instead
|
| int | get_value_as_int (Glib::ustring) |
| | int value getter for config option, use CONFIG_GET_AS_INT(x) macro instead
|
| void | set_value (Glib::ustring, Glib::ustring) |
| | value setter for config option, use CONFIG_SET(x,y) macro instead
|
| void | set_value_as_int (Glib::ustring, int) |
| | int value setter for config option, use CONFIG_SET_AS_INT(x,y) macro instead
|
| Glib::ustring | get_default_value (Glib::ustring) |
| | value getter for default config value, use CONFIG_GET_DEFAULT(x) macro instead
|
| int | get_default_value_as_int (Glib::ustring) |
| | int value getter for default config value, use CONFIG_GET_DEFAULT_AS_INT(x) macro instead
|
| void | save_config_now () |
| | writes current configuration as config.xml file to hard disk, use CONFIG_SAVE_NOW() macro instead
|
Detailed Description
A singleton class to provide Config access, use the macros down instead.
Definition at line 45 of file Handler.hh.
Constructor & Destructor Documentation
Member Function Documentation
value getter for default config value, use CONFIG_GET_DEFAULT(x) macro instead
- Parameters:
-
| Glib::ustring,config | option url as ustring |
- Returns:
- default predefined option value as ustring
int value getter for default config value, use CONFIG_GET_DEFAULT_AS_INT(x) macro instead
- Parameters:
-
| Glib::ustring,config | option url as ustring |
- Returns:
- default predefined option value as int
value getter for config option, use CONFIG_GET(x) macro instead
- Parameters:
-
| Glib::ustring,config | option url as ustring, e.g. settings.connection.host |
- Returns:
- value as ustring if exists, if not, empty ustring is returned
int value getter for config option, use CONFIG_GET_AS_INT(x) macro instead
- Parameters:
-
| Glib::ustring,config | option url as ustring, e.g. settings.connection.autoconnect |
- Returns:
- int value if exists, if not, -1 is returned
writes current configuration as config.xml file to hard disk, use CONFIG_SAVE_NOW() macro instead
value setter for config option, use CONFIG_SET(x,y) macro instead
- Parameters:
-
| Glib::ustring,config | option url as ustring, e.g. settings.connection.host |
| Glib::ustring,option | value to be set, e.g. localhost |
int value setter for config option, use CONFIG_SET_AS_INT(x,y) macro instead
- Parameters:
-
| Glib::ustring,config | option url as ustring, e.g. settings.connection.port |
| int,option | value to be set, e.g. 6600 |
The documentation for this class was generated from the following file: