fix wrap around with enabled movemode
[enigma2.git] / lib / service / servicedvb.h
index e27f7ffda98d69a04cde6e74a86ac1628003e8fe..2785ce2a567bae6993371af2d9fe6177747e283a 100644 (file)
@@ -119,8 +119,7 @@ public:
 
                // iCueSheet
        PyObject *getCutList();
-       RESULT addCut(const pts_t &when, int what);
-       RESULT removeCut(const pts_t &when, int what);
+       void setCutList(PyObject *);
        
 private:
        friend class eServiceFactoryDVB;
@@ -164,6 +163,27 @@ private:
        int m_skipmode;
        
        ePtr<eCueSheet> m_cue;
+       
+       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<cueEntry> m_cue_entries;
+       int m_cuesheet_changed;
+       
+       void loadCuesheet();
+       void saveCuesheet();
 };
 
 #endif