DSL
Public Member Functions | Protected Attributes | List of all members
DSL_Download_Base Class Referenceabstract

#include <download.h>

Inheritance diagram for DSL_Download_Base:
Inheritance graph
[legend]

Public Member Functions

virtual bool SetURL (const string &url)=0
 
virtual void SetCallback (DSL_Download_Callback callback, void *user_ptr=NULL)=0
 
virtual void SetUserPass (const string &user, const string &pass)=0
 
virtual bool Download (const string &SaveAs)
 Begin download saving to file SaveAs.
 
virtual bool Download (FILE *fWriteTo)
 Begin download saving to FILE stream.
 
virtual bool Download (DSL_FILE *fWriteTo)=0
 
virtual void SetTimeout (uint32 millisec)=0
 
virtual void SetUserAgent (const string &ua)=0
 
virtual void FollowRedirects (bool follow)=0
 
virtual DSL_Download_Errors GetError ()
 
virtual const char * GetErrorString ()
 

Protected Attributes

DSL_Download_Errors error = TD_INVALID_PROTOCOL
 

Detailed Description

This base class shouldn't be used directly.

See also
DSL_Download_Curl
DSL_Download_NoCurl

Definition at line 61 of file download.h.

Member Function Documentation

◆ Download()

virtual bool DSL_Download_Base::Download ( DSL_FILE fWriteTo)
pure virtual

Begin download saving to DSL_FILE stream.

See also
DSL_FILE

Implemented in DSL_Download_NoCurl.

◆ SetTimeout()

virtual void DSL_Download_Base::SetTimeout ( uint32  millisec)
pure virtual

Begin download saving to a DSL_BUFFER.

See also
DSL_BUFFER virtual bool Download(DSL_BUFFER * fWriteTo) = 0;

Implemented in DSL_Download_NoCurl.


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