OpenCPN Partial API docs
GuiDownloader Class Reference

Add progress and final message dialogs to the basic Downloader. More...

#include <download_mgr.h>

Inheritance diagram for GuiDownloader:
Downloader

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)
 
bool download (std::ostream *stream)
 Download url into stream, return false on errors.
 
bool download (std::string &path)
 Download url into path. More...
 
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
 

Detailed Description

Add progress and final message dialogs to the basic Downloader.

Definition at line 47 of file download_mgr.h.


The documentation for this class was generated from the following files: