IBR-DTNSuite 0.6

daemon/src/core/GlobalEvent.h

Go to the documentation of this file.
00001 /*
00002  * GlobalEvent.h
00003  *
00004  *  Created on: 30.10.2009
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef GLOBALEVENT_H_
00009 #define GLOBALEVENT_H_
00010 
00011 #include "core/Event.h"
00012 
00013 namespace dtn
00014 {
00015         namespace core
00016         {
00017                 class GlobalEvent : public Event
00018                 {
00019                 public:
00020                         enum Action
00021                         {
00022                                 GLOBAL_SHUTDOWN = 0,
00023                                 GLOBAL_RELOAD = 1,
00024                                 GLOBAL_IDLE = 2,
00025                                 GLOBAL_BUSY = 3
00026                         };
00027 
00028                         virtual ~GlobalEvent();
00029 
00030                         const std::string getName() const;
00031 
00032                         Action getAction() const;
00033 
00034                         static void raise(const Action a);
00035 
00036                         std::string toString() const;
00037 
00038                         static const std::string className;
00039 
00040                 private:
00041                         GlobalEvent(const Action a);
00042                         Action _action;
00043                 };
00044         }
00045 }
00046 
00047 #endif /* GLOBALEVENT_H_ */