OpenCPN Partial API docs
Loading...
Searching...
No Matches
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. 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
 

Detailed Description

Add progress and final message dialogs to the basic Downloader.

Definition at line 47 of file download_mgr.h.

Constructor & Destructor Documentation

◆ GuiDownloader()

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.

Member Function Documentation

◆ on_chunk()

void GuiDownloader::on_chunk ( const char *  buff,
unsigned  bytes 
)
overridevirtual

Called when given bytes has been transferred from remote.

Reimplemented from Downloader.

Definition at line 577 of file download_mgr.cpp.

◆ run()

std::string GuiDownloader::run ( wxWindow *  parent,
bool  remove_current 
)

Definition at line 506 of file download_mgr.cpp.

◆ showErrorDialog()

void GuiDownloader::showErrorDialog ( const char *  msg)

Definition at line 587 of file download_mgr.cpp.


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