X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e677ac4a7bf81391877c909a703e5918ce4a511b..defa1a765f48ec880b36b14a247b89649553c2ec:/lib/service/event.h diff --git a/lib/service/event.h b/lib/service/event.h index 967f9efa..99ce5b24 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,7 +8,7 @@ class Event; class eServiceEvent: public iObject { -DECLARE_REF; +DECLARE_REF(eServiceEvent); public: time_t m_begin; int m_duration; @@ -18,4 +18,18 @@ public: 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