X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e677ac4a7bf81391877c909a703e5918ce4a511b..391f7559e77cf98ea3b5a1fba94a8fa6f4307da8:/lib/service/event.h diff --git a/lib/service/event.h b/lib/service/event.h index 967f9efa..3bbb322e 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -1,21 +1,58 @@ -#ifndef __service_ievent_h -#define __service_ievent_h +#ifndef __lib_service_event_h +#define __lib_service_event_h +#ifndef SWIG #include #include +#include #include class Event; +#endif class eServiceEvent: public iObject { -DECLARE_REF; +DECLARE_REF(eServiceEvent); +#ifndef SWIG + bool loadLanguage(Event *event, std::string lang, int tsidonid); +#endif public: +#ifndef SWIG + struct linkage_service + { + uint16_t sid; + uint16_t onid; + uint16_t tsid; + std::string description; + }; + std::list m_linkage_services; time_t m_begin; int m_duration; - std::string m_event_name, m_description; + std::string m_event_name, m_short_description, m_extended_description; // .. additional info - - RESULT parseFrom(Event *evt); + 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(); +}; + +TEMPLATE_TYPEDEF(ePtr, eServiceEventPtr); +#ifndef SWIG + +class eDebugClass: public iObject +{ + DECLARE_REF(eDebugClass); +public: + int x; + static void getDebug(ePtr &ptr, int x) { ptr = new eDebugClass(x); } + eDebugClass(int i) { printf("build debug class %d\n", i); x = i; } + ~eDebugClass() { printf("remove debug class %d\n", x); } }; +// TEMPLATE_TYPEDEF(ePtr, eDebugClassPtr); +#endif + #endif