Shift some more stuff around.
[dcpomatic.git] / src / wx / download_certificate_panel.h
index 6308e49b708fb625ee8ca421f64fa5b1002658f1..252474c59802e357151b36a076f047eb6610ec5e 100644 (file)
@@ -30,25 +30,25 @@ class DownloadCertificateDialog;
 class DownloadCertificatePanel : public wxPanel
 {
 public:
-       DownloadCertificatePanel (wxWindow* parent, DownloadCertificateDialog* dialog);
+       DownloadCertificatePanel (wxWindow* parent, wxStaticText* message, DownloadCertificateDialog* dialog);
 
-       /* Do any setup that may take a noticeable amount of time */
-       virtual void setup () {}
-       virtual bool ready_to_download () const = 0;
-       virtual void download (wxStaticText* message) = 0;
+       virtual void do_download (std::string serial) = 0;
+       virtual wxString name () const = 0;
 
+       bool ready_to_download () const;
+       void download ();
        void load (boost::filesystem::path);
        boost::optional<dcp::Certificate> certificate () const;
 
 protected:
-       void layout ();
-
        DownloadCertificateDialog* _dialog;
        wxFlexGridSizer* _table;
+       wxStaticText* _message;
 
 private:
        wxSizer* _overall_sizer;
        boost::optional<dcp::Certificate> _certificate;
+       wxTextCtrl* _serial;
 };
 
 #endif