wxCurlDownloadThread Class Reference

A simple joinable thread which allows downloading resources from the net without blocking the GUI of your app. More...

#include <thread.h>

Inheritance diagram for wxCurlDownloadThread:
wxCurlBaseThread

List of all members.

Public Member Functions

 wxCurlDownloadThread (wxEvtHandler *handler=NULL, int id=wxID_ANY, const wxString &url=wxEmptyString, wxOutputStream *out=NULL)
wxCurlThreadError SetOutputStream (wxOutputStream *out=NULL)
 Sets the output stream where the downloaded data are written.
wxOutputStream * GetOutputStream () const
 Returns the output stream for downloaded data.
virtual bool IsOk () const
 Returns true if this thread is ready to be started using Download.
wxCurlThreadError Download (const wxString &url, wxOutputStream *out=NULL)
 Creates and runs this thread for download of the given URL in the given output stream (internally calls SetURL and SetOutputStream).
wxCurlThreadError Download ()
 Downloads the URL previously set with SetURL using the output stream previously set with SetOutputStream.

Protected Member Functions

virtual wxCurlThreadError StartTransfer ()
 Starts the transfer.
virtual void * Entry ()

Protected Attributes

wxCurlDownloadThreadOutputFilter m_output
 The output stream for downloaded data.

Friends

class wxCurlDownloadThreadOutputFilter

Detailed Description

A simple joinable thread which allows downloading resources from the net without blocking the GUI of your app.


Member Function Documentation

wxCurlThreadError wxCurlDownloadThread::Download (  ) 

Downloads the URL previously set with SetURL using the output stream previously set with SetOutputStream.

wxCurlThreadError wxCurlDownloadThread::Download ( const wxString &  url,
wxOutputStream *  out = NULL 
)

Creates and runs this thread for download of the given URL in the given output stream (internally calls SetURL and SetOutputStream).

wxCurlThreadError wxCurlDownloadThread::SetOutputStream ( wxOutputStream *  out = NULL  ) 

Sets the output stream where the downloaded data are written.

If you pass NULL to this function, then a new temporary file will be used.

virtual wxCurlThreadError wxCurlDownloadThread::StartTransfer (  )  [inline, protected, virtual]

Starts the transfer.

This is equivalent to call wxCurlDownloadThread::Download or wxCurlUploadThread::Upload.

Implements wxCurlBaseThread.


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

Generated on 1 Jan 2010 for wxCURL by  doxygen 1.6.1