RHttpDownloadMgr Class Reference
class RHttpDownloadMgr : public RSessionBase |
Creates a download manager session and performs operations on it
Public Member Functions |
---|
| RHttpDownloadMgr() |
IMPORT_C void | AddObserverL(MHttpDownloadMgrObserver &) |
IMPORT_C void | Close() |
IMPORT_C void | ConnectL(TUid, MHttpDownloadMgrObserver &, TBool) |
IMPORT_C RHttpDownload & | CreateClientSideDownloadL(TInt, TBool &) |
IMPORT_C RHttpDownload & | CreateCodDownloadL(const TDesC8 &, const TDesC8 &, const TDesC8 &, CEikonEnv *, TBool &) |
IMPORT_C RHttpDownload & | CreateDownloadL(const TDesC8 &, TBool &) |
IMPORT_C RHttpDownload & | CreateDownloadL(const TDesC8 &) |
IMPORT_C const CDownloadArray & | CurrentDownloads() |
IMPORT_C TInt | DeleteAll() |
IMPORT_C TInt | Disconnect() |
IMPORT_C RHttpDownload * | FindDownload(const TDesC8 &, const TDesC8 &) |
IMPORT_C TInt | GetBoolAttribute(const TUint, TBool &) |
IMPORT_C TInt | GetIntAttribute(const TUint, TInt32 &) |
IMPORT_C TInt | GetStringAttribute(const TUint, TDes16 &) |
IMPORT_C TInt | GetStringAttribute(const TUint, TDes8 &) |
TBool
| IsNewDownloadPossible() |
IMPORT_C TInt | PauseAll() |
IMPORT_C void | RemoveObserver(MHttpDownloadMgrObserver &) |
IMPORT_C TInt | ResetAll() |
IMPORT_C TInt | SetBoolAttribute(const TUint, TBool) |
IMPORT_C TInt | SetDefaultBoolAttribute(const TUint, TBool) |
IMPORT_C TInt | SetDefaultIntAttribute(const TUint, TInt32) |
IMPORT_C TInt | SetDefaultStringAttribute(const TUint, const TDesC16 &) |
IMPORT_C TInt | SetDefaultStringAttribute(const TUint, const TDesC8 &) |
IMPORT_C TInt | SetIntAttribute(const TUint, TInt32) |
IMPORT_C void | SetNextUriObserver(MHttpDownloadMgrNextUriObserver *) |
IMPORT_C TInt | SetStringAttribute(const TUint, const TDesC16 &) |
IMPORT_C TInt | SetStringAttribute(const TUint, const TDesC8 &) |
IMPORT_C TInt | StartAll() |
IMPORT_C TVersion | Version() |
Private Member Functions |
---|
void | AttachL(TDes8 &) |
void | BroadcastEvent(RHttpDownload &, THttpDownloadEvent) |
void | CancelSessionEventNotification() |
void | CloseDownload(RHttpDownload *) |
void | DecrementEventPriorityFlag() |
void | DoConnectL(TUid, MHttpDownloadMgrObserver &, TBool) |
RHttpDownload * | DoFindDownloadL(const TDesC8 &, const TDesC8 &) |
void | DoHandleSessionEventL(TInt, THttpDownloadEvent) |
void | DoSetDefaultAttributeL(const TUint, TInt32) |
void | DoSetDefaultAttributeL(const TUint, TBool) |
void | DoSetDefaultAttributeL(const TUint, const TDesC8 &) |
void | DoSetDefaultAttributeL(const TUint, const TDesC16 &) |
RHttpDownload & | DownloadFromHandleL(TUint) |
TInt
| EventPriorityFlag() |
TInt
| FindInArray(RHttpDownload *, TInt &) |
TInt
| FindObserver(MHttpDownloadMgrObserver &, TInt &) |
void | HandleSessionEventL(TInt, THttpDownloadEvent) |
void | IncrementEventPriorityFlag() |
void | InitializeL(TUid, MHttpDownloadMgrObserver &, TBool) |
TBool
| IsEventBroadcasting() |
MHttpDownloadMgrNextUriObserver * | NextUriObserver() |
TInt
| NumberOfClientSideDownload(TInt32 &) |
HBufC8 * | PackedDefaultAttributesLC() |
void | RemoveFromArray(RHttpDownload *) |
TInt
| SessionId() |
void | StartSessionEventNotification(const TDesC8 &, const TDesC8 &, const TDesC8 &, TRequestStatus &) |
Inherited Functions |
---|
| RHandleBase::Attributes()const |
| RHandleBase::BTraceId()const |
| RHandleBase::DoExtendedClose() |
| RHandleBase::Duplicate(const RThread &,TOwnerType) |
| RHandleBase::FullName()const |
| RHandleBase::FullName(TDes &)const |
| RHandleBase::Handle()const |
| RHandleBase::HandleInfo(THandleInfo *) |
| RHandleBase::Name()const |
| RHandleBase::NotifyDestruction(TRequestStatus &) |
| RHandleBase::Open(const TFindHandleBase &,TOwnerType) |
| RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt) |
| RHandleBase::RHandleBase() |
| RHandleBase::RHandleBase(TInt) |
| RHandleBase::SetHandle(TInt) |
| RHandleBase::SetHandleNC(TInt) |
| RSessionBase::CreateSession(RServer2,const TVersion &) |
| RSessionBase::CreateSession(RServer2,const TVersion &,TInt) |
| RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *) |
| RSessionBase::Open(RMessagePtr2,TInt,TOwnerType) |
| RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType) |
| RSessionBase::Open(TInt,TOwnerType) |
| RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType) |
| RSessionBase::Send(TInt)const |
| RSessionBase::Send(TInt,const TIpcArgs &)const |
| RSessionBase::SendReceive(TInt)const |
| RSessionBase::SendReceive(TInt,TRequestStatus &)const |
| RSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| RSessionBase::SetReturnedHandle(TInt) |
| RSessionBase::SetReturnedHandle(TInt,RHandleBase &) |
| RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &) |
| RSessionBase::ShareAuto() |
| RSessionBase::ShareProtected() |
Constructor & Destructor Documentation
RHttpDownloadMgr()
IMPORT_C | RHttpDownloadMgr | ( | ) | |
Member Functions Documentation
AddObserverL(MHttpDownloadMgrObserver &)
Adds client to the observer list.
AddToArrayL(RHttpDownload *)
Adds the created download to the list. If it is already added, then it will do nothing.
AttachL(TDes8 &)
void | AttachL | ( | TDes8 & | aBuf | ) | [private] |
Attach client to the session.
Parameters
TDes8 & aBuf | Buffer to the subsession IDs. |
BroadcastEvent(RHttpDownload &, THttpDownloadEvent)
CancelSessionEventNotification()
void | CancelSessionEventNotification | ( | ) | [private] |
Cancels session's event notification.
Close()
Closes download manager session.
CloseDownload(RHttpDownload *)
Close a download subsession.
ConnectL(TUid, MHttpDownloadMgrObserver &, TBool)
Creates a download manager session.
Parameters
TUid aAppUid | Client application's UID. |
MHttpDownloadMgrObserver & aObserver | Observer |
TBool aMaster | Indicates whether (if ETrue) this instance inherints all downloads of other instances. (stand-alone app flag). |
CreateClientSideDownloadL(TInt, TBool &)
Creates a new download in client side.
Parameters
TInt aHttpTransaction | http transaction. |
TBool & aResult | The result is true if the download is created. If the URL is already being downloaded the seult is false. |
CreateCodDownloadL(const TDesC8 &, const TDesC8 &, const TDesC8 &, CEikonEnv *, TBool &)
Creates a new download subsession for COD.
Parameters
const TDesC8 & aUrl | The url from the COD is downloaded. |
const TDesC8 & aBuf | The COD descriptor. |
const TDesC8 & aMimeType | The mimetype. |
CEikonEnv * aEikEnv | Eikon environment or NULL. Can be NULL if download does not require UI functionality. |
TBool & aResult | The result is true if the download is created. If the URL is already being downloaded the seult is false. |
CreateDownloadL(const TDesC8 &, TBool &)
Creates a new download subsession.
Parameters
const TDesC8 & aUrl | The url to be downloaded. |
TBool & aResult | The result is true if the download is created. If the URL is already being downloaded the seult is false. |
CreateDownloadL(const TDesC8 &)
Creates a new download subsession. It creates a new one even if the URL is already beeing downloaded.
Parameters
const TDesC8 & aUrl | The url to be downloaded. If the URL is already being downloaded the seult is false. |
CurrentDownloads()
Returns a list of the current downloads.
DecrementEventPriorityFlag()
void | DecrementEventPriorityFlag | ( | ) | [private] |
Decrements the event priority flag
Disconnect()
IMPORT_C TInt | Disconnect | ( | ) | |
Disconnect the http connection and pauses all downloads.
DoConnectL(TUid, MHttpDownloadMgrObserver &, TBool)
Creates a download manager session.
Parameters
TUid aAppUid | Client application's UID. |
MHttpDownloadMgrObserver & aObserver | Observer |
TBool aMaster | Indicates whether (if ETrue) this instance inherints all downloads of other instances. (stand-alone app flag). |
DoFindDownloadL(const TDesC8 &, const TDesC8 &)
Leave version of FindDownload
DoHandleSessionEventL(TInt, THttpDownloadEvent)
Do-Indicates the session's event.
DoSetDefaultAttributeL(const TUint, TInt32)
void | DoSetDefaultAttributeL | ( | const TUint | aAttribute, |
| TInt32 | aValue |
| ) | [private] |
Sets the default value for the TInt32 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TInt32 aValue | The value to be set. |
DoSetDefaultAttributeL(const TUint, TBool)
void | DoSetDefaultAttributeL | ( | const TUint | aAttribute, |
| TBool | aValue |
| ) | [private] |
Sets the default value for the TBool attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TBool aValue | The value to be set. |
DoSetDefaultAttributeL(const TUint, const TDesC8 &)
void | DoSetDefaultAttributeL | ( | const TUint | aAttribute, |
| const TDesC8 & | aValue |
| ) | [private] |
Sets the default value for the TDesC8 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TDesC8 & aValue | The value to be set. |
DoSetDefaultAttributeL(const TUint, const TDesC16 &)
void | DoSetDefaultAttributeL | ( | const TUint | aAttribute, |
| const TDesC16 & | aValue |
| ) | [private] |
Sets the default value for the TDesC16 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TDesC16 & aValue | The value to be set. |
DownloadFromHandleL(TUint)
Returns a reference to the download identified by a handle.
Parameters
TUint aHandle | Handle identifier. |
EventPriorityFlag()
TInt
| EventPriorityFlag | ( | ) | const [private] |
Broadcast deleting event.
FindDownload(const TDesC8 &, const TDesC8 &)
Finds if the download is already created
- Since
- 2.8
Parameters
const TDesC8 & aUrl | given URL |
const TDesC8 & aMsgBody | Message body from post operation |
FindInArray(RHttpDownload *, TInt &)
Finds the download in the list.
Parameters
RHttpDownload * aElement | Download subsession. |
TInt & aIndex | Index of the element found. |
FindObserver(MHttpDownloadMgrObserver &, TInt &)
Finds observer based on index.
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. |
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. |
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. |
HandleDMgrEventL(RHttpDownload &, THttpDownloadEvent)
HandleSessionEventL(TInt, THttpDownloadEvent)
Indicates the session's event.
IncrementEventPriorityFlag()
void | IncrementEventPriorityFlag | ( | ) | [private] |
Increments the event priority flas
InitializeL(TUid, MHttpDownloadMgrObserver &, TBool)
Initializes the download manager session.
Parameters
TUid aAppUid | Client app's UID. |
MHttpDownloadMgrObserver & aObserver | Observer to add to the observer list. |
TBool aMaster | Indicates whether (if ETrue) this instance inherints all downloads of other instances. (stand-alone app flag). |
IsEventBroadcasting()
TBool
| IsEventBroadcasting | ( | ) | [private] |
Tells that event is being broadcasted.
IsNewDownloadPossible()
TBool
| IsNewDownloadPossible | ( | ) | |
Checks for possibility of a new donload
NextUriObserver()
Returns the next uri observer from the extension calss.
NumberOfClientSideDownload(TInt32 &)
TInt
| NumberOfClientSideDownload | ( | TInt32 & | aValue | ) | [private] |
Gets the number of client side download.
Parameters
TInt32 & aValue | Num of client side download |
PackedDefaultAttributesLC()
HBufC8 * | PackedDefaultAttributesLC | ( | ) | [private] |
Packes the default values of the attributes.
RemoveFromArray(RHttpDownload *)
Removes the download from the list.
RemoveObserver(MHttpDownloadMgrObserver &)
Removes client from the observer list.
SessionId()
TInt
| SessionId | ( | ) | const [private] |
SetBoolAttribute(const TUint, TBool)
Sets the value for a TBool attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TBool aValue | The value to be set. |
SetDefaultBoolAttribute(const TUint, TBool)
IMPORT_C TInt | SetDefaultBoolAttribute | ( | const TUint | aAttribute, |
| TBool | aValue |
| ) | |
Sets the value for the default TBool attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TBool aValue | The value to be set. |
SetDefaultIntAttribute(const TUint, TInt32)
Sets the value for the default TInt attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
TInt32 aValue | The value to be set. |
SetDefaultStringAttribute(const TUint, const TDesC16 &)
IMPORT_C TInt | SetDefaultStringAttribute | ( | const TUint | aAttribute, |
| const TDesC16 & | aValue |
| ) | |
Sets the value for the default TDesC attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TDesC16 & aValue | The value to be set. |
SetDefaultStringAttribute(const TUint, const TDesC8 &)
IMPORT_C TInt | SetDefaultStringAttribute | ( | const TUint | aAttribute, |
| const TDesC8 & | aValue |
| ) | |
Sets the value for the default TDesC8 attribute.
Parameters
const TUint aAttribute | Identifies the attribute to be set. |
const TDesC8 & aValue | The value to be set. |
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. |
SetNextUriObserver(MHttpDownloadMgrNextUriObserver *)
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. |
StartSessionEventNotification(const TDesC8 &, const TDesC8 &, const TDesC8 &, TRequestStatus &)
Start session's event notification.
Version()
Gives version information.
Member Data Documentation
CArrayPtrFlat< CDefaultAttrib > * iDefaultAttribs
CDownloadArray * iDownloadArray
CRHttpDownloadMgrExtension * iExtension
CRHttpDownloadMgrExtension * | iExtension | [private] |
CDownloadMgrHandler * iManagerHandler
CDownloadMgrObserver * iObservers
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.