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