summaryrefslogtreecommitdiff
path: root/src/asset.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/asset.h
parent43cc9d6e1b1e1957288c545cc55f5a0df8492b55 (diff)
Fix up progress reporting, some better exceptions.
Diffstat (limited to 'src/asset.h')
-rw-r--r--src/asset.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/asset.h b/src/asset.h
index fb701570..2d33e069 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -34,22 +34,19 @@ namespace libdcp
class Asset
{
public:
- Asset (std::string, int, int);
+ Asset (std::string, sigc::signal1<void, float>*, int, int);
virtual void write_to_cpl (std::ostream &) const = 0;
void write_to_pkl (std::ostream &) const;
void write_to_assetmap (std::ostream &) const;
- /** Emitted with a parameter between 0 and 1 to indicate progress in constructing
- * this asset.
- */
- sigc::signal1<void, float> Progress;
-
protected:
void fill_writer_info (ASDCP::WriterInfo *) const;
/** Path to our MXF file */
std::string _mxf_path;
+ /** Signal to emit to report progress */
+ sigc::signal1<void, float>* _progress;
/** Frames per second */
int _fps;
/** Length in frames */