1 #ifndef __lib_service_event_h
2 #define __lib_service_event_h
6 #include <lib/base/object.h>
14 DECLARE_REF(eComponentData);
16 uint8_t m_streamContent;
17 uint8_t m_componentType;
18 uint8_t m_componentTag;
19 std::string m_iso639LanguageCode;
22 int getStreamContent(void) const { return m_streamContent; }
23 int getComponentType(void) const { return m_componentType; }
24 int getComponentTag(void) const { return m_componentTag; }
25 std::string getIso639LanguageCode(void) const { return m_iso639LanguageCode; }
26 std::string getText(void) const { return m_text; }
29 TEMPLATE_TYPEDEF(ePtr<eComponentData>, eComponentDataPtr);
31 struct linkage_service
36 std::string m_description;
39 class eServiceEvent: public iObject
41 DECLARE_REF(eServiceEvent);
43 bool loadLanguage(Event *event, std::string lang, int tsidonid);
44 std::list<eComponentData> m_component_data;
48 std::list<linkage_service> m_linkage_services;
51 std::string m_event_name, m_short_description, m_extended_description;
53 RESULT parseFrom(Event *evt, int tsidonid=0);
55 time_t getBeginTime() const { return m_begin; }
56 int getDuration() const { return m_duration; }
57 std::string getEventName() const { return m_event_name; }
58 std::string getShortDescription() const { return m_short_description; }
59 std::string getExtendedDescription() const { return m_extended_description; }
60 std::string getBeginTimeString() const;
61 SWIG_VOID(RESULT) getComponentData(ePtr<eComponentData> &SWIG_OUTPUT, int tagnum) const;
64 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
67 class eDebugClass: public iObject
69 DECLARE_REF(eDebugClass);
72 static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
73 eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
74 ~eDebugClass() { printf("remove debug class %d\n", x); }
77 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);