Private internal class used as base class for wxCurlDownloadEvent and wxCurlUploadEvent. More...
#include <base.h>
Public Member Functions | |
wxCurlProgressBaseEvent (int id, wxEventType type, wxCurlBase *p=NULL, const wxString &url=wxEmptyString) | |
wxCurlBase * | GetCurlSession () const |
Returns the curl session which generated this event. | |
wxDateTime | GetDateTime () const |
Returns the date & time at which this event was generated. | |
double | GetPercent () const |
Returns a number in [0;100] range indicating how much has been transferred so far. | |
virtual double | GetSpeed () const |
Returns the current transfer speed in bytes/second. | |
virtual wxTimeSpan | GetElapsedTime () const |
Returns the time elapsed since the beginning of the download up to the time this function is called. | |
virtual wxTimeSpan | GetEstimatedTime () const |
Returns the estimated time for the total download since it started. | |
virtual wxTimeSpan | GetEstimatedRemainingTime () const |
Returns the estimated remaining time to the completion of the download. | |
wxString | GetURL () const |
Returns the URL you are transfering from. | |
wxString | GetHumanReadableSpeed (const wxString &inv=_("Not available"), int prec=1) const |
Returns the current download/upload speed in a human readable format. | |
wxString | GetHumanReadableTotalBytes (const wxString &inv=_("Not available"), int prec=1) const |
Returns the total bytes to download in a human-readable format. | |
wxString | GetHumanReadableTransferredBytes (const wxString &inv=_("Not available"), int prec=1) const |
Returns the currently transferred bytes in a human-readable format. | |
virtual double | GetTotalBytes () const =0 |
Returns the total bytes to transfer. | |
virtual double | GetTransferredBytes () const =0 |
Returns the bytes transferred so far. | |
Protected Attributes | |
wxCurlBase * | m_pCURL |
wxString | m_szURL |
wxDateTime | m_dt |
Private internal class used as base class for wxCurlDownloadEvent and wxCurlUploadEvent.
virtual wxTimeSpan wxCurlProgressBaseEvent::GetElapsedTime | ( | ) | const [virtual] |
Returns the time elapsed since the beginning of the download up to the time this function is called.