diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-05-23 18:14:37 +0100 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-05-23 18:14:37 +0100 |
commit | 9daab3db8481de5653e97321c7bb2aa881f0d54c (patch) | |
tree | 651c946b0aab2b77be45bc46bbbaf8bf30c43fd2 /libs | |
parent | 2f6debf0d2b78bd6399f9e28e98333e1fd1b05d3 (diff) |
Make Soundcloud upload applicable to any export format.
Add soundcloud_upload property back into ExportFormatSpecification, but
instead of making it settable in the export format specification dialog,
add a tick-box in each tab of ExportFileNotebook to allow setting it.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/export_format_specification.h | 3 | ||||
-rw-r--r-- | libs/ardour/export_handler.cc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/ardour/export_format_specification.h b/libs/ardour/ardour/export_format_specification.h index 26d28648a2..2a62d792f0 100644 --- a/libs/ardour/ardour/export_format_specification.h +++ b/libs/ardour/ardour/export_format_specification.h @@ -96,6 +96,7 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase { void set_tag (bool tag_it) { _tag = tag_it; } void set_with_cue (bool yn) { _with_cue = yn; } void set_with_toc (bool yn) { _with_toc = yn; } + void set_soundcloud_upload (bool yn) { _soundcloud_upload = yn; } void set_command (std::string command) { _command = command; } void set_silence_beginning (AnyTime const & value) { _silence_beginning = value; } @@ -126,6 +127,7 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase { float normalize_target () const { return _normalize_target; } bool with_toc() const { return _with_toc; } bool with_cue() const { return _with_cue; } + bool soundcloud_upload() const { return _soundcloud_upload; } std::string command() const { return _command; } bool tag () const { return _tag && supports_tagging; } @@ -176,6 +178,7 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase { float _normalize_target; bool _with_toc; bool _with_cue; + bool _soundcloud_upload; std::string _command; /* serialization helpers */ diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 716b69e0d8..cded56b439 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -345,7 +345,7 @@ ExportHandler::finish_timespan () delete (se); } - if (fmt->upload()) { + if (fmt->soundcloud_upload()) { SoundcloudUploader *soundcloud_uploader = new SoundcloudUploader; std::string token = soundcloud_uploader->Get_Auth_Token(upload_username, upload_password); std::cerr |