Get Signer to take a PEM string rather than a filename.
[libdcp.git] / src / cpl.h
index 8458a028c022be17ab2e663b922b1afcfee53b93..164ed734eb7f421e03a52d329466024821bdda0b 100644 (file)
--- a/src/cpl.h
+++ b/src/cpl.h
 
 */
 
+/** @file  src/cpl.h
+ *  @brief CPL class.
+ */
+
 #ifndef LIBDCP_CPL_H
 #define LIBDCP_CPL_H
 
@@ -28,7 +32,6 @@
 #include <libxml++/libxml++.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/function.hpp>
-#include <boost/date_time/posix_time/posix_time.hpp>
 #include <boost/optional.hpp>
 #include <boost/filesystem.hpp>
 #include <list>
@@ -40,7 +43,7 @@ class Reel;
 class XMLMetadata;
 class MXFMetadata;
 class Signer;
-class KDM;
+class DecryptedKDM;
        
 /** @class CPL
  *  @brief A Composition Playlist.
@@ -58,7 +61,7 @@ public:
                ) const;
 
        void add (boost::shared_ptr<Reel> reel);
-       void add (KDM const &);
+       void add (DecryptedKDM const &);
 
        /** @return contents of the &lt;AnnotationText&gt; node */
        std::string annotation_text () const {
@@ -100,6 +103,9 @@ public:
        bool encrypted () const;
 
        void set_mxf_keys (Key);
+       void set_metadata (XMLMetadata m) {
+               _metadata = m;
+       }
 
        void write_xml (
                boost::filesystem::path file,