CHttpTransferWorker Class Reference

class CHttpTransferWorker : public CBase

Virtual base class for CHttpDowloadWorker and CHttpUploadWorker.

httptransfer.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

~CHttpTransferWorker()

~CHttpTransferWorker()[virtual]

Virtual destructor

Since
S60 v3.2

Member Functions Documentation

CancelTransfer()

voidCancelTransfer()[pure virtual]

Stops the transfer of the file

Since
S60 v3.2

ConnectL()

voidConnectL()

Connects the HTTP session

Since
S60 v3.2

ConstructL()

voidConstructL()[protected]

Second phase constructor

Since
S60 v3.2

IsWaiting()

TBool IsWaiting()const

Returns information if the worker is waiting for start

Since
S60 v3.2

Key()

TAny *Key()const

Getter for key value of the processed file.

Since
S60 v3.2

MHFRunError(TInt, RHTTPTransaction, const THTTPEvent &)

TInt MHFRunError(TIntaError,
RHTTPTransactionaTransaction,
const THTTPEvent &aEvent
)[pure virtual]

Called by framework when leave occurs in handling of transaction event.

Since
S60 v3.2

Parameters

TInt aErrorThe leave code that occured.
RHTTPTransaction aTransactionThe transaction that was being processed
const THTTPEvent & aEventThe event that was being processed

MHFRunL(RHTTPTransaction, const THTTPEvent &)

voidMHFRunL(RHTTPTransactionaTransaction,
const THTTPEvent &aEvent
)[pure virtual]

Called by framework to notify about transaction events.

Since
S60 v3.2

Parameters

RHTTPTransaction aTransactionTransaction, where the event occured.
const THTTPEvent & aEventOccured event.

Path()

const HBufC *Path()const

Getter for Path

Since
S60 v3.2

ProcessOnGoing()

TBool ProcessOnGoing()const

Returns information if the process is on-going

Since
S60 v3.2

ProcessedFile()

CHttpFile *ProcessedFile()

Returns a reference to the processed file. Returns NULL if the processed file is not set.

Since
S60 v3.2

SetFileL(CHttpFile &)

voidSetFileL(CHttpFile &aFile)

Sets file which should be transfered.

Since
S60 v3.2

Parameters

CHttpFile & aFileNew file

SetHeaderL(RHTTPHeaders, TInt, const TDesC8 &)

voidSetHeaderL(RHTTPHeadersaHeaders,
TIntaHdrField,
const TDesC8 &aHdrValue
)

Sets headers

Since
S60 v3.2

Parameters

RHTTPHeaders aHeadersHeader
TInt aHdrFieldThe field of the header
const TDesC8 & aHdrValueValue of the header

SetHeaderL(RHTTPHeaders, const TDesC8 &, const TDesC8 &)

voidSetHeaderL(RHTTPHeadersaHeaders,
const TDesC8 &aHdrField,
const TDesC8 &aHdrValue
)

Sets headers

Since
S60 v3.2

Parameters

RHTTPHeaders aHeadersHeader
const TDesC8 & aHdrFieldThe field of the header
const TDesC8 & aHdrValueValue of the header

StartProcessL()

voidStartProcessL()[virtual]

Starts the processing of a file. Asynchronous.

Since
S60 v3.2

TimerCallback()

voidTimerCallback()

Call back for the timer

Since
S60 v3.2

TrackProgress(TBool)

voidTrackProgress(TBoolaValue)

Sets tracking flag of the processed file to the value of the aValue attribute.

Since
S60 v3.2

Parameters

TBool aValueNew value

Uri()

const HBufC8 *Uri()const

Getter for Uri

Since
S60 v3.2

Member Enumerations Documentation

Enum THttpWorkerState

State machine

Since
S60 v3.2

Enumerators

EHttpWaitingForStart
EHttpGetSent
EHttpPostSent
EHttpGetResponseReceived
EHttpTransactionIdle
EHttpTransactionCanceled

Member Data Documentation

TInt iBufferSize

TInt iBufferSize[protected]

Buffer size

MHttpWorkerObserver * iCallback

MHttpWorkerObserver *iCallback[protected]

Worker observer Not own.

CUpnpConnectionManagerProxy * iConnectionManagerProxy

CUpnpConnectionManagerProxy *iConnectionManagerProxy[protected]

Connection

RFile iFile

RFile iFile[protected]

File

HBufC * iFileName

HBufC *iFileName[protected]

Filename Own.

RFs iFsSession

RFs iFsSession[protected]

Handle to the file server session

RHTTPTransaction iHttpTransaction

RHTTPTransaction iHttpTransaction[protected]

A HTTP Transaction. This encapsulates 1 HTTP request and response. A Transaction is associated with a session, and must be created using the session's CreateTransactionL method.

MHttpTransferObserver * iObserver

MHttpTransferObserver *iObserver[protected]

Pointer to the transfer observer Not own.

THttpWorkerState iProcessState

THttpWorkerState iProcessState[protected]

State machine

CHttpFile * iProcessedFile

CHttpFile *iProcessedFile[protected]

File which is being processed. Own.

RHTTPSession iSession

RHTTPSession iSession[protected]

HTTP session

RSocketServ iSocketServer

RSocketServ iSocketServer[protected]

Socket server

RStringPool iStringPool

RStringPool iStringPool[protected]

String pool

CHttpTransferTimer * iTimer

CHttpTransferTimer *iTimer[protected]

Timer. Own.