+SWIG_ALLOW_OUTPUT_SIMPLE(eServiceReference);
+
+extern PyObject *New_eServiceReference(const eServiceReference &ref); // defined in enigma_python.i
+
+#ifndef SWIG
+#ifdef PYTHON_REFCOUNT_DEBUG
+inline ePyObject Impl_New_eServiceReference(const char* file, int line, const eServiceReference &ref)
+{
+ return ePyObject(New_eServiceReference(ref), file, line);
+}
+#define NEW_eServiceReference(ref) Impl_New_eServiceReference(__FILE__, __LINE__, ref)
+#else
+inline ePyObject Impl_New_eServiceReference(const eServiceReference &ref)
+{
+ return New_eServiceReference(ref);
+}
+#define NEW_eServiceReference(ref) Impl_New_eServiceReference(ref)
+#endif
+#endif // SWIG
+
+typedef long long pts_t;
+
+ /* the reason we have the servicereference as additional argument is
+ that we don't have to create one object for every entry in a possibly
+ large list, provided that no state information is nessesary to deliver
+ the required information. Anyway - ref *must* be the same as the argument
+ to the info() or getIServiceInformation call! */
+
+ /* About the usage of SWIG_VOID:
+ SWIG_VOID(real_returntype_t) hides a return value from swig. This is used for
+ the "superflouus" RESULT return values.
+
+ Python code has to check the returned pointer against 0. This works,
+ as all functions returning instances in smartpointers AND having a
+ RESULT have to BOTH return non-zero AND set the pointer to zero.
+
+ Python code thus can't check for the reason, but the reason isn't
+ user-servicable anyway. If you want to return a real reason which
+ goes beyong "it just doesn't work", use extra variables for this,
+ not the RESULT.
+
+ Hide the result only if there is another way to check for failure! */
+
+class eServiceEvent;
+
+SWIG_IGNORE(iStaticServiceInformation);
+class iStaticServiceInformation: public iObject
+{
+#ifdef SWIG
+ iStaticServiceInformation();
+ ~iStaticServiceInformation();
+#endif
+public:
+ virtual SWIG_VOID(RESULT) getName(const eServiceReference &ref, std::string &SWIG_OUTPUT)=0;
+
+ // doesn't need to be implemented, should return -1 then.
+ virtual int getLength(const eServiceReference &ref);
+ virtual SWIG_VOID(RESULT) getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &SWIG_OUTPUT, time_t start_time=-1);
+ // returns true when not implemented
+ virtual int isPlayable(const eServiceReference &ref, const eServiceReference &ignore);
+
+ virtual int getInfo(const eServiceReference &ref, int w);
+ virtual std::string getInfoString(const eServiceReference &ref,int w);
+ virtual PyObject *getInfoObject(const eServiceReference &ref, int w);
+
+ virtual int setInfo(const eServiceReference &ref, int w, int v);
+ virtual int setInfoString(const eServiceReference &ref, int w, const char *v);
+};
+SWIG_TEMPLATE_TYPEDEF(ePtr<iStaticServiceInformation>, iStaticServiceInformationPtr);
+
+class iServiceInformation_ENUMS
+{
+#ifdef SWIG
+ iServiceInformation_ENUMS();
+ ~iServiceInformation_ENUMS();
+#endif
+public:
+ enum {
+ sIsCrypted, /* is encrypted (no indication if decrypt was possible) */
+ sAspect, /* aspect ratio: 0=4:3, 1=16:9, 2=whatever we need */
+ sIsMultichannel, /* multichannel *available* (probably not selected) */
+
+ /* "user serviceable info" - they are not reliable. Don't use them for anything except the service menu!
+ that's also the reason why they are so globally defined.
+ again - if somebody EVER tries to use this information for anything else than simply displaying it,
+ i will change this to return a user-readable text like "zero x zero three three" (and change the
+ exact spelling in every version) to stop that! */
+
+ sVideoPID,
+ sAudioPID,
+ sPCRPID,
+ sPMTPID,
+ sTXTPID,
+
+ sSID,
+ sONID,
+ sTSID,
+ sNamespace,
+ sProvider,
+
+ sDescription,
+ sServiceref,
+ sTimeCreate, /* unix time or string */
+
+ sTitle,
+ sArtist,
+ sAlbum,
+ sComment,
+ sTracknumber,
+ sGenre,
+ sCAIDs,
+ sVideoType, /* MPEG2 MPEG4 */
+
+ sTags, /* space seperated list of tags */
+
+ sDVBState, /* states as defined in pmt handler (as events there) */
+
+ sVideoHeight,
+ sVideoWidth,
+
+ sTransponderData /* transponderdata as python dict */
+ };
+ enum {
+ resNA = -1,
+ resIsString = -2,
+ resIsPyObject = -3
+ };
+};
+
+/* some words to structs like struct iServiceInformation_ENUMS
+For some classes we need in python just the SmartPointer Variants.
+So we prevent building wrapper classes for the non smart pointer classes with the SWIG_IGNORE makro.
+But now we have the problem that swig do not export enums for smart pointer classes (i dont know why).
+So we move all enum's to own classes (with _ENUMS as name ending) and let our real
+class inherit from the *_ENUMS class. This *_ENUMS classes are normally exportet via swig to python.
+But in the python code we doesn't like to write iServiceInformation_ENUMS.sVideoType....
+we like to write iServiceInformation.sVideoType.
+So until swig have no Solution for this Problem we call in lib/python/Makefile.am a python script named
+enigma_py_patcher.py to remove the "_ENUMS" strings in enigma.py at all needed locations. */
+
+SWIG_IGNORE(iServiceInformation);
+class iServiceInformation: public iServiceInformation_ENUMS, public iObject
+{
+#ifdef SWIG
+ iServiceInformation();
+ ~iServiceInformation();
+#endif
+public:
+ virtual SWIG_VOID(RESULT) getName(std::string &SWIG_OUTPUT)=0;
+ virtual SWIG_VOID(RESULT) getEvent(ePtr<eServiceEvent> &SWIG_OUTPUT, int nownext);
+
+ virtual int getInfo(int w);
+ virtual std::string getInfoString(int w);
+ virtual PyObject *getInfoObject(int w);
+
+ virtual int setInfo(int w, int v);
+ virtual int setInfoString(int w, const char *v);
+};
+SWIG_TEMPLATE_TYPEDEF(ePtr<iServiceInformation>, iServiceInformationPtr);
+
+class iFrontendInformation_ENUMS
+{
+#ifdef SWIG
+ iFrontendInformation_ENUMS();
+ ~iFrontendInformation_ENUMS();
+#endif
+public:
+ enum {
+ bitErrorRate,
+ signalPower,
+ signalQuality,
+ lockState,
+ syncState,
+ frontendNumber,
+ signalPowerdB,
+ };
+};
+
+SWIG_IGNORE(iFrontendInformation);
+class iFrontendInformation: public iFrontendInformation_ENUMS, public iObject
+{
+#ifdef SWIG
+ iFrontendInformation();
+ ~iFrontendInformation();
+#endif
+public:
+ virtual int getFrontendInfo(int w)=0;
+ virtual PyObject *getFrontendData()=0;
+ virtual PyObject *getFrontendStatus()=0;
+ virtual PyObject *getTransponderData(bool original)=0;
+ virtual PyObject *getAll(bool original)=0; // a sum of getFrontendData/Status/TransponderData
+};
+SWIG_TEMPLATE_TYPEDEF(ePtr<iFrontendInformation>, iFrontendInformationPtr);
+
+SWIG_IGNORE(iPauseableService);
+class iPauseableService: public iObject