Accessor for ClosedCaptionsDialog.
[dcpomatic.git] / src / lib / dkdm_wrapper.h
index 09e9d25c428c3808869fc6b20429edcc9fa73876..d828ffac2536a4298563764ae58a4c390321aa03 100644 (file)
@@ -18,6 +18,9 @@
 
 */
 
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+#include "encrypted_ecinema_kdm.h"
+#endif
 #include <dcp/encrypted_kdm.h>
 #include <libcxml/cxml.h>
 #include <boost/enable_shared_from_this.hpp>
@@ -67,6 +70,26 @@ private:
        dcp::EncryptedKDM _dkdm;
 };
 
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+class ECinemaDKDM : public DKDMBase
+{
+public:
+       explicit ECinemaDKDM (EncryptedECinemaKDM k)
+               : _dkdm (k)
+       {}
+
+       std::string name () const;
+       void as_xml (xmlpp::Element *) const;
+
+       EncryptedECinemaKDM dkdm () const {
+               return _dkdm;
+       }
+
+private:
+       EncryptedECinemaKDM _dkdm;
+};
+#endif
+
 class DKDMGroup : public DKDMBase
 {
 public: