just show hdd info when there is one
[enigma2.git] / lib / service / event.h
index 6993d815c86b8c787af3acf305f2a6fd7c006fd1..7e6cf5d83662aa63d44eff8dbd8b9aff7c3da0ad 100644 (file)
@@ -1,24 +1,34 @@
 #ifndef __lib_service_event_h
 #define __lib_service_event_h
 
+#ifndef PYTHON
 #include <time.h>
 #include <lib/base/object.h>
 #include <string>
 class Event;
+#endif
 
 class eServiceEvent: public iObject
 {
 DECLARE_REF(eServiceEvent);
 public:
+#ifndef PYTHON
        time_t m_begin;
        int m_duration;
        std::string m_event_name, m_short_description, m_extended_description;
        // .. additional info
-
        bool loadLanguage(Event *event, std::string lang);
        RESULT parseFrom(Event *evt);
+#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();
 };
 
+#ifndef PYTHON
 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
 
 class eDebugClass: public iObject
@@ -32,5 +42,6 @@ public:
 };
 
 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);
+#endif
 
 #endif