#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 SoundAsset;
class SubtitleAsset;
class Reel;
-class AssetMap;
class CPL;
class XMLMetadata;
+class Encryption;
+class KDM;
/** @class DCP
* @brief A class to create or read a DCP.
*/
-class DCP
+class DCP : public boost::noncopyable
{
public:
/** Construct a DCP. You can pass an existing DCP's directory
/** Write the required XML files to the directory that was
* passed into the constructor.
*/
- void write_xml (XMLMetadata const &) const;
+ void write_xml (bool interop, 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, bool, XMLMetadata const &, boost::shared_ptr<Encryption>) const;
/** Write the VOLINDEX file */
void write_volindex () const;
* @param pkl_uuid UUID of our PKL.
* @param pkl_length Length of our PKL in bytes.
*/
- void write_assetmap (std::string pkl_uuid, int pkl_length, XMLMetadata const &) const;
+ void write_assetmap (std::string pkl_uuid, int pkl_length, bool, XMLMetadata const &) const;
/** @return Assets in all this CPLs in this DCP */
std::list<boost::shared_ptr<const Asset> > assets () 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;
};
}