Yamaha-PSR-S900.midnam: correct organ flutes, duplicate settings generated from fault...
[ardour.git] / libs / ardour / ardour / progress.h
index e252c63bd86efddf6be178ed95d3e30aee6e0b9d..10b7d759600e1624aa9eb37e9bc01fd4bfbac8bf 100644 (file)
@@ -24,7 +24,7 @@
 
 namespace ARDOUR {
 
-/** A class to handle reporting of progress of something */    
+/** A class to handle reporting of progress of something */
 class Progress
 {
 public:
@@ -35,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)
@@ -43,12 +48,13 @@ private:
 
        struct Level {
                Level (float a) : allocation (a), normalised (0) {}
-               
+
                float allocation;
                float normalised;
        };
 
        std::list<Level> _stack;
+       bool _cancelled;
 };
 
 }