summaryrefslogtreecommitdiff
path: root/src/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-17 20:30:30 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-17 20:30:30 +0100
commit4709b2fe88040f3678560997726f3a209eacc660 (patch)
treedb4c7f923de4bd4e09de6c5237288424f0622a24 /src/dcp.h
parent43cc9d6e1b1e1957288c545cc55f5a0df8492b55 (diff)
Fix up progress reporting, some better exceptions.
Diffstat (limited to 'src/dcp.h')
-rw-r--r--src/dcp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dcp.h b/src/dcp.h
index 6896267c..6170896b 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -17,9 +17,13 @@
*/
+#ifndef LIBDCP_DCP_H
+#define LIBDCP_DCP_H
+
#include <string>
#include <list>
#include <boost/shared_ptr.hpp>
+#include <sigc++/sigc++.h>
namespace libdcp
{
@@ -51,6 +55,11 @@ public:
void write_xml () const;
+ /** Emitted with a parameter between 0 and 1 to indicate progress
+ * for long jobs.
+ */
+ sigc::signal1<void, float> Progress;
+
private:
std::string write_cpl (std::string) const;
@@ -75,3 +84,5 @@ private:
};
}
+
+#endif