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 }; 00025 00026 virtual ~GlobalEvent(); 00027 00028 const std::string getName() const; 00029 00030 Action getAction() const; 00031 00032 static void raise(const Action a); 00033 00034 std::string toString() const; 00035 00036 static const std::string className; 00037 00038 private: 00039 GlobalEvent(const Action a); 00040 Action _action; 00041 }; 00042 } 00043 } 00044 00045 #endif /* GLOBALEVENT_H_ */
1.6.3