+ DECLARE_REF(eDVBServiceList);
+public:
+ virtual ~eDVBServiceList();
+ PyObject *getContent(const char* formatstr, bool sorted=false);
+ RESULT getContent(std::list<eServiceReference> &list, bool sorted=false);
+ RESULT getNext(eServiceReference &ptr);
+ inline int compareLessEqual(const eServiceReference &a, const eServiceReference &b);
+
+ RESULT startEdit(ePtr<iMutableServiceList> &);
+ RESULT flushChanges();
+ RESULT addService(eServiceReference &ref, eServiceReference before);
+ RESULT removeService(eServiceReference &ref);
+ RESULT moveService(eServiceReference &ref, int pos);
+ RESULT setListName(const std::string &name);
+private:
+ RESULT startQuery();
+ eServiceReference m_parent;
+ friend class eServiceFactoryDVB;
+ eDVBServiceList(const eServiceReference &parent);
+ ePtr<iDVBChannelListQuery> m_query;
+
+ /* for editing purposes. WARNING: lifetime issue! */
+ eBouquet *m_bouquet;
+};
+
+inline int eDVBServiceList::compareLessEqual(const eServiceReference &a, const eServiceReference &b)
+{
+ return m_query->compareLessEqual((const eServiceReferenceDVB&)a, (const eServiceReferenceDVB&)b);
+}
+
+class eDVBServiceBase: public iFrontendInformation
+{
+protected:
+ eDVBServicePMTHandler m_service_handler;
+public:
+ // iFrontendInformation
+ int getFrontendInfo(int w);
+ PyObject *getFrontendData();
+ PyObject *getFrontendStatus();
+ PyObject *getTransponderData(bool);
+ PyObject *getAll(bool original); // a sum of getFrontendData/Status/TransponderData
+};
+
+class eSubtitleWidget;
+
+class eDVBServicePlay: public eDVBServiceBase,
+ public iPlayableService, public iPauseableService,
+ public iSeekableService, public Object, public iServiceInformation,
+ public iAudioTrackSelection, public iAudioChannelSelection,
+ public iSubserviceList, public iTimeshiftService,
+ public iCueSheet, public iSubtitleOutput, public iAudioDelay,
+ public iRdsDecoder, public iStreamableService
+{
+ DECLARE_REF(eDVBServicePlay);
+public:
+ virtual ~eDVBServicePlay();
+
+ // iPlayableService
+ RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection);
+ RESULT start();
+ RESULT stop();
+ RESULT setTarget(int target);
+
+ RESULT seek(ePtr<iSeekableService> &ptr);
+ RESULT pause(ePtr<iPauseableService> &ptr);
+ RESULT info(ePtr<iServiceInformation> &ptr);
+ RESULT audioChannel(ePtr<iAudioChannelSelection> &ptr);
+ RESULT audioTracks(ePtr<iAudioTrackSelection> &ptr);
+ RESULT frontendInfo(ePtr<iFrontendInformation> &ptr);
+ RESULT subServices(ePtr<iSubserviceList> &ptr);
+ RESULT timeshift(ePtr<iTimeshiftService> &ptr);
+ RESULT cueSheet(ePtr<iCueSheet> &ptr);
+ RESULT subtitle(ePtr<iSubtitleOutput> &ptr);
+ RESULT audioDelay(ePtr<iAudioDelay> &ptr);
+ RESULT rdsDecoder(ePtr<iRdsDecoder> &ptr);
+ RESULT keys(ePtr<iServiceKeys> &ptr) { ptr = 0; return -1; }
+ RESULT streamed(ePtr<iStreamedService> &ptr) { ptr = 0; return -1; }
+
+ // iPauseableService
+ RESULT pause();
+ RESULT unpause();
+ RESULT setSlowMotion(int ratio);
+ RESULT setFastForward(int ratio);
+
+ // iSeekableService
+ RESULT getLength(pts_t &len);
+ RESULT seekTo(pts_t to);
+ RESULT seekRelative(int direction, pts_t to);
+ RESULT getPlayPosition(pts_t &pos);
+ RESULT setTrickmode(int trick=0);
+ RESULT isCurrentlySeekable();
+
+ // iServiceInformation
+ RESULT getName(std::string &name);
+ RESULT getEvent(ePtr<eServiceEvent> &evt, int nownext);
+ int getInfo(int w);
+ std::string getInfoString(int w);
+ PyObject *getInfoObject(int w);
+
+ // iAudioTrackSelection
+ int getNumberOfTracks();
+ RESULT selectTrack(unsigned int i);
+ RESULT getTrackInfo(struct iAudioTrackInfo &, unsigned int n);
+ int getCurrentTrack();
+
+ // iAudioChannelSelection
+ int getCurrentChannel();
+ RESULT selectChannel(int i);
+
+ // iRdsDecoder
+ std::string getText(int i=0);
+ void showRassSlidePicture();
+ void showRassInteractivePic(int page, int subpage);
+ ePyObject getRassInteractiveMask();
+
+ // iSubserviceList
+ int getNumberOfSubservices();
+ RESULT getSubservice(eServiceReference &subservice, unsigned int n);
+
+ // iTimeshiftService
+ RESULT startTimeshift();
+ RESULT stopTimeshift();
+ int isTimeshiftActive();
+ RESULT activateTimeshift();
+
+ // iCueSheet
+ PyObject *getCutList();
+ void setCutList(SWIG_PYOBJECT(ePyObject));
+ void setCutListEnable(int enable);
+
+ // iSubtitleOutput
+ RESULT enableSubtitles(eWidget *parent, SWIG_PYOBJECT(ePyObject) entry);
+ RESULT disableSubtitles(eWidget *parent);
+ PyObject *getSubtitleList();
+ PyObject *getCachedSubtitle();
+
+ // iAudioDelay
+ int getAC3Delay();
+ int getPCMDelay();
+ void setAC3Delay(int);
+ void setPCMDelay(int);
+
+ // iStreamableService
+ RESULT stream(ePtr<iStreamableService> &ptr);
+ PyObject *getStreamingData();
+