Supporters update.
[dcpomatic.git] / src / wx / make_chain_dialog.h
index b9fb0d449f526c3920d4e09c5220c9af1a96fbfd..018db99a202c2e2ce7d42ef3c0db60c870ea789b 100644 (file)
 
 */
 
+#ifndef DCPOMATIC_MAKE_CHAIN_DIALOG_H
+#define DCPOMATIC_MAKE_CHAIN_DIALOG_H
+
 #include "table_dialog.h"
 #include "wx_util.h"
 
 class MakeChainDialog : public TableDialog
 {
 public:
-       MakeChainDialog (
-               wxWindow* parent,
-               std::string organisation,
-               std::string organisational_unit_name,
-               std::string root_common_name,
-               std::string intermediate_common_name,
-               std::string leaf_common_name
-               );
-
-       std::string organisation () const {
-               return wx_to_std (_organisation->GetValue ());
-       }
-
-       std::string organisational_unit () const {
-               return wx_to_std (_organisational_unit->GetValue ());
-       }
-
-       std::string root_common_name () const {
-               return "." + wx_to_std (_root_common_name->GetValue ());
-       }
-
-       std::string intermediate_common_name () const {
-               return "." + wx_to_std (_intermediate_common_name->GetValue ());
-       }
-
-       std::string leaf_common_name () const {
-               return "CS." + wx_to_std (_leaf_common_name->GetValue ());
-       }
+       MakeChainDialog (wxWindow* parent, std::shared_ptr<const dcp::CertificateChain> chain);
 
+       std::shared_ptr<dcp::CertificateChain> get () const;
 
 private:
        wxTextCtrl* _organisation;
@@ -61,3 +38,5 @@ private:
        wxTextCtrl* _intermediate_common_name;
        wxTextCtrl* _leaf_common_name;
 };
+
+#endif