X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/43eacf2ca5189458bd43ca947242ec3b3bc5a5f4..547938f9c9e6d000aec45edebbd4d847de97c42a:/lib/service/event.h diff --git a/lib/service/event.h b/lib/service/event.h index 285a4ae3..d1e1d08b 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -3,13 +3,15 @@ #ifndef SWIG #include -#include -#include #include #include class Event; #endif +#include +#include + +SWIG_IGNORE(eComponentData); struct eComponentData { DECLARE_REF(eComponentData); @@ -26,9 +28,9 @@ DECLARE_REF(eComponentData); std::string getIso639LanguageCode(void) const { return m_iso639LanguageCode; } std::string getText(void) const { return m_text; } }; +SWIG_TEMPLATE_TYPEDEF(ePtr, eComponentDataPtr); -TEMPLATE_TYPEDEF(ePtr, eComponentDataPtr); - +SWIG_IGNORE(eServiceEvent); class eServiceEvent: public iObject { DECLARE_REF(eServiceEvent); @@ -44,6 +46,7 @@ class eServiceEvent: public iObject public: #ifndef SWIG RESULT parseFrom(Event *evt, int tsidonid=0); + RESULT parseFrom(const std::string filename, int tsidonid=0); #endif static void setEPGLanguage( const std::string language ); time_t getBeginTime() const { return m_begin; } @@ -57,10 +60,10 @@ public: int getNumOfLinkageServices() const { return m_linkage_services.size(); } SWIG_VOID(RESULT) getLinkageService(eServiceReference &SWIG_OUTPUT, eServiceReference &parent, int num) const; }; +SWIG_TEMPLATE_TYPEDEF(ePtr, eServiceEventPtr); -TEMPLATE_TYPEDEF(ePtr, eServiceEventPtr); #ifndef SWIG - +SWIG_IGNORE(eDebugClass); class eDebugClass: public iObject { DECLARE_REF(eDebugClass); @@ -70,8 +73,7 @@ public: eDebugClass(int i) { printf("build debug class %d\n", i); x = i; } ~eDebugClass() { printf("remove debug class %d\n", x); } }; - -// TEMPLATE_TYPEDEF(ePtr, eDebugClassPtr); +SWIG_TEMPLATE_TYPEDEF(ePtr, eDebugClassPtr); #endif #endif