1 #ifndef __lib_service_event_h
2 #define __lib_service_event_h
6 #include <lib/base/object.h>
11 class eServiceEvent: public iObject
13 DECLARE_REF(eServiceEvent);
15 bool loadLanguage(Event *event, std::string lang, int tsidonid);
21 std::string m_event_name, m_short_description, m_extended_description;
23 RESULT parseFrom(Event *evt, int tsidonid=0);
25 time_t getBeginTime() { return m_begin; }
26 int getDuration() { return m_duration; }
27 std::string getEventName() { return m_event_name; }
28 std::string getShortDescription() { return m_short_description; }
29 std::string getExtendedDescription() { return m_extended_description; }
30 std::string getBeginTimeString();
33 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
36 class eDebugClass: public iObject
38 DECLARE_REF(eDebugClass);
41 static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
42 eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
43 ~eDebugClass() { printf("remove debug class %d\n", x); }
46 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);