OpenCPN Partial API docs
|
Add progress and final message dialogs to the basic Downloader. More...
#include <download_mgr.h>
Public Member Functions | |
GuiDownloader (wxWindow *parent, PluginMetadata plugin) | |
Add progress and final message dialogs to the basic Downloader. More... | |
std::string | run (wxWindow *parent, bool remove_current) |
void | on_chunk (const char *buff, unsigned bytes) override |
Called when given bytes has been transferred from remote. More... | |
void | showErrorDialog (const char *msg) |
Public Member Functions inherited from Downloader | |
Downloader (std::string url) | |
bool | download (std::ostream *stream) |
Download url into stream, return false on errors. More... | |
bool | download (std::string &path) |
Download url into path. More... | |
int | last_errorcode () |
Last error code, a CURLE return code. More... | |
std::string | last_error () |
Last Curl error message. More... | |
virtual void | on_chunk (const char *buff, unsigned bytes) |
Called when given bytes has been transferred from remote. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Downloader | |
long | get_filesize () |
Try to get remote filesize, return 0 on failure. More... | |
Protected Attributes inherited from Downloader | |
std::string | url |
std::ostream * | stream |
std::string | error_msg |
int | errorcode |
Add progress and final message dialogs to the basic Downloader.
Definition at line 47 of file download_mgr.h.
GuiDownloader::GuiDownloader | ( | wxWindow * | parent, |
PluginMetadata | plugin | ||
) |
Add progress and final message dialogs to the basic Downloader.
Definition at line 499 of file download_mgr.cpp.
|
overridevirtual |
Called when given bytes has been transferred from remote.
Reimplemented from Downloader.
Definition at line 577 of file download_mgr.cpp.
std::string GuiDownloader::run | ( | wxWindow * | parent, |
bool | remove_current | ||
) |
Definition at line 506 of file download_mgr.cpp.
void GuiDownloader::showErrorDialog | ( | const char * | msg | ) |
Definition at line 587 of file download_mgr.cpp.