*/
-#include <ardour/export_status.h>
+#include "ardour/export_status.h"
namespace ARDOUR
{
stop = false;
running = false;
_aborted = false;
-
+ _finished = false;
+ _errors = false;
+
stage = export_None;
progress = 0.0;
-
+
total_timespans = 0;
timespan = 0;
-
+
total_channel_configs = 0;
channel_config = 0;
-
+
total_formats = 0;
format = 0;
}
+void
+ExportStatus::abort (bool error_occurred)
+{
+ _aborted = true;
+ _finished = true;
+ _errors = _errors || error_occurred;
+ running = false;
+ Aborting ();
+}
+
+void
+ExportStatus::finish ()
+{
+ _finished = true;
+ running = false;
+ Finished();
+}
+
} // namespace ARDOUR