diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-05 00:32:00 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 01:16:39 +0200 |
| commit | 6ab6cd5a8c300c6db6f52bb9d74e5d7533976fe0 (patch) | |
| tree | 7fc78ed20e356dd4842bd1491abdfd479f2c4b8e /src/lib/config.h | |
| parent | 202da27202bd644138ef4033cd2e4b6d752303b1 (diff) | |
Replace TMS upload with upload to any number of destinations.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index e33bfe3f3..722f2ae97 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -159,8 +159,8 @@ public: return _upload_destinations; } - boost::optional<UploadDestination> tms() const { - return _tms; + std::vector<std::string> auto_upload_destinations() const { + return _auto_upload_destinations; } std::list<int> allowed_dcp_frame_rates() const { @@ -251,10 +251,6 @@ public: return _default_metadata; } - bool upload_after_make_dcp() { - return _upload_after_make_dcp; - } - void set_default_kdm_directory(boost::filesystem::path d) { if (_default_kdm_directory && _default_kdm_directory.get() == d) { return; @@ -705,9 +701,8 @@ public: maybe_set(_upload_destinations, destinations); } - void set_tms(UploadDestination tms) { - _tms = tms; - changed(); + void set_auto_upload_destinations(std::vector<std::string> const& destinations) { + maybe_set(_auto_upload_destinations, destinations); } void set_allowed_dcp_frame_rates(std::list<int> const & r) { @@ -791,10 +786,6 @@ public: maybe_set(_default_audio_language, boost::optional<dcp::LanguageTag>()); } - void set_upload_after_make_dcp(bool u) { - maybe_set(_upload_after_make_dcp, u); - } - void set_mail_server(std::string s) { maybe_set(_mail_server, s); } @@ -1328,7 +1319,7 @@ private: std::vector<std::string> _servers; bool _only_servers_encode; std::vector<UploadDestination> _upload_destinations; - boost::optional<UploadDestination> _tms; + std::vector<std::string> _auto_upload_destinations; /** The list of possible DCP frame rates that DCP-o-matic will use */ std::list<int> _allowed_dcp_frame_rates; /** Allow any video frame rate for the DCP; if true, overrides _allowed_dcp_frame_rates */ @@ -1363,7 +1354,6 @@ private: the home directory will be offered. */ boost::optional<boost::filesystem::path> _default_kdm_directory; - bool _upload_after_make_dcp; std::string _mail_server; int _mail_port; EmailProtocol _mail_protocol; |
