#include <event.h>
Public Member Functions | |
| Event () | |
| constructor | |
| Event (const string &n) | |
| copy constructor | |
| Event (const Event &) | |
| copy constructor | |
| Event & | operator= (Event &) |
| copy constructor | |
| ~Event () | |
| destructor | |
| bool | execute_program (string acpi_event_line="") |
| execute only one external program in the list of pending events | |
| void | setActions2Execute (std::list< std::string > actions) |
| set the actions to be executed by this event | |
| void | setActions2Execute (const string &action) |
| set an action to be executed by this event | |
| bool | isInternalAction () |
| checks whether the given action is internal | |
| void | setTimeout (unsigned long) |
| sets the timeout of an event | |
| unsigned long | getTimeout () |
| gets the timeout of an event | |
| void | start () |
| starts the timer | |
| void | increaseSleeptime (unsigned long time) |
| adds time to sleep_time | |
| void | setID (int id) |
| sets the id of the event | |
| int | ID () |
| returns the event id | |
| string | name () |
| returns the event name | |
| unsigned long | timeElapsed () |
| returns the amount of time an event is running already | |
| void | setupInternalActions () |
| sets up the names of all internal actions | |
| list< string >::iterator | end () |
| void | insertAction (std::list< std::string > &actions, bool before, const std::string &match, const std::string &action) |
| inserts an action into an event | |
| std::string | currentAction () |
Public Attributes | |
| std::list< string >::iterator | _current_program_2_execute |
| an iterator which points to the current script in programs_2_execute | |
| std::list< string > | _programs_2_execute |
| standard list containing all programs executed for an event | |
Static Public Attributes | |
| static const int | _proxy_nice_factor = -20 |
| giving the nicefactor with which they are acecuted | |
Private Attributes | |
| string | _name |
| the unique name of an event | |
| int | _id |
| a unique id, assigned by EventManagement | |
| time_t | _timeout |
| the timeout in seconds before the event is considered as failed | |
| long | _starttime |
| the starttime | |
| unsigned long | _sleep_time |
| the time how long we slept while this event is running | |
| std::list< string > | _internalActions |
| list of internal actions (e.g. throttle) | |
|
|
constructor
|
|
|
copy constructor
|
|
|
copy constructor
|
|
|
destructor
|
|
|
|
|
|
|
|
|
execute only one external program in the list of pending events I need a whole PM_Interface object here to get the current scheme name as a parameter for the invoked script and for internal actions, maybe this could be solved nicer ... |
|
|
gets the timeout of an event
|
|
|
returns the event id
|
|
|
adds time to sleep_time
|
|
||||||||||||||||||||
|
inserts an action into an event
|
|
|
checks whether the given action is internal
|
|
|
returns the event name
|
|
|
copy constructor
|
|
|
set an action to be executed by this event
|
|
|
set the actions to be executed by this event
|
|
|
sets the id of the event
|
|
|
sets the timeout of an event
|
|
|
sets up the names of all internal actions
|
|
|
starts the timer
|
|
|
returns the amount of time an event is running already
|
|
|
an iterator which points to the current script in programs_2_execute
|
|
|
a unique id, assigned by EventManagement
|
|
|
list of internal actions (e.g. throttle)
|
|
|
the unique name of an event
|
|
|
standard list containing all programs executed for an event this list contains all actions which should get executed for a specific even. It can contain scripts or internal actions |
|
|
giving the nicefactor with which they are acecuted scripts are executed with negativ nice factor (higher priority) to avoid race conditions and provide fast suspend/standby maybe these should be configurable somewhen ... |
|
|
the time how long we slept while this event is running
|
|
|
the starttime
|
|
|
the timeout in seconds before the event is considered as failed
|
1.4.6