#include <config_pm.h>
Inheritance diagram for GeneralConfig:

Public Member Functions | |
| GeneralConfig () | |
| constructor | |
| virtual | ~GeneralConfig () |
| destructor | |
| int | readConfFiles () |
| read the config files | |
| SchemeConfig * | getScheme (const string &scheme_name) |
| get a scheme configuration by scheme name | |
| SchemeConfig * | getSchemeByNumber (int no) |
| get a scheme by number | |
| int | setActiveScheme (const string &scheme_name) |
| sets the active scheme | |
| string | getBatteryScheme () |
| get the name of the battery scheme | |
| string | getACScheme () |
| get the name of the AC scheme | |
Public Attributes | |
| SchemeConfig * | current_scheme |
| the current active scheme config | |
| SchemeConfig * | AC_scheme |
| the default AC scheme config | |
| SchemeConfig * | Battery_scheme |
| the default battery scheme config | |
| string | config_dir |
| directory where to find config files | |
| string | script_dir |
| directory where to find "internal" scripts | |
| string | scheme_dir |
| the directory where scheme files are found | |
| string | pub_script_dir |
| directory where to find scripts for e.g. events | |
| bool | disable_CPU_freq |
| whether to disable cpu frequency scaling | |
Private Member Functions | |
| int | initSchemes () |
| initializes all schemes reading them from config files | |
| bool | parseSchemes () |
| parse all scheme config files | |
Private Attributes | |
| SchemeConfig * | scheme_configs |
| beginning of scheme list | |
Static Private Attributes | |
| static const string | config_files [6] = { "common", "thermal", "cpufreq", "battery", "sleep", "events" } |
| six different general config files are used | |
|
|
constructor
|
|
|
destructor
|
|
|
get the name of the AC scheme
|
|
|
get the name of the battery scheme
|
|
|
get a scheme configuration by scheme name
|
|
|
get a scheme by number use for iteration to get all schemes...
|
|
|
initializes all schemes reading them from config files
|
|
|
parse all scheme config files
|
|
|
read the config files
|
|
|
sets the active scheme
|
|
|
the default AC scheme config
|
|
|
the default battery scheme config
|
|
|
directory where to find config files
|
|
|
six different general config files are used
|
|
|
the current active scheme config
|
|
|
whether to disable cpu frequency scaling
|
|
|
directory where to find scripts for e.g. events
|
|
|
beginning of scheme list
|
|
|
the directory where scheme files are found
|
|
|
directory where to find "internal" scripts
|
1.4.6