CHttpTransferWorker Class Reference
class CHttpTransferWorker : public CBase
|
Virtual base class for CHttpDowloadWorker and CHttpUploadWorker.
httptransfer.lib
-
Since
-
S60 v3.2
Constructor & Destructor Documentation
~CHttpTransferWorker()
~CHttpTransferWorker
|
(
|
)
|
[virtual]
|
Member Functions Documentation
CancelTransfer()
void
|
CancelTransfer
|
(
|
)
|
[pure virtual]
|
Stops the transfer of the file
ConnectL()
Connects the
HTTP
session
ConstructL()
void
|
ConstructL
|
(
|
)
|
[protected]
|
IsWaiting()
TBool
|
IsWaiting
|
(
|
)
|
const
|
Returns information if the worker is waiting for start
Key()
Getter for key value of the processed file.
MHFRunError(TInt, RHTTPTransaction, const THTTPEvent &)
Called by framework when leave occurs in handling of transaction event.
Parameters
TInt
aError
|
The leave code that occured.
|
RHTTPTransaction
aTransaction
|
The transaction that was being processed
|
const
THTTPEvent
& aEvent
|
The event that was being processed
|
MHFRunL(RHTTPTransaction, const THTTPEvent &)
Called by framework to notify about transaction events.
Path()
const
HBufC
*
|
Path
|
(
|
)
|
const
|
ProcessOnGoing()
TBool
|
ProcessOnGoing
|
(
|
)
|
const
|
Returns information if the process is on-going
ProcessedFile()
Returns a reference to the processed file. Returns NULL if the processed file is not set.
SetFileL(CHttpFile &)
Sets file which should be transfered.
SetHeaderL(RHTTPHeaders, TInt, const TDesC8 &)
Parameters
RHTTPHeaders
aHeaders
|
Header
|
TInt
aHdrField
|
The field of the header
|
const
TDesC8
& aHdrValue
|
Value of the header
|
SetHeaderL(RHTTPHeaders, const TDesC8 &, const TDesC8 &)
Parameters
RHTTPHeaders
aHeaders
|
Header
|
const
TDesC8
& aHdrField
|
The field of the header
|
const
TDesC8
& aHdrValue
|
Value of the header
|
StartProcessL()
void
|
StartProcessL
|
(
|
)
|
[virtual]
|
Starts the processing of a file. Asynchronous.
TrackProgress(TBool)
void
|
TrackProgress
|
(
|
TBool
|
aValue
|
)
|
|
Sets tracking flag of the processed file to the value of the aValue attribute.
Member Enumerations Documentation
Enum THttpWorkerState
Enumerators
EHttpWaitingForStart
|
|
EHttpGetSent
|
|
EHttpPostSent
|
|
EHttpGetResponseReceived
|
|
EHttpTransactionIdle
|
|
EHttpTransactionCanceled
|
|
Member Data Documentation
TInt
iBufferSize
TInt
|
iBufferSize
|
[protected]
|
MHttpWorkerObserver * iCallback
CUpnpConnectionManagerProxy * iConnectionManagerProxy
CUpnpConnectionManagerProxy *
|
iConnectionManagerProxy
|
[protected]
|
HBufC * iFileName
HBufC
*
|
iFileName
|
[protected]
|
RFs
iFsSession
RFs
|
iFsSession
|
[protected]
|
Handle to the file server session
RHTTPTransaction
iHttpTransaction
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
Pointer to the transfer observer Not own.
THttpWorkerState
iProcessState
CHttpFile * iProcessedFile
File which is being processed. Own.
RSocketServ
iSocketServer
CHttpTransferTimer * iTimer
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.