IBR-DTNSuite  0.10
dtn::core::GlobalEvent Class Reference

#include <GlobalEvent.h>

Inheritance diagram for dtn::core::GlobalEvent:
Inheritance graph
Collaboration diagram for dtn::core::GlobalEvent:
Collaboration graph

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, GLOBAL_INTERNET_AVAILABLE = 7,
  GLOBAL_INTERNET_UNAVAILABLE = 8
}
 

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)
 

Detailed Description

Definition at line 31 of file GlobalEvent.h.

Member Enumeration Documentation

Enumerator
GLOBAL_SHUTDOWN 
GLOBAL_RELOAD 
GLOBAL_IDLE 
GLOBAL_BUSY 
GLOBAL_SUSPEND 
GLOBAL_POWERSAVE 
GLOBAL_WAKEUP 
GLOBAL_INTERNET_AVAILABLE 
GLOBAL_INTERNET_UNAVAILABLE 

Definition at line 34 of file GlobalEvent.h.

Constructor & Destructor Documentation

dtn::core::GlobalEvent::~GlobalEvent ( )
virtual

Definition at line 35 of file GlobalEvent.cpp.

Member Function Documentation

std::string dtn::core::GlobalEvent::getMessage ( ) const
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_POWERSAVE, GLOBAL_RELOAD, GLOBAL_SHUTDOWN, GLOBAL_SUSPEND, and GLOBAL_WAKEUP.

Here is the call graph for this function:

const std::string dtn::core::GlobalEvent::getName ( ) const
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().

void dtn::core::GlobalEvent::raise ( const Action  a)
static

Member Data Documentation

const std::string dtn::core::GlobalEvent::className = "GlobalEvent"
static

Definition at line 56 of file GlobalEvent.h.

Referenced by getName().


The documentation for this class was generated from the following files: