Accessor for ClosedCaptionsDialog.
[dcpomatic.git] / src / wx / download_certificate_dialog.h
index cae5f59d87ec3bbaf4d55c0edfeb7cf4406cbba3..a2fbf808f768b39c77e5f56a1e9e7ea0cff57ac9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -18,6 +18,7 @@
 
 */
 
+#include <dcp/certificate.h>
 #include <wx/wx.h>
 #include <wx/notebook.h>
 
@@ -26,20 +27,27 @@ class DownloadCertificatePanel;
 class DownloadCertificateDialog : public wxDialog
 {
 public:
-       DownloadCertificateDialog (wxWindow* parent);
+       explicit DownloadCertificateDialog (wxWindow* parent);
        ~DownloadCertificateDialog ();
 
        dcp::Certificate certificate () const;
 
        void setup_sensitivity ();
 
+       wxNotebook* notebook () const {
+               return _notebook;
+       }
+
+       wxStaticText* message () const {
+               return _message;
+       }
+
 private:
        void download ();
        void page_changed (wxNotebookEvent &);
 
        wxNotebook* _notebook;
        std::vector<DownloadCertificatePanel*> _pages;
-       std::vector<bool> _setup;
        wxButton* _download;
        wxStaticText* _message;
 };