IBR-DTNSuite
0.12
|
#include <GlobalEvent.h>
Public Types | |
enum | Action { GLOBAL_SHUTDOWN = 0, GLOBAL_RELOAD = 1, GLOBAL_IDLE = 2, GLOBAL_BUSY = 3, GLOBAL_SUSPEND = 4, GLOBAL_RESUME = 5, GLOBAL_START_DISCOVERY = 6, GLOBAL_STOP_DISCOVERY = 7, GLOBAL_INTERNET_AVAILABLE = 8, GLOBAL_INTERNET_UNAVAILABLE = 9 } |
Public Member Functions | |
virtual | ~GlobalEvent () |
const std::string | getName () const |
std::string | getMessage () const |
Action | getAction () const |
Public Member Functions inherited from dtn::core::Event | |
virtual | ~Event ()=0 |
virtual std::string | toString () const |
bool | isLoggable () const |
Static Public Member Functions | |
static void | raise (const Action a) |
Static Public Attributes | |
static const std::string | className = "GlobalEvent" |
Additional Inherited Members | |
Public Attributes inherited from dtn::core::Event | |
const int | prio |
Protected Member Functions inherited from dtn::core::Event | |
Event (int prio=0) | |
void | setLoggable (bool val) |
Definition at line 31 of file GlobalEvent.h.
Enumerator | |
---|---|
GLOBAL_SHUTDOWN | |
GLOBAL_RELOAD | |
GLOBAL_IDLE | |
GLOBAL_BUSY | |
GLOBAL_SUSPEND | |
GLOBAL_RESUME | |
GLOBAL_START_DISCOVERY | |
GLOBAL_STOP_DISCOVERY | |
GLOBAL_INTERNET_AVAILABLE | |
GLOBAL_INTERNET_UNAVAILABLE |
Definition at line 34 of file GlobalEvent.h.
|
virtual |
Definition at line 35 of file GlobalEvent.cpp.
GlobalEvent::Action dtn::core::GlobalEvent::getAction | ( | ) | const |
Definition at line 39 of file GlobalEvent.cpp.
Referenced by getMessage(), dtn::api::EventConnection::raiseEvent(), dtn::net::DiscoveryAgent::raiseEvent(), dtn::net::ConnectionManager::raiseEvent(), dtn::storage::SQLiteBundleStorage::raiseEvent(), and dtn::daemon::NativeDaemon::raiseEvent().
|
virtual |
Get a describing message for this event
Implements dtn::core::Event.
Definition at line 49 of file GlobalEvent.cpp.
References getAction(), GLOBAL_BUSY, GLOBAL_IDLE, GLOBAL_INTERNET_AVAILABLE, GLOBAL_INTERNET_UNAVAILABLE, GLOBAL_RELOAD, GLOBAL_RESUME, GLOBAL_SHUTDOWN, GLOBAL_START_DISCOVERY, GLOBAL_STOP_DISCOVERY, and GLOBAL_SUSPEND.
|
virtual |
Get the name of this event.
Implements dtn::core::Event.
Definition at line 44 of file GlobalEvent.cpp.
References className.
Referenced by dtn::api::EventConnection::raiseEvent().
|
static |
Definition at line 79 of file GlobalEvent.cpp.
References dtn::core::EventDispatcher< E >::queue().
Referenced by dtn::daemon::NativeEventLoop::__cancellation(), dtn::daemon::NativeDaemon::reload(), dtn::core::BundleCore::setGloballyConnected(), dtn::daemon::NativeDaemon::startDiscovery(), and dtn::daemon::NativeDaemon::stopDiscovery().
|
static |
Definition at line 57 of file GlobalEvent.h.
Referenced by getName().