X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ab92ba5e6b439cb9a0aabc8c9330ec7d4ad9b301..d1de2263e4fff409a8fa16fc0069a923b4eff14d:/lib/service/event.h diff --git a/lib/service/event.h b/lib/service/event.h index 7e6cf5d8..9ee6538b 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -1,35 +1,63 @@ #ifndef __lib_service_event_h #define __lib_service_event_h -#ifndef PYTHON +#ifndef SWIG #include #include +#include +#include #include class Event; #endif +struct eComponentData +{ +DECLARE_REF(eComponentData); +#ifndef SWIG + uint8_t m_streamContent; + uint8_t m_componentType; + uint8_t m_componentTag; + std::string m_iso639LanguageCode; + std::string m_text; +#endif + int getStreamContent(void) const { return m_streamContent; } + int getComponentType(void) const { return m_componentType; } + int getComponentTag(void) const { return m_componentTag; } + std::string getIso639LanguageCode(void) const { return m_iso639LanguageCode; } + std::string getText(void) const { return m_text; } +}; + +TEMPLATE_TYPEDEF(ePtr, eComponentDataPtr); + class eServiceEvent: public iObject { -DECLARE_REF(eServiceEvent); -public: -#ifndef PYTHON + DECLARE_REF(eServiceEvent); + bool loadLanguage(Event *event, std::string lang, int tsidonid); + std::list m_component_data; + std::list m_linkage_services; time_t m_begin; int m_duration; + int m_event_id; std::string m_event_name, m_short_description, m_extended_description; // .. additional info - bool loadLanguage(Event *event, std::string lang); - RESULT parseFrom(Event *evt); +public: +#ifndef SWIG + RESULT parseFrom(Event *evt, int tsidonid=0); #endif - time_t getBeginTime() { return m_begin; } - int getDuration() { return m_duration; } - std::string getEventName() { return m_event_name; } - std::string getShortDescription() { return m_short_description; } - std::string getExtendedDescription() { return m_extended_description; } - std::string getBeginTimeString(); + time_t getBeginTime() const { return m_begin; } + int getDuration() const { return m_duration; } + int getEventId() const { return m_event_id; } + std::string getEventName() const { return m_event_name; } + std::string getShortDescription() const { return m_short_description; } + std::string getExtendedDescription() const { return m_extended_description; } + std::string getBeginTimeString() const; + SWIG_VOID(RESULT) getComponentData(ePtr &SWIG_OUTPUT, int tagnum) const; + int getNumOfLinkageServices() const { return m_linkage_services.size(); } + SWIG_VOID(RESULT) getLinkageService(eServiceReference &SWIG_OUTPUT, eServiceReference &parent, int num) const; }; -#ifndef PYTHON TEMPLATE_TYPEDEF(ePtr, eServiceEventPtr); +#ifndef SWIG class eDebugClass: public iObject {