add ability to select default encoding for dvb texts in many ways.. ( take a look...
[enigma2.git] / lib / service / event.h
index 99ce5b245a1d934e53d16a0af9b40648f992d696..07106e40e1eb87e9ed4698fa018ee559ee4c7abc 100644 (file)
@@ -1,24 +1,37 @@
 #ifndef __lib_service_event_h
 #define __lib_service_event_h
 
+#ifndef SWIG
 #include <time.h>
 #include <lib/base/object.h>
 #include <string>
 class Event;
+#endif
 
 class eServiceEvent: public iObject
 {
 DECLARE_REF(eServiceEvent);
+#ifndef SWIG
+       bool loadLanguage(Event *event, std::string lang, int tsidonid);
+#endif
 public:
+#ifndef SWIG
        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<eServiceEvent>, eServiceEventPtr);
+#ifndef SWIG
 
 class eDebugClass: public iObject
 {
@@ -31,5 +44,6 @@ public:
 };
 
 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);
+#endif
 
 #endif