summaryrefslogtreecommitdiff
path: root/src/lib/upload_job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-17 10:54:15 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-17 15:40:49 +0100
commit9695a0f81ce2a0ccd02cf4608e7151e4f07baabc (patch)
tree3ac03d84cdf680f69c077256e974263aa6a9ab31 /src/lib/upload_job.h
parent854facc49eda9f7e561e73a5722296bb1ad5734a (diff)
Rename SCPDCPJob -> UploadJob.
Diffstat (limited to 'src/lib/upload_job.h')
-rw-r--r--src/lib/upload_job.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/lib/upload_job.h b/src/lib/upload_job.h
new file mode 100644
index 000000000..3612eaaee
--- /dev/null
+++ b/src/lib/upload_job.h
@@ -0,0 +1,41 @@
+/*
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+/** @file src/upload_job.h
+ * @brief A job to copy DCPs to a server using libcurl.
+ */
+
+#include "job.h"
+
+class UploadJob : public Job
+{
+public:
+ UploadJob (boost::shared_ptr<const Film>);
+
+ std::string name () const;
+ std::string json_name () const;
+ void run ();
+ std::string status () const;
+
+private:
+ void set_status (std::string);
+
+ mutable boost::mutex _status_mutex;
+ std::string _status;
+};