IBR-DTNSuite  0.8
daemon/src/core/EventReceiver.h
Go to the documentation of this file.
00001 /*
00002  * EventReceiver.h
00003  *
00004  *  Created on: 05.03.2009
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef EVENTRECEIVER_H_
00009 #define EVENTRECEIVER_H_
00010 
00011 #include <string>
00012 
00013 namespace dtn
00014 {
00015         namespace core
00016         {
00017                 class Event;
00018 
00019                 class EventReceiver
00020                 {
00021                 public:
00022                         virtual ~EventReceiver() = 0;
00023                         virtual void raiseEvent(const Event *evt) = 0;
00024 
00025                 protected:
00026                         void bindEvent(std::string eventName);
00027                         void unbindEvent(std::string eventName);
00028                 };
00029         }
00030 }
00031 
00032 #endif /* EVENTRECEIVER_H_ */