Remove unnecessary 0 checks before delete; see http://www.parashift.com/c++-faq-lite...
[ardour.git] / libs / ardour / export_status.cc
index c64a03fe23776ce5ecfc10549b26e935ba59de6f..af144746f71c0ed01ae36349209a5188ea009930 100644 (file)
@@ -34,6 +34,8 @@ ExportStatus::init ()
        stop = false;
        running = false;
        _aborted = false;
+       _finished = false;
+       _errors = false;
        
        stage = export_None;
        progress = 0.0;
@@ -48,4 +50,22 @@ ExportStatus::init ()
        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