X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fexport_status.cc;h=eb0a3504b45e0e19a372eba79add08467c710026;hb=ed72df29b79f9e2dc7482f07c39010b4523c4a8e;hp=c64a03fe23776ce5ecfc10549b26e935ba59de6f;hpb=f2b007195cd75b195e38a4cd7757debac73e7792;p=ardour.git diff --git a/libs/ardour/export_status.cc b/libs/ardour/export_status.cc index c64a03fe23..eb0a3504b4 100644 --- a/libs/ardour/export_status.cc +++ b/libs/ardour/export_status.cc @@ -18,7 +18,7 @@ */ -#include +#include "ardour/export_status.h" namespace ARDOUR { @@ -34,18 +34,38 @@ ExportStatus::init () 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