projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
properly retain LV2PluginInfo
[ardour.git]
/
libs
/
ardour
/
ardour
/
progress.h
diff --git
a/libs/ardour/ardour/progress.h
b/libs/ardour/ardour/progress.h
index e252c63bd86efddf6be178ed95d3e30aee6e0b9d..79043a31eef3549c963deffe9735f0204cc6ebca 100644
(file)
--- a/
libs/ardour/ardour/progress.h
+++ b/
libs/ardour/ardour/progress.h
@@
-22,10
+22,12
@@
#include <list>
#include <list>
+#include "ardour/libardour_visibility.h"
+
namespace ARDOUR {
namespace ARDOUR {
-/** A class to handle reporting of progress of something */
-class Progress
+/** A class to handle reporting of progress of something */
+class
LIBARDOUR_API
Progress
{
public:
Progress ();
{
public:
Progress ();
@@
-35,6
+37,11
@@
public:
void ascend ();
void descend (float);
void ascend ();
void descend (float);
+ bool cancelled () const;
+
+protected:
+ void cancel ();
+
private:
/** Report overall progress.
* @param p Current progress (from 0 to 1)
private:
/** Report overall progress.
* @param p Current progress (from 0 to 1)
@@
-43,12
+50,13
@@
private:
struct Level {
Level (float a) : allocation (a), normalised (0) {}
struct Level {
Level (float a) : allocation (a), normalised (0) {}
-
+
float allocation;
float normalised;
};
std::list<Level> _stack;
float allocation;
float normalised;
};
std::list<Level> _stack;
+ bool _cancelled;
};
}
};
}