+DECLARE_REF(eDVBServiceList);
+public:
+ virtual ~eDVBServiceList();
+ RESULT getContent(std::list<eServiceReference> &list);
+ RESULT getNext(eServiceReference &ptr);
+ int compareLessEqual(const eServiceReference &a, const eServiceReference &b);
+
+ RESULT startEdit(ePtr<iMutableServiceList> &);
+ RESULT flushChanges();
+ RESULT addService(eServiceReference &ref);
+ RESULT removeService(eServiceReference &ref);
+ RESULT moveService(eServiceReference &ref, int pos);
+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;
+};
+
+class eDVBServicePlay: public iPlayableService, public iPauseableService,
+ public iSeekableService, public Object, public iServiceInformation,
+ public iAudioTrackSelection, public iFrontendStatusInformation,
+ public iSubserviceList, public iTimeshiftService
+{
+DECLARE_REF(eDVBServicePlay);
+public:
+ virtual ~eDVBServicePlay();
+
+ // iPlayableService
+ RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection);
+ RESULT start();
+ RESULT stop();
+ RESULT seek(ePtr<iSeekableService> &ptr);
+ RESULT pause(ePtr<iPauseableService> &ptr);
+ RESULT info(ePtr<iServiceInformation> &ptr);
+ RESULT audioTracks(ePtr<iAudioTrackSelection> &ptr);
+ RESULT frontendStatusInfo(ePtr<iFrontendStatusInformation> &ptr);
+ RESULT subServices(ePtr<iSubserviceList> &ptr);
+ RESULT timeshift(ePtr<iTimeshiftService> &ptr);
+
+ // 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);
+
+ // iServiceInformation
+ RESULT getName(std::string &name);
+ RESULT getEvent(ePtr<eServiceEvent> &evt, int nownext);
+ int getInfo(int w);
+ std::string getInfoString(int w);
+
+ // iAudioTrackSelection
+ int getNumberOfTracks();
+ RESULT selectTrack(unsigned int i);
+ RESULT getTrackInfo(struct iAudioTrackInfo &, unsigned int n);
+
+ // iFrontendStatusInformation
+ int getFrontendInfo(int w);
+
+ // iSubserviceList
+ int getNumberOfSubservices();
+ RESULT getSubservice(eServiceReference &subservice, unsigned int n);
+
+ // iTimeshiftService
+ RESULT startTimeshift();
+ RESULT stopTimeshift();
+