From d9ee52e4f0fbe9a1ae00d0e66f9e6f0a07fa319f Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 7 Feb 2005 09:14:02 +0000 Subject: - added iStaticServiceInformation - added service list interface for dvb - started work on queries (currently only "instr" on servicename) - started work on infobar - added listbox with service - fixed dvbdb - remove some debug output --- lib/service/listboxservice.h | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lib/service/listboxservice.h (limited to 'lib/service/listboxservice.h') diff --git a/lib/service/listboxservice.h b/lib/service/listboxservice.h new file mode 100644 index 00000000..45e5ba71 --- /dev/null +++ b/lib/service/listboxservice.h @@ -0,0 +1,48 @@ +#ifndef __lib_service_listboxservice_h +#define __lib_service_listboxservice_h + +#include +#include + +class eServiceCenter; + +class eListboxServiceContent: public virtual iListboxContent +{ + DECLARE_REF; +public: + eListboxServiceContent(); + void setRoot(const eServiceReference &ref); + +protected: + void cursorHome(); + void cursorEnd(); + int cursorMove(int count=1); + int cursorValid(); + int cursorSet(int n); + int cursorGet(); + + void cursorSave(); + void cursorRestore(); + int size(); + + // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though + void setSize(const eSize &size); + + /* the following functions always refer to the selected item */ + void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); +private: + typedef std::list list; + + list m_list; + list::iterator m_cursor, m_saved_cursor; + + int m_cursor_number, m_saved_cursor_number; + int m_size; + + eSize m_itemsize; + ePtr m_service_center; + + eServiceReference m_root; +}; + +#endif -- cgit v1.2.3