wxCurlDownloadEvent Class Reference

This event gets posted by wxCURL with a frequent interval during operation (roughly once per second) no matter if data is being transfered or not. More...

#include <base.h>

Inheritance diagram for wxCurlDownloadEvent:
wxCurlProgressBaseEvent

List of all members.

Public Member Functions

 wxCurlDownloadEvent (int id, wxCurlBase *originator, const double &rDownloadTotal, const double &rDownloadNow, const wxString &szURL=wxEmptyString)
 wxCurlDownloadEvent (const wxCurlDownloadEvent &event)
virtual wxEvent * Clone () const
double GetDownloadedBytes () const
 Returns the number of bytes downloaded so far.
double GetTransferredBytes () const
 Returns the bytes transferred so far.
double GetTotalBytes () const
 Returns the total number of bytes to download.
wxString GetHumanReadableDownloadedBytes (const wxString &inv=_("Not available"), int prec=1) const
 Returns the currently downloaded bytes in a human-readable format.

Protected Attributes

double m_rDownloadTotal
double m_rDownloadNow

Detailed Description

This event gets posted by wxCURL with a frequent interval during operation (roughly once per second) no matter if data is being transfered or not.

Unknown/unused argument values passed to the callback will be set to zero (like if you only download data, the upload size will remain 0). Use the EVT_CURL_PROGRESS(id, function) macro to intercept this event.


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

Generated on 1 Jan 2010 for wxCURL by  doxygen 1.6.1