Supporters update.
[dcpomatic.git] / src / wx / download_certificate_panel.h
index d1f0bf4defbbaac96ec55a772d1ddf757f0920cc..cfa70241ffa2be5c062daa08be8094c8e4a04b09 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_DOWNLOAD_CERTIFICATE_PANEL_H
 #define DCPOMATIC_DOWNLOAD_CERTIFICATE_PANEL_H
 
+
+#include <dcp/warnings.h>
 #include <dcp/certificate.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/optional.hpp>
 
+
 class DownloadCertificateDialog;
 
+
 class DownloadCertificatePanel : public wxPanel
 {
 public:
@@ -37,8 +44,10 @@ public:
        virtual bool ready_to_download () const;
 
        void download ();
-       void load (boost::filesystem::path);
+       boost::optional<std::string> load_certificate (boost::filesystem::path, std::string url);
+       boost::optional<std::string> load_certificate_from_chain (boost::filesystem::path, std::string url);
        boost::optional<dcp::Certificate> certificate () const;
+       boost::optional<std::string> url () const;
 
 protected:
        DownloadCertificateDialog* _dialog;
@@ -48,6 +57,8 @@ protected:
 
 private:
        boost::optional<dcp::Certificate> _certificate;
+       boost::optional<std::string> _url;
 };
 
+
 #endif