IBR-DTNSuite
0.8
|
#include <GlobalEvent.h>
Public Types | |
enum | Action { GLOBAL_SHUTDOWN = 0, GLOBAL_RELOAD = 1, GLOBAL_IDLE = 2, GLOBAL_BUSY = 3, GLOBAL_SUSPEND = 4, GLOBAL_POWERSAVE = 5, GLOBAL_WAKEUP = 6 } |
Public Member Functions | |
virtual | ~GlobalEvent () |
const std::string | getName () const |
Action | getAction () const |
std::string | toString () const |
Static Public Member Functions | |
static void | raise (const Action a) |
Static Public Attributes | |
static const std::string | className = "GlobalEvent" |
Definition at line 17 of file GlobalEvent.h.
GLOBAL_SHUTDOWN | |
GLOBAL_RELOAD | |
GLOBAL_IDLE | |
GLOBAL_BUSY | |
GLOBAL_SUSPEND | |
GLOBAL_POWERSAVE | |
GLOBAL_WAKEUP |
Definition at line 20 of file GlobalEvent.h.
dtn::core::GlobalEvent::~GlobalEvent | ( | ) | [virtual] |
Definition at line 20 of file GlobalEvent.cpp.
Definition at line 24 of file GlobalEvent.cpp.
Referenced by dtn::daemon::StandByManager::raiseEvent(), dtn::api::EventConnection::raiseEvent(), dtn::core::EventSwitch::raiseEvent(), and dtn::storage::SQLiteBundleStorage::raiseEvent().
const string dtn::core::GlobalEvent::getName | ( | ) | const [virtual] |
Implements dtn::core::Event.
Definition at line 29 of file GlobalEvent.cpp.
References className.
Referenced by dtn::api::EventConnection::raiseEvent().
void dtn::core::GlobalEvent::raise | ( | const Action | a | ) | [static] |
Definition at line 34 of file GlobalEvent.cpp.
References dtn::core::Event::raiseEvent().
Referenced by __daemon_run(), and sighandler().
string dtn::core::GlobalEvent::toString | ( | ) | const [virtual] |
const string dtn::core::GlobalEvent::className = "GlobalEvent" [static] |
Definition at line 41 of file GlobalEvent.h.
Referenced by dtn::daemon::StandByManager::componentDown(), dtn::storage::SQLiteBundleStorage::componentDown(), dtn::daemon::StandByManager::componentUp(), dtn::storage::SQLiteBundleStorage::componentUp(), dtn::api::EventConnection::finally(), getName(), dtn::api::EventConnection::setup(), and toString().