diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-22 21:06:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-22 21:06:41 +0100 |
| commit | 080da912e04d156d9260a3a5eead9034d2a72af3 (patch) | |
| tree | 2ebf01d3a283bd2780a3b5b25e6b3bcefb504c9e /src/lib/content.h | |
| parent | 119178eddf7aa38083862a913e8519591b5b01a0 (diff) | |
Allow films to be loaded when content is missing.
Diffstat (limited to 'src/lib/content.h')
| -rw-r--r-- | src/lib/content.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<Content> 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); |
