+SWIG_ALLOW_OUTPUT_SIMPLE(eServiceReference);
+
+extern PyObject *New_eServiceReference(const eServiceReference &ref); // defined in enigma_python.i
+
+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 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 bool isPlayable(const eServiceReference &ref, const eServiceReference &ignore);
+
+ virtual int getInfo(const eServiceReference &ref, int w);
+ virtual std::string getInfoString(const eServiceReference &ref,int w);
+};
+
+TEMPLATE_TYPEDEF(ePtr<iStaticServiceInformation>, iStaticServiceInformationPtr);
+
+TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
+