- fixed dvb scan
[enigma2.git] / lib / gui / elistbox.h
index ac45a33207e153ce6bfa9f8b11c40c05cac3d5ef..d5464868e540cca509ec66ec046de599da315b5e 100644 (file)
@@ -7,6 +7,8 @@
 class iListboxContent: public iObject
 {
 public:
+       virtual ~iListboxContent()=0;
+       
                /* indices go from 0 to size().
                   the end is reached when the cursor is on size(), 
                   i.e. one after the last entry (this mimics 
@@ -17,7 +19,9 @@ public:
                   to stay on the same data, however when the current
                   item is removed, this won't work. you'll be notified
                   anyway. */
-                 
+#ifndef SWIG   
+protected:
+       friend class eListbox;
        virtual void cursorHome()=0;
        virtual void cursorEnd()=0;
        virtual int cursorMove(int count=1)=0;
@@ -37,6 +41,7 @@ public:
        
                /* the following functions always refer to the selected item */
        virtual void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected)=0;
+#endif
 };
 
 class eListbox: public eWidget
@@ -62,5 +67,4 @@ private:
        ePtr<iListboxContent> m_content;
 };
 
-
 #endif