summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-23 17:18:49 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-23 17:18:49 +0100
commit64a2f1bb6a7b972607fa363631ef7a47444e8217 (patch)
tree020c028a93f113e372e70f485857ce04dea5db3d /src/lib/content.h
parent8c6fe8e1e8c8f6d5932606f2a5b6e1b87681ae38 (diff)
Various bits and pieces.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index db1e56bc4..bcfbef7e3 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -39,17 +39,17 @@ class Film;
class Content : public boost::enable_shared_from_this<Content>
{
public:
- Content (Time);
- Content (boost::filesystem::path);
- Content (boost::shared_ptr<const cxml::Node>);
+ Content (boost::shared_ptr<const Film>, Time);
+ Content (boost::shared_ptr<const Film>, boost::filesystem::path);
+ Content (boost::shared_ptr<const Film>, boost::shared_ptr<const cxml::Node>);
Content (Content const &);
- virtual void examine (boost::shared_ptr<Film>, boost::shared_ptr<Job>);
+ virtual void examine (boost::shared_ptr<Job>);
virtual std::string summary () const = 0;
virtual std::string information () const = 0;
virtual void as_xml (xmlpp::Node *) const;
virtual boost::shared_ptr<Content> clone () const = 0;
- virtual Time length (boost::shared_ptr<const Film>) const = 0;
+ virtual Time length () const = 0;
boost::filesystem::path file () const {
boost::mutex::scoped_lock lm (_mutex);
@@ -66,15 +66,16 @@ public:
return _start;
}
- Time end (boost::shared_ptr<const Film> f) const {
- return start() + length(f);
+ Time end () const {
+ return start() + length();
}
boost::signals2::signal<void (boost::weak_ptr<Content>, int)> Changed;
protected:
void signal_changed (int);
-
+
+ boost::weak_ptr<const Film> _film;
mutable boost::mutex _mutex;
private: