Various KDM and encryption fixes.
[dcpomatic.git] / src / lib / film.h
index 809eabdaa9a1257cae980be9ce68a2c0b78e8452..26623e69eb401bff6ab5948980527ab07fda6566 100644 (file)
@@ -31,6 +31,7 @@
 #include <boost/signals2.hpp>
 #include <boost/enable_shared_from_this.hpp>
 #include <boost/filesystem.hpp>
+#include <libdcp/key.h>
 #include "util.h"
 #include "types.h"
 #include "dci_metadata.h"
@@ -121,6 +122,10 @@ public:
                std::string directory
                ) const;
 
+       libdcp::Key key () const {
+               return _key;
+       }
+
        /** Identifiers for the parts of our state;
            used for signalling changes.
        */
@@ -296,6 +301,7 @@ private:
        bool _three_d;
        bool _sequence_video;
        bool _interop;
+       libdcp::Key _key;
 
        /** true if our state has changed since we last saved it */
        mutable bool _dirty;