25 #ifndef DOWNLOAD_MGR_H__
26 #define DOWNLOAD_MGR_H__
28 #include <wx/dialog.h>
29 #include <wx/progdlg.h>
30 #include <wx/window.h>
32 #include "model/downloader.h"
33 #include "model/catalog_parser.h"
36 wxDECLARE_EVENT(EVT_PLUGINS_RELOAD, wxCommandEvent);
42 wxWindow* GetRealParent() {
return m_parent; }
50 wxProgressDialog* m_dialog;
56 std::string run(wxWindow* parent,
bool remove_current);
57 void on_chunk(
const char* buff,
unsigned bytes)
override;
58 void showErrorDialog(
const char* msg);
Handle downloading of files from remote urls.
Add progress and final message dialogs to the basic Downloader.
void on_chunk(const char *buff, unsigned bytes) override
Called when given bytes has been transferred from remote.
GuiDownloader(wxWindow *parent, PluginMetadata plugin)
Add progress and final message dialogs to the basic Downloader.
PluginDownloadDialog(wxWindow *parent)
Top-level install plugins dialog.