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 voidDownloadFileL(const TDesC8 &, const TDesC &, TAny *)
IMPORT_C voidDownloadFileL(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)
voidConstructL()
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,
TUintaIAPId,
TUintaBufferSize,
TUintaParallelTransfers
)[private]

Default constructor

Since
S60 v3.2

Parameters

MHttpTransferObserver & aObserverTransfer observer
TUint aIAPIdIAP id
TUint aBufferSizesize of the upload buffer
TUint aParallelTransfersNumber of parallel transfers

~CHttpDownloader()

~CHttpDownloader()[virtual]

Destructor

Since
S60 v3.2

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second phase constructor

Since
S60 v3.2

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

IMPORT_C voidDownloadFileL(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 & aUriUri of the downloaded object
const TDesC & aTargetPathLocal path of the object
TAny * aKeyIdentifier of the object

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

IMPORT_C voidDownloadFileL(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 & aUriUri of the file
const RFile & aFileHandleHandle to the file
TAny * aKeyKey of the file

NewL(MHttpTransferObserver &, TUint, TUint, TUint)

IMPORT_C CHttpDownloader *NewL(MHttpTransferObserver &aObserver,
TUintaIAPId,
TUintaBufferSize,
TUintaParallelTransfers
)[static]

Constructor

Since
S60 v3.2

Parameters

MHttpTransferObserver & aObserverTransfer observer
TUint aIAPIdIAP id
TUint aBufferSizeSize of the upload buffer
TUint aParallelTransfersNumber of parallel transfers

NewLC(MHttpTransferObserver &, TUint, TUint, TUint)

IMPORT_C CHttpDownloader *NewLC(MHttpTransferObserver &aObserver,
TUintaIAPId,
TUintaBufferSize,
TUintaParallelTransfers
)[static]

Constructor

Since
S60 v3.2

Parameters

MHttpTransferObserver & aObserverTransfer observer
TUint aIAPIdIAP id
TUint aBufferSizeSize of the upload buffer
TUint aParallelTransfersNumber of parallel transfers