add seekTitle to iSeekableService interface
[enigma2.git] / lib / service / iservice.h
index 9f8afd26b0dfd317e828b83abe9b5f55cb193932..dac398495bb12fa635e2e60476d0b13726ca8ec7 100644 (file)
@@ -84,7 +84,7 @@ public:
 #ifndef SWIG
        std::string name;
 #endif
-       std::string getName() { return name; }
+       std::string getName() const { return name; }
        void setName( const std::string &n ) { name=n; }
 
        eServiceReference()
@@ -301,7 +301,9 @@ public:
                sVideoHeight,
                sVideoWidth,
 
-               sTransponderData        /* transponderdata as python dict */
+               sTransponderData,       /* transponderdata as python dict */
+
+               sUser = 0x100
        };
        enum {
                resNA = -1,
@@ -418,6 +420,8 @@ public:
                   audio will be switched off, sync will be disabled etc. */
        virtual RESULT setTrickmode(int trick=0)=0;
        virtual RESULT isCurrentlySeekable()=0;
+       virtual RESULT seekChapter(int chapter) { return -1; }
+       virtual RESULT seekTitle(int chapter) { return -1; }
 };
 SWIG_TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr);
 
@@ -751,7 +755,9 @@ public:
 
                evVideoSizeChanged,
 
-               evStopped
+               evStopped,
+
+               evUser = 0x100
        };
 };