IBR-DTN  1.0.0
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_LOW_ENERGY = 4, GLOBAL_NORMAL = 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)
 

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_LOW_ENERGY 
GLOBAL_NORMAL 
GLOBAL_START_DISCOVERY 
GLOBAL_STOP_DISCOVERY 
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

GlobalEvent::Action dtn::core::GlobalEvent::getAction ( ) const

Definition at line 39 of file GlobalEvent.cpp.

Referenced by getMessage().

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_LOW_ENERGY, GLOBAL_NORMAL, GLOBAL_RELOAD, GLOBAL_SHUTDOWN, GLOBAL_START_DISCOVERY, and GLOBAL_STOP_DISCOVERY.

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.


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