wxCurlProgressBaseEvent Class Reference

Private internal class used as base class for wxCurlDownloadEvent and wxCurlUploadEvent. More...

#include <base.h>

Inheritance diagram for wxCurlProgressBaseEvent:
wxCurlDownloadEvent wxCurlUploadEvent

List of all members.

Public Member Functions

 wxCurlProgressBaseEvent (int id, wxEventType type, wxCurlBase *p=NULL, const wxString &url=wxEmptyString)
wxCurlBaseGetCurlSession () 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

wxCurlBasem_pCURL
wxString m_szURL
wxDateTime m_dt

Detailed Description

Private internal class used as base class for wxCurlDownloadEvent and wxCurlUploadEvent.


Member Function Documentation

virtual wxTimeSpan wxCurlProgressBaseEvent::GetElapsedTime (  )  const [virtual]

Returns the time elapsed since the beginning of the download up to the time this function is called.


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

Generated on 1 Jan 2010 for wxCURL by  doxygen 1.6.1