add SeekRelative stuff
[enigma2.git] / lib / service / servicedvb.h
index 57dca9a..9ebd277 100644 (file)
@@ -41,28 +41,9 @@ private:
        ePtr<iDVBChannelListQuery> m_query;
 };
 
-class eDVBServicePlay: public iPlayableService, iSeekableService, public Object, public iServiceInformation
+class eDVBServicePlay: public iPlayableService, public iPauseableService, public iSeekableService, public Object, public iServiceInformation
 {
 DECLARE_REF(eDVBServicePlay);
-private:
-       friend class eServiceFactoryDVB;
-       eServiceReference m_reference;
-       
-       ePtr<eDVBService> m_dvb_service;
-       
-       ePtr<iTSMPEGDecoder> m_decoder;
-       
-       eDVBServicePMTHandler m_service_handler;
-       eDVBServiceEITHandler m_event_handler;
-       
-       eDVBServicePlay(const eServiceReference &ref, eDVBService *service);
-       
-       void gotNewEvent();
-       
-       void serviceEvent(int event);
-       Signal2<void,iPlayableService*,int> m_event;
-       
-       int m_is_pvr;
 public:
        virtual ~eDVBServicePlay();
 
@@ -74,14 +55,39 @@ public:
        RESULT pause(ePtr<iPauseableService> &ptr);
        RESULT info(ePtr<iServiceInformation> &ptr);
        
+               // iPauseableService
+       RESULT pause();
+       RESULT unpause();
+       
                // iSeekableService
        RESULT getLength(pts_t &len);
        RESULT seekTo(pts_t to);
+       RESULT seekRelative(int direction, pts_t to);
        RESULT getPlayPosition(pts_t &pos);
 
                // iServiceInformation
        RESULT getName(std::string &name);
        RESULT getEvent(ePtr<eServiceEvent> &evt, int nownext);
+
+private:
+       friend class eServiceFactoryDVB;
+       eServiceReference m_reference;
+       
+       ePtr<eDVBService> m_dvb_service;
+       
+       ePtr<iTSMPEGDecoder> m_decoder;
+       
+       eDVBServicePMTHandler m_service_handler;
+       eDVBServiceEITHandler m_event_handler;
+       
+       eDVBServicePlay(const eServiceReference &ref, eDVBService *service);
+       
+       void gotNewEvent();
+       
+       void serviceEvent(int event);
+       Signal2<void,iPlayableService*,int> m_event;
+       
+       int m_is_pvr, m_is_paused;
 };
 
 #endif