RHttpDownload Class Reference
class RHttpDownload : public RSubSessionBase |
Creates a download manager subsession and performs operations on it
Public Member Functions |
---|
void | Close() |
IMPORT_C TInt | Delete() |
IMPORT_C TInt | GetBoolAttribute(const TUint, TBool &) |
IMPORT_C TInt | GetBoolAttribute(const TUint, const TInt32 &, TBool &) |
IMPORT_C TInt | GetFileHandleAttribute(RFile &) |
IMPORT_C TInt | GetIntAttribute(const TUint, TInt32 &) |
IMPORT_C TInt | GetIntAttribute(const TUint, const TInt32 &, TInt32 &) |
TInt
| GetProductDownloadedSize() |
IMPORT_C TInt | GetStringAttribute(const TUint, TDes16 &) |
IMPORT_C TInt | GetStringAttribute(const TUint, TDes8 &) |
IMPORT_C TInt | GetStringAttribute(const TUint, const TInt32 &, TDes16 &) |
IMPORT_C TInt | GetStringAttribute(const TUint, const TInt32 &, TDes8 &) |
TBool
| IsClosed() |
IMPORT_C TInt | Move() |
IMPORT_C TInt | Pause() |
IMPORT_C TInt | Reset() |
void | ResumeCodDownloadL() |
IMPORT_C TInt | SetBoolAttribute(const TUint, TBool) |
IMPORT_C TInt | SetDownloadDataAttribute(const TDesC8 &) |
IMPORT_C TInt | SetFileHandleAttribute(RFile &) |
IMPORT_C TInt | SetIntAttribute(const TUint, TInt32) |
IMPORT_C TInt | SetStringAttribute(const TUint, const TDesC16 &) |
IMPORT_C TInt | SetStringAttribute(const TUint, const TDesC8 &) |
IMPORT_C TInt | SetStringAttribute(const TUint, const TInt32 &, const TDesC16 &) |
IMPORT_C TInt | SetTrackDataAttribute(const TInt, const TDesC8 &) |
IMPORT_C TInt | Start() |
Inherited Functions |
---|
| RSubSessionBase::CloseSubSession(TInt) |
| RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &) |
| RSubSessionBase::CreateSubSession(const RSessionBase &,TInt) |
| RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &) |
| RSubSessionBase::RSubSessionBase() |
| RSubSessionBase::Send(TInt)const |
| RSubSessionBase::Send(TInt,const TIpcArgs &)const |
| RSubSessionBase::SendReceive(TInt)const |
| RSubSessionBase::SendReceive(TInt,TRequestStatus &)const |
| RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| RSubSessionBase::Session()const |
| RSubSessionBase::SubSessionHandle()const |
Constructor & Destructor Documentation
RHttpDownload(RHttpDownloadMgr *)
Member Functions Documentation
ActiveMoIndex()
TInt32
| ActiveMoIndex | ( | ) | const [private] |
Sets COD in progress flag.
AttachL(TInt)
void | AttachL | ( | TInt | aHandle | ) | [private] |
Attaches subsession to the server subsession by handle.
Parameters
TInt aHandle | A handle which identifies the server subsession. |
AttachToDownloadL(const TInt32)
void | AttachToDownloadL | ( | const TInt32 | aDlId | ) | [private] |
Attach to an existing download.
Parameters
const TInt32 aDlId | Download ID. |
BufferAttributesL()
void | BufferAttributesL | ( | ) | [private] |
Buffers attributes which need when a client deletes download.
CancelEventNotification()
void | CancelEventNotification | ( | ) | [private] |
Cancels event notification.
CheckContentTypeAndCreateCodDownloadL()
TBool
| CheckContentTypeAndCreateCodDownloadL | ( | ) | [private] |
Checks the mime type of a completed content. Creates a cod download if it is considered as OMA DD. The return value is the result of the checking. Leaves in case of failure.
Close()
Closes download subsession.
CloseSubSession()
void | CloseSubSession | ( | ) | [private] |
Closes download subsession. This is called internally to close the sub session when the download is completed. Only the subsession will be closed but retains the RHttpDownload object.
CreateL(const TDesC8 &, const TPtr8)
void | CreateL | ( | const TDesC8 & | aUrl, |
| const TPtr8 | aPackedAttribs |
| ) | [private] |
Creates download subsession.
Parameters
const TDesC8 & aUrl | The url to be downloaded. |
const TPtr8 aPackedAttribs | |
DeleteTransaction()
void | DeleteTransaction | ( | ) | [private] |
DoStartCodL()
void | DoStartCodL | ( | ) | [private] |
EventPriorityFlag()
TInt
| EventPriorityFlag | ( | ) | const [private] |
Returns the the event priority flag from session
GetBoolAttribute(const TUint, TBool &)
Gets the value for a TBool attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
TBool & aValue | On completion, contains the requested TBool attribute. |
GetBoolAttribute(const TUint, const TInt32 &, TBool &)
Gets the value for a TBool attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
const TInt32 & aMoIndex | Identifies the media object index. |
TBool & aValue | On completion, contains the requested TBool attribute. |
GetFileHandleAttribute(RFile &)
IMPORT_C TInt | GetFileHandleAttribute | ( | RFile & | aFile | ) | |
Gets the download's destination file's handle.
Parameters
RFile & aFile | RFile that adopts file handle from download. |
GetIntAttribute(const TUint, TInt32 &)
Gets the value for a TInt attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
TInt32 & aValue | On completion, contains the requested TInt attribute. |
GetIntAttribute(const TUint, const TInt32 &, TInt32 &)
Gets the value for a TInt attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
const TInt32 & aMoIndex | Identifies the media object index. |
TInt32 & aValue | On completion, contains the requested TInt attribute. |
GetProductDownloadedSize()
TInt
| GetProductDownloadedSize | ( | ) | |
Get Downloaded Size of product.
GetStringAttribute(const TUint, TDes16 &)
Gets the value for a TDes16 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
TDes16 & aValue | On completion, contains the requested TDes16 attribute. |
GetStringAttribute(const TUint, TDes8 &)
IMPORT_C TInt | GetStringAttribute | ( | const TUint | aAttribute, |
| TDes8 & | aValue |
| ) | |
Gets the value for a TDes8 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
TDes8 & aValue | On completion, contains the requested TDes8 attribute. |
GetStringAttribute(const TUint, const TInt32 &, TDes16 &)
Gets the value for a TDes16 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
const TInt32 & aMoIndex | Identifies the media object index. |
TDes16 & aValue | On completion, contains the requested TDes16 attribute. |
GetStringAttribute(const TUint, const TInt32 &, TDes8 &)
Gets the value for a TDes8 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be retrived. |
const TInt32 & aMoIndex | Identifies the media object index. |
TDes8 & aValue | On completion, contains the requested TDes8 attribute. |
InitCodDownloadL(const TDesC8 &, const TDesC8 &, CEikonEnv *)
Initialize OMA DD download.
Parameters
const TDesC8 & aBuf | The descriptor. |
const TDesC8 & aMimeType | |
CEikonEnv * aEikEnv | Eikon environment or NULL. Can be NULL if download does not require UI functionality. If download needs UI but NULL is passed here, the download fails with EFailedPermanent KErrCancel. |
InitPausedCodDownloadL(const TUid)
void | InitPausedCodDownloadL | ( | const TUid | aAppUid | ) | [private] |
Initialize paused OMA DD download.
Parameters
const TUid aAppUid | App UID of the client. |
IsClientSideDownload()
TBool
| IsClientSideDownload | ( | ) | const [private] |
True if it is a client side download
IsClosed()
Indicates whether the download is closed.
IsDeleteCodWhenDone()
TBool
| IsDeleteCodWhenDone | ( | ) | const [private] |
ETrue if download should be deleted on COD completion.
IsDownload(TInt)
Returns true if the handle is equals with the stored one.
IsDownloadL(const TUriParser8 &, const TDesC8 &)
Returns true if the params belongs to this download.
- Since
- 2.8
Parameters
const TUriParser8 & aParsedReqUrl | given URL |
const TDesC8 & aMsgBody | Message body from post operation |
IsToBeDeleted()
TBool
| IsToBeDeleted | ( | ) | [private] |
Tells that download should be deleted.
Move()
Moves downloaded content to the previously specified location
SaveDownloadInfoL()
void | SaveDownloadInfoL | ( | ) | [private] |
This is called internally to save the downloaded subsession before closing the subsession
SetBoolAttribute(const TUint, TBool)
Sets the value for a TDesC attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TBool aValue | The value to be set. |
SetCodInProgress(TCodProgressState)
Sets COD in progress flag.
SetDefaultAttributesL(const TDesC8 &)
void | SetDefaultAttributesL | ( | const TDesC8 & | aPackedAttribs | ) | [private] |
Sets the default value for the attributes.
SetDownloadDataAttribute(const TDesC8 &)
IMPORT_C TInt | SetDownloadDataAttribute | ( | const TDesC8 & | aValue | ) | |
Sets the download data (media information).
Parameters
const TDesC8 & aValue | The value to be set. |
SetEventType(THttpDownloadState)
SetFileHandleAttribute(RFile &)
IMPORT_C TInt | SetFileHandleAttribute | ( | RFile & | aFile | ) | |
Sets the download's destination file handle.
Parameters
RFile & aFile | RFile to be transfered to server. |
SetHttpTransactionL(TInt)
void | SetHttpTransactionL | ( | TInt | aHttpTransaction | ) | [private] |
SetIntAttribute(const TUint, TInt32)
Sets the value for a TInt attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TInt32 aValue | The value to be set. |
SetOnError(TInt, THttpDownloadMgrError)
SetStringAttribute(const TUint, const TDesC16 &)
Sets the value for a TDesC attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TDesC16 & aValue | The value to be set. |
SetStringAttribute(const TUint, const TDesC8 &)
IMPORT_C TInt | SetStringAttribute | ( | const TUint | aAttribute, |
| const TDesC8 & | aValue |
| ) | |
Sets the value for a TDesC8 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TDesC8 & aValue | The value to be set. |
SetStringAttribute(const TUint, const TInt32 &, const TDesC16 &)
Sets the value for a TDesC attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TInt32 & aMoIndex | Identifies the media object index. |
const TDesC16 & aValue | The value to be set. |
SetTrackDataAttribute(const TInt, const TDesC8 &)
IMPORT_C TInt | SetTrackDataAttribute | ( | const TInt | aIndex, |
| const TDesC8 & | aValue |
| ) | |
Sets the download data (media information).
Parameters
const TInt aIndex | |
const TDesC8 & aValue | The value to be set. |
StartEventNotification(TDes8 &, TDes8 &, TDes8 &, TRequestStatus &)
Start event notification.
Parameters
TDes8 & aDownloadState | State. |
TDes8 & aProgressState | Progress. |
TDes8 & aEventAttrib | Packed attribs |
TRequestStatus & aStatus | Handler's request status. |
StopWaitingAS()
void | StopWaitingAS | ( | ) | [private] |
To stop waiting loop of AS
UnpackEventAttribL(const TDesC8 &)
void | UnpackEventAttribL | ( | const TDesC8 & | aPack | ) | [private] |
Unpack event attribute package.
Parameters
const TDesC8 & aPack | Packed attributes. |
Member Enumerations Documentation
Enum TCodProgressState
Cod download progress states
Enumerators
ENotActive | |
EPaused | |
EInProgress | |
Member Data Documentation
TBool
iClientSideDownload
TBool
| iClientSideDownload | [private] |
TBool
iClosedSubSession
TBool
| iClosedSubSession | [private] |
CCodDownload * iCodDownload
CCodObserver * iCodObserver
CCodObserver * | iCodObserver | [private] |
CRHttpDlExtension * iDlExtension
CRHttpDlExtension * | iDlExtension | [private] |
CDownloadMgrHandler * iDownloadHandler
RHttpDownloadMgr * iDownloadMgr
CRHttpDownloadExtension * iExtension
CRHttpDownloadExtension * | iExtension | [private] |
RHTTPTransaction * iHttpTransaction
CTransactionObserver * iTransactionObserver
CTransactionObserver * | iTransactionObserver | [private] |
CActiveSchedulerWait * iWait
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.