add iCueSheet interface and null implementation
[enigma2.git] / lib / service / servicedvb.h
index ba4f2fb52cedda4ca395e725986c747218ff84c5..e27f7ffda98d69a04cde6e74a86ac1628003e8fe 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <lib/dvb/pmt.h>
 #include <lib/dvb/eit.h>
+#include <lib/base/filepush.h>
 
 class eServiceFactoryDVB: public iServiceHandler
 {
@@ -57,7 +58,8 @@ private:
 class eDVBServicePlay: public iPlayableService, public iPauseableService, 
                public iSeekableService, public Object, public iServiceInformation, 
                public iAudioTrackSelection, public iFrontendStatusInformation,
-               public iSubserviceList, public iTimeshiftService
+               public iSubserviceList, public iTimeshiftService,
+               public iCueSheet
 {
 DECLARE_REF(eDVBServicePlay);
 public:
@@ -74,6 +76,8 @@ public:
        RESULT frontendStatusInfo(ePtr<iFrontendStatusInformation> &ptr);
        RESULT subServices(ePtr<iSubserviceList> &ptr);
        RESULT timeshift(ePtr<iTimeshiftService> &ptr);
+       RESULT cueSheet(ePtr<iCueSheet> &ptr);
+       
 
                // iPauseableService
        RESULT pause();
@@ -87,6 +91,7 @@ public:
        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);
@@ -112,6 +117,11 @@ public:
        int isTimeshiftActive();
        RESULT activateTimeshift();
 
+               // iCueSheet
+       PyObject *getCutList();
+       RESULT addCut(const pts_t &when, int what);
+       RESULT removeCut(const pts_t &when, int what);
+       
 private:
        friend class eServiceFactoryDVB;
        eServiceReference m_reference;
@@ -150,6 +160,10 @@ private:
        void switchToTimeshift();
        
        void updateDecoder();
+       
+       int m_skipmode;
+       
+       ePtr<eCueSheet> m_cue;
 };
 
 #endif