diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-17 15:37:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-17 15:40:56 +0100 |
| commit | 1d5462ef8d6a32b964f0335e3dd68aac31075d14 (patch) | |
| tree | 69d94357bbfcc3b194152a6260d3cc450a47e8e9 /src/lib/uploader.cc | |
| parent | b6abe4901c7115d37706f52febe0c7caa5d3c258 (diff) | |
Add FTP uploader using curl.
Diffstat (limited to 'src/lib/uploader.cc')
| -rw-r--r-- | src/lib/uploader.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/uploader.cc b/src/lib/uploader.cc index b6b23ed8e..fe15c5d83 100644 --- a/src/lib/uploader.cc +++ b/src/lib/uploader.cc @@ -19,16 +19,19 @@ #include "uploader.h" #include "dcpomatic_assert.h" +#include "compose.hpp" + +#include "i18n.h" using std::string; using boost::shared_ptr; using boost::function; Uploader::Uploader (function<void (string)> set_status, function<void (float)> set_progress) - : _set_status (set_status) - , _set_progress (set_progress) + : _set_progress (set_progress) + , _set_status (set_status) { - + _set_status (_("connecting")); } boost::uintmax_t @@ -66,6 +69,7 @@ Uploader::upload_directory (boost::filesystem::path base, boost::filesystem::pat if (is_directory (i->path ())) { upload_directory (base, i->path (), transferred, total_size); } else { + _set_status (String::compose (_("copying %1"), i->path().leaf ())); upload_file (i->path (), remove_prefix (base, i->path ()), transferred, total_size); } } |
