+SWIG_ALLOW_OUTPUT_SIMPLE(eServiceReference);
+
+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);
+
+class iServiceInformation: 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);
+
+ 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,
+ sTimeCreate, // unix time or string
+ };
+ enum { resNA = -1, resIsString = -2 };
+
+ virtual int getInfo(int w);
+ virtual std::string getInfoString(int w);
+};
+
+TEMPLATE_TYPEDEF(ePtr<iServiceInformation>, iServiceInformationPtr);
+
+class iFrontendStatusInformation: public iObject
+{
+#ifdef SWIG
+ iFrontendStatusInformation();
+ ~iFrontendStatusInformation();
+#endif
+public:
+ enum {
+ bitErrorRate,
+ signalPower,
+ signalQuality
+ };
+ virtual int getFrontendInfo(int w)=0;
+};
+
+TEMPLATE_TYPEDEF(ePtr<iFrontendStatusInformation>, iFrontendStatusInformationPtr);
+
+class iPauseableService: public iObject