Basics of DCP subtitle import.
[dcpomatic.git] / src / lib / dcp_content.h
index 22b5fa08da0ba63d94818e30ea3ce77fa41d4f5f..7ead80ecb373730de35d89a2d92c6eaa9cf3bca9 100644 (file)
@@ -17,6 +17,7 @@
 
 */
 
+#include <libcxml/cxml.h>
 #include "video_content.h"
 #include "single_stream_audio_content.h"
 #include "subtitle_content.h"
@@ -25,6 +26,7 @@ class DCPContent : public VideoContent, public SingleStreamAudioContent, public
 {
 public:
        DCPContent (boost::shared_ptr<const Film> f, boost::filesystem::path p);
+       DCPContent (boost::shared_ptr<const Film> f, cxml::ConstNodePtr, int version);
 
        boost::shared_ptr<DCPContent> shared_from_this () {
                return boost::dynamic_pointer_cast<DCPContent> (Content::shared_from_this ());
@@ -36,6 +38,7 @@ public:
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *) const;
+       std::string identifier () const;
 
        boost::filesystem::path directory () const {
                boost::mutex::scoped_lock lm (_mutex);
@@ -44,7 +47,7 @@ public:
 
 private:
        void read_directory (boost::filesystem::path);
-
-       boost::filesystem::path _directory;
+       
        std::string _name;
+       boost::filesystem::path _directory;
 };