X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/54e57557c7867d3d492ce9bd658ec2d672cd0168..80058dea34aae48ed729986a65112f0096f5b2d5:/lib/service/event.h diff --git a/lib/service/event.h b/lib/service/event.h index d224c183..25b9d0b7 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -4,6 +4,7 @@ #ifndef SWIG #include #include +#include #include #include class Event; @@ -28,37 +29,34 @@ DECLARE_REF(eComponentData); TEMPLATE_TYPEDEF(ePtr, eComponentDataPtr); -struct linkage_service -{ - uint16_t m_sid; - uint16_t m_onid; - uint16_t m_tsid; - std::string m_description; -}; - class eServiceEvent: public iObject { -DECLARE_REF(eServiceEvent); -#ifndef SWIG + DECLARE_REF(eServiceEvent); bool loadLanguage(Event *event, std::string lang, int tsidonid); std::list m_component_data; -#endif -public: -#ifndef SWIG - std::list m_linkage_services; + 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; + static std::string m_language; // .. additional info +public: +#ifndef SWIG RESULT parseFrom(Event *evt, int tsidonid=0); + RESULT parseFrom(const std::string filename, int tsidonid=0); #endif + static void setEPGLanguage( const std::string language ); 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; }; TEMPLATE_TYPEDEF(ePtr, eServiceEventPtr);