add iStreamableService
[enigma2.git] / lib / service / listboxservice.h
index b06e7ef8ad72b89a95bd31e5714a86ae48818fb9..8623336f61355d8c1e7fea3b6f3980fe8c53f023 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <lib/gui/elistbox.h>
 #include <lib/service/iservice.h>
-
 #include <set>
 
 class eListboxServiceContent: public virtual iListboxContent
@@ -11,9 +10,19 @@ class eListboxServiceContent: public virtual iListboxContent
        DECLARE_REF(eListboxServiceContent);
 public:
        eListboxServiceContent();
-       void setRoot(const eServiceReference &ref);
-       void getCurrent(eServiceReference &ref);
 
+       void addService(const eServiceReference &ref, bool beforeCurrent=false);
+       void removeCurrent();
+       void FillFinished();
+
+       void setIgnoreService( const eServiceReference &service );
+       void setRoot(const eServiceReference &ref, bool justSet=false);
+       void getCurrent(eServiceReference &ref);
+       
+       int getNextBeginningWithChar(char c);
+       int getPrevMarkerPos();
+       int getNextMarkerPos();
+       
                /* support for marked services */
        void initMarked();
        void addMarked(const eServiceReference &ref);
@@ -36,15 +45,27 @@ public:
        
                /* only in complex mode: */
        enum {
-               celServiceName,
                celServiceNumber,
-               celIcon,
+               celMarkerPixmap,
+               celFolderPixmap,
+               celServiceName,
+               celServiceTypePixmap,
                celServiceInfo, // "now" event
                celElements
        };
-       
+
+       enum {
+               picDVB_S,
+               picDVB_T,
+               picDVB_C,
+               picFolder,
+               picMarker,
+               picElements
+       };
+
        void setElementPosition(int element, eRect where);
        void setElementFont(int element, gFont *font);
+       void setPixmap(int type, ePtr<gPixmap> &pic);
        
        void sort();
 
@@ -73,6 +94,7 @@ protected:
                /* for complex mode */
        eRect m_element_position[celElements];
        ePtr<gFont> m_element_font[celElements];
+       ePtr<gPixmap> m_pixmaps[picElements];
 private:
        typedef std::list<eServiceReference> list;
        
@@ -84,6 +106,7 @@ private:
        
        eSize m_itemsize;
        ePtr<iServiceHandler> m_service_center;
+       ePtr<iListableService> m_lst;
        
        eServiceReference m_root;
 
@@ -93,9 +116,10 @@ private:
 
                /* support for movemode */
        bool m_current_marked;
-       list::iterator m_swap;
 
        int m_numberoffset;
+
+       eServiceReference m_is_playable_ignore;
 };
 
 #endif