CHttpDownloader Class Reference

class CHttpDownloader : public CHttpTransferBase

Downloader

This class handles the queue of the downloaded files and array of workers.

httptransfer.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CHttpDownloader ()
IMPORT_C void DownloadFileL (const TDesC8 &, const TDesC &, TAny *)
IMPORT_C void DownloadFileL (const TDesC8 &, const RFile &, TAny *)
IMPORT_C CHttpDownloader * NewL ( MHttpTransferObserver &, TUint , TUint , TUint )
IMPORT_C CHttpDownloader * NewLC ( MHttpTransferObserver &, TUint , TUint , TUint )
Private Member Functions
CHttpDownloader ( MHttpTransferObserver &, TUint , TUint , TUint )
void ConstructL ()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CHttpTransferBase::ActivateNewTransferRequest()
CHttpTransferBase::CHttpTransferBase()
CHttpTransferBase::CancelAll()
CHttpTransferBase::CancelTransfer(TAny *)
CHttpTransferBase::CreateAndQueueHttpFileL(const TDesC8 &,const RFile &,TAny *)
CHttpTransferBase::CreateAndQueueHttpFileL(const TDesC8 &,const TDesC &,TAny *)
CHttpTransferBase::DoCancel()
CHttpTransferBase::GetPropertyL(TAny *,THttpPropertyType)
CHttpTransferBase::InsertFileIntoWaitQueueL(TAny *,const RFile &,const TDesC8 &)
CHttpTransferBase::InsertFileIntoWaitQueueL(TAny *,const TDesC &,const TDesC8 &)
CHttpTransferBase::MoveToTransferQueueL(TAny *)
CHttpTransferBase::NextFile()
CHttpTransferBase::ProcessNextFileL()
CHttpTransferBase::RunError(TInt)
CHttpTransferBase::RunL()
CHttpTransferBase::SetHeaderL(TAny *,const TDesC8 &,const TDesC8 &)
CHttpTransferBase::SetPropertyL(TAny *,THttpPropertyType,const TDesC &)
CHttpTransferBase::StartTransferL(TAny *)
CHttpTransferBase::TrackProgress(TAny *,TBool)
CHttpTransferBase::WorkerCompleted()
CHttpTransferBase::~CHttpTransferBase()
Inherited Enumerations
CActive:TPriority
CHttpTransferBase:THttpPropertyType
Inherited Attributes
CActive::iStatus
CHttpTransferBase::iActiveWorker
CHttpTransferBase::iBufferSize
CHttpTransferBase::iFileQueue
CHttpTransferBase::iIAPId
CHttpTransferBase::iObserver
CHttpTransferBase::iParallelTransfers
CHttpTransferBase::iWaitQueue
CHttpTransferBase::iWorkerArray

Constructor & Destructor Documentation

CHttpDownloader(MHttpTransferObserver &, TUint, TUint, TUint)

CHttpDownloader ( MHttpTransferObserver & aObserver,
TUint aIAPId,
TUint aBufferSize,
TUint aParallelTransfers
) [private]

Default constructor

Since
S60 v3.2

Parameters

MHttpTransferObserver & aObserver Transfer observer
TUint aIAPId IAP id
TUint aBufferSize size of the upload buffer
TUint aParallelTransfers Number of parallel transfers

~CHttpDownloader()

~CHttpDownloader ( ) [virtual]

Destructor

Since
S60 v3.2

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

Second phase constructor

Since
S60 v3.2

DownloadFileL(const TDesC8 &, const TDesC &, TAny *)

IMPORT_C void DownloadFileL ( const TDesC8 & aUri,
const TDesC & aTargetPath,
TAny * aKey
)

Method for downloading the file. Creates and enqueues the file

Since
S60 v3.2

Parameters

const TDesC8 & aUri Uri of the downloaded object
const TDesC & aTargetPath Local path of the object
TAny * aKey Identifier of the object

DownloadFileL(const TDesC8 &, const RFile &, TAny *)

IMPORT_C void DownloadFileL ( const TDesC8 & aUri,
const RFile & aFileHandle,
TAny * aKey
)

Method for downloading the file. Uses the file handle to store the data.

Since
S60 v3.2

Parameters

const TDesC8 & aUri Uri of the file
const RFile & aFileHandle Handle to the file
TAny * aKey Key of the file

NewL(MHttpTransferObserver &, TUint, TUint, TUint)

IMPORT_C CHttpDownloader * NewL ( MHttpTransferObserver & aObserver,
TUint aIAPId,
TUint aBufferSize,
TUint aParallelTransfers
) [static]

Constructor

Since
S60 v3.2

Parameters

MHttpTransferObserver & aObserver Transfer observer
TUint aIAPId IAP id
TUint aBufferSize Size of the upload buffer
TUint aParallelTransfers Number of parallel transfers

NewLC(MHttpTransferObserver &, TUint, TUint, TUint)

IMPORT_C CHttpDownloader * NewLC ( MHttpTransferObserver & aObserver,
TUint aIAPId,
TUint aBufferSize,
TUint aParallelTransfers
) [static]

Constructor

Since
S60 v3.2

Parameters

MHttpTransferObserver & aObserver Transfer observer
TUint aIAPId IAP id
TUint aBufferSize Size of the upload buffer
TUint aParallelTransfers Number of parallel transfers