Fill test disk partitions with random noise to expose more bugs.
[dcpomatic.git] / src / lib / kdm_recipient.h
index c0533daeb07d2d6c3388c22fde2dea9189824145..f18e714290d0a530a68ba7757cf066fd70b11ed3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_KDM_RECIPIENT_H
 #define DCPOMATIC_KDM_RECIPIENT_H
 
+
 #include <dcp/certificate.h>
+#include <dcp/warnings.h>
 #include <libcxml/cxml.h>
+LIBDCP_DISABLE_WARNINGS
 #include <libxml++/libxml++.h>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/optional.hpp>
 #include <string>
 
+
 class KDMRecipient
 {
 public:
-       KDMRecipient (std::string const& name_, std::string const& notes_, boost::optional<dcp::Certificate> recipient_)
+       KDMRecipient (std::string const& name_, std::string const& notes_, boost::optional<dcp::Certificate> recipient_, boost::optional<std::string> recipient_file_)
                : name (name_)
                , notes (notes_)
                , recipient (recipient_)
+               , recipient_file (recipient_file_)
        {}
 
        explicit KDMRecipient (cxml::ConstNodePtr);
 
+       virtual ~KDMRecipient () {}
+
        virtual void as_xml (xmlpp::Element *) const;
 
        std::string name;
        std::string notes;
        boost::optional<dcp::Certificate> recipient;
+       /** The pathname or URL that the recipient certificate was obtained from; purely
+        *  to inform the user.
+        */
+       boost::optional<std::string> recipient_file;
 };
 
+
 #endif