X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8d71e2bcd92ce5d7b875c20e3d5da4bd055f001a..6db80bf969c97136e1d83db775b6f6cb68b2a614:/lib/gui/epositiongauge.h?ds=sidebyside diff --git a/lib/gui/epositiongauge.h b/lib/gui/epositiongauge.h index 6f72fe80..0fa704c3 100644 --- a/lib/gui/epositiongauge.h +++ b/lib/gui/epositiongauge.h @@ -2,6 +2,7 @@ #define __lib_gui_epositiongauge_h #include +#include typedef long long pts_t; @@ -17,6 +18,8 @@ public: void setInColor(const gRGB &color); /* foreground? */ void setPointer(gPixmap *pixmap, const ePoint ¢er); + + void setInOutList(PyObject *list); #ifndef SWIG protected: int event(int event, void *data=0, void *data2=0); @@ -31,6 +34,25 @@ private: pts_t m_position, m_length; int m_pos; + + /* TODO: this is duplicated code from lib/service/servicedvb.h */ + struct cueEntry + { + pts_t where; + unsigned int what; + + bool operator < (const struct cueEntry &o) const + { + return what < o.what; + } + cueEntry(const pts_t &where, unsigned int what) : + where(where), what(what) + { + } + }; + + std::multiset m_cue_entries; + int scale(const pts_t &val); #endif };