summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-06 12:26:12 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-06 12:26:12 +0100
commit1bff0990433ab0ce588acaef7c589fa623bd998b (patch)
tree65cba435e949deb6359bbf75866b52684116df06 /src/lib/content.h
parent3429cf48ff2ce056413588be4151be82c8114861 (diff)
Add interface to set up still image lengths.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index 11c7438a6..fc2672c95 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -23,6 +23,7 @@
#include <boost/filesystem.hpp>
#include <boost/signals2.hpp>
#include <boost/thread/mutex.hpp>
+#include <boost/enable_shared_from_this.hpp>
#include <libxml++/libxml++.h>
namespace cxml {
@@ -32,7 +33,7 @@ namespace cxml {
class Job;
class Film;
-class Content
+class Content : public boost::enable_shared_from_this<Content>
{
public:
Content (boost::filesystem::path);
@@ -50,9 +51,11 @@ public:
return _file;
}
- boost::signals2::signal<void (int)> Changed;
+ boost::signals2::signal<void (boost::weak_ptr<Content>, int)> Changed;
protected:
+ void signal_changed (int);
+
mutable boost::mutex _mutex;
private: