#include <boost/shared_ptr.hpp>
#include <boost/signals2.hpp>
#include "types.h"
+#include "certificates.h"
namespace xmlpp {
- class Node;
+ class Document;
+ class Element;
}
/** @brief Namespace for everything in libdcp */
class Reel;
class CPL;
class XMLMetadata;
+class Encryption;
+class KDM;
/** @class DCP
* @brief A class to create or read a DCP.
/** Write the required XML files to the directory that was
* passed into the constructor.
*/
- void write_xml (XMLMetadata const &) const;
+ void write_xml (XMLMetadata const &, boost::shared_ptr<Encryption> crypt = boost::shared_ptr<Encryption> ()) const;
/** Compare this DCP with another, according to various options.
* @param other DCP to compare this one to.
void add_cpl (boost::shared_ptr<CPL> cpl);
/** @return The list of CPLs in this DCP */
- std::list<boost::shared_ptr<const CPL> > cpls () const {
+ std::list<boost::shared_ptr<CPL> > cpls () const {
return _cpls;
}
+ bool encrypted () const;
+
+ void add_kdm (KDM const &);
+
/** Emitted with a parameter between 0 and 1 to indicate progress
* for long jobs.
*/
/** Write the PKL file.
* @param pkl_uuid UUID to use.
*/
- std::string write_pkl (std::string pkl_uuid, XMLMetadata const &) const;
+ std::string write_pkl (std::string pkl_uuid, XMLMetadata const &, boost::shared_ptr<Encryption>) const;
/** Write the VOLINDEX file */
void write_volindex () const;
/** the directory that we are writing to */
std::string _directory;
/** our CPLs */
- std::list<boost::shared_ptr<const CPL> > _cpls;
+ std::list<boost::shared_ptr<CPL> > _cpls;
};
}