From 080da912e04d156d9260a3a5eead9034d2a72af3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Oct 2013 21:06:41 +0100 Subject: Allow films to be loaded when content is missing. --- src/lib/content.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/content.h') diff --git a/src/lib/content.h b/src/lib/content.h index 9c7ad2fc2..c066c61e0 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -38,6 +38,7 @@ class Film; class ContentProperty { public: + static int const PATH; static int const POSITION; static int const LENGTH; static int const TRIM_START; @@ -61,12 +62,16 @@ public: virtual std::string identifier () const; boost::shared_ptr clone () const; + + void set_path (boost::filesystem::path); boost::filesystem::path path () const { boost::mutex::scoped_lock lm (_mutex); return _path; } + bool path_valid () const; + /** @return MD5 digest of the content's file(s) */ std::string digest () const { boost::mutex::scoped_lock lm (_mutex); -- cgit v1.2.3