00001 /* 00002 * Notifier.h 00003 * 00004 * Created on: 11.12.2009 00005 * Author: morgenro 00006 */ 00007 00008 #ifndef NOTIFIER_H_ 00009 #define NOTIFIER_H_ 00010 00011 #include "Component.h" 00012 #include "core/EventReceiver.h" 00013 #include <iostream> 00014 00015 namespace dtn 00016 { 00017 namespace daemon 00018 { 00019 class Notifier : public dtn::core::EventReceiver, public IntegratedComponent 00020 { 00021 public: 00022 Notifier(std::string cmd); 00023 virtual ~Notifier(); 00024 00025 void raiseEvent(const dtn::core::Event *evt); 00026 00027 void notify(std::string title, std::string msg); 00028 00029 protected: 00030 virtual void componentUp(); 00031 virtual void componentDown(); 00032 00033 private: 00034 std::string _cmd; 00035 }; 00036 } 00037 } 00038 00039 #endif /* NOTIFIER_H_ */
1.6.3