wxCurlSizeQueryThread Class Reference

This thread just retrieve the sizes of the given list of files and post them to the registered event handler. More...

#include <utils.h>

Inheritance diagram for wxCurlSizeQueryThread:
wxCurlBaseThread

List of all members.

Public Member Functions

 wxCurlSizeQueryThread (wxEvtHandler *handler=NULL, int id=wxID_ANY)
 wxCurlSizeQueryThread (wxEvtHandler *handler, int id, const wxArrayString &urls)
 Creates the thread for querying the size of given array of urls.
void SetURLs (const wxArrayString &urls)
 Sets the list of URLs to query the size for.

Protected Member Functions

virtual void * Entry ()
 Caches the file sizes and then exits.
virtual void OnExit ()
 Sends the wxEVT_COMMAND_CACHESIZE_COMPLETE event to the event handler.

Protected Attributes

wxArrayLong m_urlSize
 The array with our retrieved sizes.
wxArrayString m_urls
 The list of the URLs for the files whose size must be queried.

Friends

class wxCurlSizeQueryOutput

Detailed Description

This thread just retrieve the sizes of the given list of files and post them to the registered event handler.

This is useful to show the size of one or more files to the user before downloading them.


Constructor & Destructor Documentation

wxCurlSizeQueryThread::wxCurlSizeQueryThread ( wxEvtHandler *  handler,
int  id,
const wxArrayString &  urls 
) [inline]

Creates the thread for querying the size of given array of urls.

After calling the Run() function, the given event handler will get a wxCurlSizeEvent for each URL passed in the list.


Member Function Documentation

virtual void wxCurlSizeQueryThread::OnExit (  )  [protected, virtual]

Sends the wxEVT_COMMAND_CACHESIZE_COMPLETE event to the event handler.

Reimplemented from wxCurlBaseThread.


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

Generated on 1 Jan 2010 for wxCURL by  doxygen 1.6.1