start_time is now valid in eServiceEvent,
[vuplus_dvbapp] / 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_short_description, m_extended_description;
16         // .. additional info
17
18         bool language_exists(Event *event, std::string lang);
19         RESULT parseFrom(Event *evt);
20 };
21
22 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
23
24 class eDebugClass: public iObject
25 {
26         DECLARE_REF(eDebugClass);
27 public:
28         int x;
29         static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
30         eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
31         ~eDebugClass() { printf("remove debug class %d\n", x); }
32 };
33
34 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);
35
36 #endif