summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/export_status.h
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2008-09-28 11:11:38 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2008-09-28 11:11:38 +0000
commit6b50ba341da426805ce3c92609c0fa12c52b67ac (patch)
tree4ed20d3699613da5a952b09b7e9ef47ceb6b8610 /libs/ardour/ardour/export_status.h
parent909995338c970e9f8f7a51886502640527f2061e (diff)
* Improved export error handling, streamlined ExportFailed
* Cleaned out export related visibility in Session, and simpified Session <--> export component communication in general * Removed export_status.h header dependency from session.h * Added check for libsndfile FLAC and Ogg Vorbis compatibility * Added ExportFileFactory, leading in cleaner code in ExportProcessor, and better extensibility for possible future non-libsndfile formats git-svn-id: svn://localhost/ardour2/branches/3.0@3818 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/export_status.h')
-rw-r--r--libs/ardour/ardour/export_status.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/ardour/export_status.h b/libs/ardour/ardour/export_status.h
index 3ca5905a22..88c2feb493 100644
--- a/libs/ardour/ardour/export_status.h
+++ b/libs/ardour/ardour/export_status.h
@@ -47,8 +47,13 @@ struct ExportStatus {
volatile bool running;
sigc::signal<void> Aborting;
- void abort () { _aborted = true; Aborting(); }
+ void abort (bool error_occurred = false);
bool aborted () const { return _aborted; }
+ bool errors () const { return _errors; }
+
+ sigc::signal<void> Finished;
+ void finish ();
+ bool finished () const { return _aborted; }
/* Progress info */
@@ -66,6 +71,9 @@ struct ExportStatus {
private:
volatile bool _aborted;
+ volatile bool _errors;
+ volatile bool _finished;
+
};
} // namespace ARDOUR