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.h | |
| parent | b6abe4901c7115d37706f52febe0c7caa5d3c258 (diff) | |
Add FTP uploader using curl.
Diffstat (limited to 'src/lib/uploader.h')
| -rw-r--r-- | src/lib/uploader.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/uploader.h b/src/lib/uploader.h index fcb9c5045..d504ed0f8 100644 --- a/src/lib/uploader.h +++ b/src/lib/uploader.h @@ -17,6 +17,9 @@ */ +#ifndef DCPOMATIC_UPLOADER_H +#define DCPOMATIC_UPLOADER_H + #include <boost/shared_ptr.hpp> #include <boost/filesystem.hpp> #include <boost/function.hpp> @@ -34,11 +37,14 @@ protected: virtual void create_directory (boost::filesystem::path directory) = 0; virtual void upload_file (boost::filesystem::path from, boost::filesystem::path to, boost::uintmax_t& transferred, boost::uintmax_t total_size) = 0; - boost::function<void (std::string)> _set_status; boost::function<void (float)> _set_progress; private: void upload_directory (boost::filesystem::path base, boost::filesystem::path directory, boost::uintmax_t& transferred, boost::uintmax_t total_size); boost::uintmax_t count_file_sizes (boost::filesystem::path) const; boost::filesystem::path remove_prefix (boost::filesystem::path prefix, boost::filesystem::path target) const; + + boost::function<void (std::string)> _set_status; }; + +#endif |
