network setup stuff
[enigma2.git] / lib / service / event.h
1 #ifndef __lib_service_event_h
2 #define __lib_service_event_h
3
4 #include <time.h>
5 #include <lib/base/object.h>
6 #include <string>
7 class Event;
8
9 class eServiceEvent: public iObject
10 {
11 DECLARE_REF(eServiceEvent);
12 public:
13         time_t m_begin;
14         int m_duration;
15         std::string m_event_name, m_description;
16         // .. additional info
17         
18         RESULT parseFrom(Event *evt);
19 };
20
21 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
22
23 class eDebugClass: public iObject
24 {
25         DECLARE_REF(eDebugClass);
26 public:
27         int x;
28         static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
29         eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
30         ~eDebugClass() { printf("remove debug class %d\n", x); }
31 };
32
33 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);
34
35 #endif