#ifndef FILEZILLA_UPDATE_DIALOG_HEADER #define FILEZILLA_UPDATE_DIALOG_HEADER #if FZ_MANUALUPDATECHECK #include "dialogex.h" #include "updater.h" class wxPanel; class wxWindow; class wxHyperlinkEvent; class CUpdateDialog : public wxDialogEx, protected CUpdateHandler { public: CUpdateDialog(wxWindow* parent, CUpdater& updater); virtual ~CUpdateDialog(); virtual int ShowModal(); static bool IsRunning(); protected: virtual void UpdaterStateChanged( UpdaterState s, build const& v ); void LoadPanel(wxString const& name); void Wrap(); wxWindow* parent_; CUpdater& updater_; std::vector panels_; wxTimer timer_; DECLARE_EVENT_TABLE() void OnInstall(wxCommandEvent& ev); void OnTimer(wxTimerEvent& ev); void ShowDetails(wxHyperlinkEvent& ev); void Retry(wxHyperlinkEvent& ev); void OnDebugLog(wxCommandEvent&); }; #endif #endif