1 #ifndef __lib_service_event_h
2 #define __lib_service_event_h
6 #include <lib/base/object.h>
12 class eServiceEvent: public iObject
14 DECLARE_REF(eServiceEvent);
16 bool loadLanguage(Event *event, std::string lang, int tsidonid);
20 struct linkage_service
25 std::string description;
27 std::list<linkage_service> m_linkage_services;
30 std::string m_event_name, m_short_description, m_extended_description;
32 RESULT parseFrom(Event *evt, int tsidonid=0);
34 time_t getBeginTime() { return m_begin; }
35 int getDuration() { return m_duration; }
36 std::string getEventName() { return m_event_name; }
37 std::string getShortDescription() { return m_short_description; }
38 std::string getExtendedDescription() { return m_extended_description; }
39 std::string getBeginTimeString();
42 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
45 class eDebugClass: public iObject
47 DECLARE_REF(eDebugClass);
50 static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
51 eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
52 ~eDebugClass() { printf("remove debug class %d\n", x); }
55 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);