improve cuesheet interface a bit by making it atomic
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 16 Feb 2006 03:39:15 +0000 (03:39 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 16 Feb 2006 03:39:15 +0000 (03:39 +0000)
lib/service/iservice.h

index 2d38d6f..7853301 100644 (file)
@@ -387,13 +387,12 @@ class iCueSheet: public iObject
 public:
                        /* returns a list of (pts, what)-tuples */
        virtual PyObject *getCutList() = 0;
-       
+       virtual void setCutList(PyObject *list) = 0;
        enum { cutIn = 0, cutOut = 1, cutMark = 2 };
-       
-       virtual RESULT addCut(const pts_t &when, int what) = 0;
-       virtual RESULT removeCut(const pts_t &when, int what) = 0;
 };
 
+TEMPLATE_TYPEDEF(ePtr<iCueSheet>, iCueSheetPtr);
+
 class iPlayableService: public iObject
 {
 #ifdef SWIG