diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-17 20:30:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-17 20:30:30 +0100 |
| commit | 4709b2fe88040f3678560997726f3a209eacc660 (patch) | |
| tree | db4c7f923de4bd4e09de6c5237288424f0622a24 /src/dcp.h | |
| parent | 43cc9d6e1b1e1957288c545cc55f5a0df8492b55 (diff) | |
Fix up progress reporting, some better exceptions.
Diffstat (limited to 'src/dcp.h')
| -rw-r--r-- | src/dcp.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |
