Cleanup: move some methods from util to maths_util.
[dcpomatic.git] / src / lib / kdm_recipient.h
index e92fc3c48d5bb8e17ded5c01052383abd5c6dbe2..90e9fd16dd079dc62df1e043e1d2aef71f8aaf01 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 "warnings.h"
 #include <dcp/certificate.h>
 #include <libcxml/cxml.h>
@@ -30,13 +32,15 @@ DCPOMATIC_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);
@@ -48,6 +52,11 @@ public:
        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