more pid cache stuff
[enigma2.git] / lib / service / event.h
index 967f9efaf8991a964a211aaea886eef4705671b7..99ce5b245a1d934e53d16a0af9b40648f992d696 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __service_ievent_h
-#define __service_ievent_h
+#ifndef __lib_service_event_h
+#define __lib_service_event_h
 
 #include <time.h>
 #include <lib/base/object.h>
@@ -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<eServiceEvent>, eServiceEventPtr);
+
+class eDebugClass: public iObject
+{
+       DECLARE_REF(eDebugClass);
+public:
+       int x;
+       static void getDebug(ePtr<eDebugClass> &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<eDebugClass>, eDebugClassPtr);
+
 #endif