Main Page | Class Hierarchy | Class List | File List | Class Members

EventInterface.h

00001 // Copyright (c) 2004, Thomas Lochmatter, thl@lothosoft.ch 00002 00003 #ifndef classEventInterface 00004 #define classEventInterface 00005 00006 class EventInterface; 00007 00008 #include <sys/time.h> 00009 #include "EventClock.h" 00010 #include "EventInterfaceList.h" 00011 00013 00027 class EventInterface { 00028 friend class EventInterfaceList; 00029 00030 private: 00032 bool mEventActive; 00034 EventClock::tTime mEventTime; 00035 00036 protected: 00038 EventInterfaceList *mEventInterfaceList; 00040 EventInterface *mEventInterfaceNext; 00041 00042 public: 00044 EventInterface(EventInterfaceList *evlist); 00046 ~EventInterface(); 00047 00049 EventInterfaceList *GetEventInterfaceList() {return mEventInterfaceList;} 00051 EventInterface *GetEventInterfaceNext() {return mEventInterfaceNext;} 00052 00054 void DispatchEvent(); 00056 virtual void OnEvent() = 0; 00057 00059 void SetNextEvent(int msec); 00061 void SetNextEventAbsolute(EventClock::tTime evtime); 00062 00064 EventClock::tTime GetNextEventTime() const {return mEventTime;} 00066 bool HasNextEvent() const {return mEventActive;} 00067 }; 00068 00069 #endif

Generated on Wed Jun 1 09:19:07 2005 for libmip by doxygen 1.3.8