get Delivery to disconnect from any signals it is connected to relatively early in...
[ardour.git] / libs / ardour / export_status.cc
index c64a03fe23776ce5ecfc10549b26e935ba59de6f..dbb96432ee5fb68aac8eded0611d069d51d68c6a 100644 (file)
@@ -18,7 +18,7 @@
 
 */
 
-#include <ardour/export_status.h>
+#include "ardour/export_status.h"
 
 namespace ARDOUR
 {
@@ -34,18 +34,35 @@ ExportStatus::init ()
        stop = false;
        running = false;
        _aborted = false;
-       
-       stage = export_None;
+       _finished = false;
+       _errors = false;
+
        progress = 0.0;
-       
+       normalizing = false;
+
        total_timespans = 0;
        timespan = 0;
-       
-       total_channel_configs = 0;
-       channel_config = 0;
-       
-       total_formats = 0;
-       format = 0;
+
+       total_frames = 0;
+       processed_frames = 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