added missing return statement
[enigma2.git] / lib / service / listboxservice.h
index e65ffc8d9353023da8f56251a82e43f87f8af1fd..234cd39014e5e85b01cc0bc6fc4748041029b0ba 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <lib/gui/elistbox.h>
 #include <lib/service/iservice.h>
-
 #include <set>
 
 class eListboxServiceContent: public virtual iListboxContent
@@ -11,8 +10,15 @@ class eListboxServiceContent: public virtual iListboxContent
        DECLARE_REF(eListboxServiceContent);
 public:
        eListboxServiceContent();
-       void setRoot(const eServiceReference &ref);
+
+       void addService(const eServiceReference &ref);
+       void FillFinished();
+
+       void setIgnoreService( const eServiceReference &service );
+       void setRoot(const eServiceReference &ref, bool justSet=false);
        void getCurrent(eServiceReference &ref);
+       
+       int getNextBeginningWithChar(char c);
 
                /* support for marked services */
        void initMarked();
@@ -25,7 +31,8 @@ public:
        int markedQueryNext(eServiceReference &ref);
 
        int lookupService(const eServiceReference &ref);
-       
+       void setCurrent(const eServiceReference &ref);
+
        enum {
                visModeSimple,
                visModeComplex
@@ -35,9 +42,9 @@ public:
        
                /* only in complex mode: */
        enum {
-               celServiceName,
-               celServiceNumber,
                celIcon,
+               celServiceNumber,
+               celServiceName,
                celServiceInfo, // "now" event
                celElements
        };
@@ -48,13 +55,15 @@ public:
        void sort();
 
        int setCurrentMarked(bool);
-       int cursorSet(int n);
-       int cursorGet();
+
+       void setNumberOffset(int offset) { m_numberoffset = offset; }
 protected:
        void cursorHome();
        void cursorEnd();
        int cursorMove(int count=1);
        int cursorValid();
+       int cursorSet(int n);
+       int cursorGet();
 
        void cursorSave();
        void cursorRestore();
@@ -90,7 +99,10 @@ private:
 
                /* support for movemode */
        bool m_current_marked;
-       list::iterator m_swap;
+
+       int m_numberoffset;
+
+       eServiceReference m_is_playable_ignore;
 };
 
 #endif