Undo previous guess.
[dcpomatic.git] / src / lib / content.h
index 3c57dddbe5847289fab8211439f4cf23a0f593ae..626e270bdfedd07e5d4b3897a5cf81873cc4823e 100644 (file)
@@ -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;
@@ -58,14 +59,19 @@ public:
        virtual std::string information () const = 0;
        virtual void as_xml (xmlpp::Node *) const;
        virtual Time full_length () const = 0;
+       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);
@@ -97,7 +103,7 @@ public:
        }
        
        Time end () const {
-               return position() + length_after_trim();
+               return position() + length_after_trim() - 1;
        }
 
        Time length_after_trim () const;