source: filezilla/trunk/fuentes/src/interface/update_dialog.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 866 bytes
Line 
1#ifndef FILEZILLA_UPDATE_DIALOG_HEADER
2#define FILEZILLA_UPDATE_DIALOG_HEADER
3
4#if FZ_MANUALUPDATECHECK
5#include "dialogex.h"
6#include "updater.h"
7
8class wxPanel;
9class wxWindow;
10
11class wxHyperlinkEvent;
12
13class CUpdateDialog : public wxDialogEx, protected CUpdateHandler
14{
15public:
16        CUpdateDialog(wxWindow* parent, CUpdater& updater);
17        virtual ~CUpdateDialog();
18
19        virtual int ShowModal();
20
21        static bool IsRunning();
22
23protected:
24        virtual void UpdaterStateChanged( UpdaterState s, build const& v );
25
26        void LoadPanel(wxString const& name);
27        void Wrap();
28
29        wxWindow* parent_;
30        CUpdater& updater_;
31
32        std::vector<wxPanel*> panels_;
33
34        wxTimer timer_;
35
36        DECLARE_EVENT_TABLE()
37        void OnInstall(wxCommandEvent& ev);
38        void OnTimer(wxTimerEvent& ev);
39        void ShowDetails(wxHyperlinkEvent& ev);
40        void Retry(wxHyperlinkEvent& ev);
41        void OnDebugLog(wxCommandEvent&);
42};
43
44#endif
45#endif
Note: See TracBrowser for help on using the repository browser.