Rename TYPE_DEBUG_PLAYER to TYPE_DEBUG_VIDEO_VIEW.
[dcpomatic.git] / src / lib / decrypted_ecinema_kdm.h
index b0fc2064d65b8c42b0d4af0421be87d1ed73bf0b..7a66b63e09dbfa32d994ce5bba9804d5436784ef 100644 (file)
 class DecryptedECinemaKDM
 {
 public:
-       DecryptedECinemaKDM (dcp::Key content_key);
+       DecryptedECinemaKDM (std::string id, std::string name, dcp::Key content_key, boost::optional<dcp::LocalTime> not_valid_before, boost::optional<dcp::LocalTime> not_valid_after);
+       DecryptedECinemaKDM (EncryptedECinemaKDM kdm, std::string private_key);
 
        EncryptedECinemaKDM encrypt (dcp::Certificate recipient);
 
+       std::string id () const {
+               return _id;
+       }
+
+       std::string name () const {
+               return _name;
+       }
+
+       dcp::Key key () const {
+               return _content_key;
+       }
+
+       boost::optional<dcp::LocalTime> not_valid_before () const {
+               return _not_valid_before;
+       }
+
+       boost::optional<dcp::LocalTime> not_valid_after () const {
+               return _not_valid_after;
+       }
+
 private:
+       std::string _id;
+       std::string _name;
        /** unenecrypted content key */
        dcp::Key _content_key;
+       boost::optional<dcp::LocalTime> _not_valid_before;
+       boost::optional<dcp::LocalTime> _not_valid_after;
 };
 
 #endif