X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e677ac4a7bf81391877c909a703e5918ce4a511b..59efe28a00e5713ad5279ed976430da31292a129:/lib/service/event.h diff --git a/lib/service/event.h b/lib/service/event.h index 967f9efa..6993d815 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -1,5 +1,5 @@ -#ifndef __service_ievent_h -#define __service_ievent_h +#ifndef __lib_service_event_h +#define __lib_service_event_h #include #include @@ -8,14 +8,29 @@ class Event; class eServiceEvent: public iObject { -DECLARE_REF; +DECLARE_REF(eServiceEvent); public: 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 - + + bool loadLanguage(Event *event, std::string lang); RESULT parseFrom(Event *evt); }; +TEMPLATE_TYPEDEF(ePtr, eServiceEventPtr); + +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