const-correctness fix (#985).
[dcpomatic.git] / src / lib / dcp_content.h
index 93a207ed782057f7ce5af9b3fa8ef77a3bef9728..1212b8b0fbf3ff79f3681d10b8c0fd6044b5b516 100644 (file)
@@ -37,6 +37,7 @@ public:
        static int const REFERENCE_VIDEO;
        static int const REFERENCE_AUDIO;
        static int const REFERENCE_SUBTITLE;
+       static int const NAME;
 };
 
 class ContentPart;
@@ -115,6 +116,8 @@ public:
 
        bool can_reference_subtitle (std::list<std::string> &) const;
 
+       void set_cpl (std::string id);
+
        boost::optional<std::string> cpl () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _cpl;
@@ -133,6 +136,11 @@ private:
                std::list<std::string>& why_not
                ) const;
 
+       std::string name () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _name;
+       }
+
        std::string _name;
        /** true if our DCP is encrypted */
        bool _encrypted;