Move playback_distance up to AudioDiskstream from Diskstream since it is only used...
[ardour.git] / libs / ardour / ardour / progress.h
index 891af22059476e2a401175d84a56ca2bfca86c84..6cd66bdcbe4606ff5c257d147bb8305178b4e38c 100644 (file)
@@ -17,6 +17,9 @@
 
 */
 
+#ifndef __ardour_progress_h__
+#define __ardour_progress_h__
+
 #include <list>
 
 namespace ARDOUR {
@@ -32,6 +35,11 @@ public:
        void ascend ();
        void descend (float);
 
+       bool cancelled () const;
+       
+protected:
+       void cancel ();
+
 private:
        /** Report overall progress.
         *  @param p Current progress (from 0 to 1)
@@ -46,6 +54,9 @@ private:
        };
 
        std::list<Level> _stack;
+       bool _cancelled;
 };
 
 }
+
+#endif