#include <event_management.h>
Public Member Functions | |
| EventManagement () | |
| constructor initializing the class | |
| virtual | ~EventManagement () |
| const std::string | cur_prog (int id) |
| returns the current program of an event with the id id | |
| const std::string | name (int id) |
| get name of an event | |
| int | moveOn (int id) |
| moves the iterator current_program_2_execute to the next program of this event | |
| int | registerEvent (Event &event, time_t timeout) |
| registers one event event and adjusts some values | |
| int | count () |
| get number of pending events | |
| bool | remove (int id) |
| removes one event and frees its memory | |
| Event * | event (int id) |
| returns the event which refers to id | |
| void | adjustTimeouts (unsigned long sleep_time) |
| adjusts timeouts after resuming | |
| int | eventIsRunning (const std::string &eventName) |
| checks whether an event is still running | |
| void | checkScriptReturn (int id, int returnValue, std::string &comment) |
| checks if a returned script belongs to a pending event and executes the appropriate actions | |
| bool | continueEvent (Event *event, std::string acpi_event_line) |
| continues an event by executing the next action | |
| bool | executeEvent (const std::string &eventName, const char *acpi_event_line="") |
| execute a powersave event | |
| void | checkEventTimeouts () |
| checks all pending events whether there timeouts are reached | |
Public Attributes | |
| std::list< Event > | Events |
| double linked list of Event-pointers to manage events | |
Private Member Functions | |
| bool | executeInternalAction (Event *event, std::string action) |
| execute an internal action | |
Private Attributes | |
| unsigned int | id_count |
| every event will get a unique id | |
|
|
constructor initializing the class
|
|
|
|
|
|
adjusts timeouts after resuming
|
|
|
checks all pending events whether there timeouts are reached
|
|
||||||||||||||||
|
checks if a returned script belongs to a pending event and executes the appropriate actions
|
|
||||||||||||
|
continues an event by executing the next action
|
|
|
get number of pending events
|
|
|
returns the current program of an event with the id id
|
|
|
returns the event which refers to id
|
|
|
checks whether an event is still running
|
|
||||||||||||
|
execute a powersave event
|
|
||||||||||||
|
execute an internal action
|
|
|
moves the iterator current_program_2_execute to the next program of this event
|
|
|
get name of an event
|
|
||||||||||||
|
registers one event event and adjusts some values
|
|
|
removes one event and frees its memory
|
|
|
double linked list of Event-pointers to manage events
|
|
|
every event will get a unique id
|
1.4.6