Update for newer libdcp; add start of manual.
[dcpomatic.git] / src / lib / dcp_content_type.h
index aba3054490ad89aaf1ebc9e27a82c9bf5fcdab3c..cb858cf5a34975a169fcef5dc72b37c9fc438a2b 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <string>
 #include <vector>
+#include <libdcp/dcp.h>
 
 /** @class DCPContentType
  *  @brief A description of the type of content for a DCP (e.g. feature, trailer etc.)
 class DCPContentType
 {
 public:
-       DCPContentType (std::string, std::string);
+       DCPContentType (std::string, libdcp::ContentKind);
 
        /** @return user-visible `pretty' name */
        std::string pretty_name () const {
                return _pretty_name;
        }
 
-       /** @return name as written to a DCP */
-       std::string dcp_name () const {
-               return _dcp_name;
+       libdcp::ContentKind libdcp_kind () const {
+               return _libdcp_kind;
        }
 
        static DCPContentType const * from_pretty_name (std::string);
@@ -50,7 +50,7 @@ public:
 
 private:
        std::string _pretty_name;
-       std::string _dcp_name;
+       libdcp::ContentKind _libdcp_kind;
 
        /** All available DCP content types */
        static std::vector<DCPContentType const *> _dcp_content_types;