API published in: S60 2nd Ed FP 3
Link against: downloadmgr.lib
Required Capabilities
None
Exceptions
The capability NetworkServices is required in: RHttpDownloadMgr::ConnectL( TUid aAppUid, MHttpDownloadMgrObserver& aObserver, TBool aMaster)
#include <downloadmgrclient.h>
Inherits MHttpDownloadMgrObserver.
Inherited by RHttpDownloadMgrApiExt.
Public Member Functions |
|
IMPORT_C | RHttpDownloadMgr () |
C++ default constructor. |
|
IMPORT_C void | ConnectL (TUid aAppUid, MHttpDownloadMgrObserver &aObserver, TBool aMaster) |
Creates a download manager session. |
|
IMPORT_C TVersion | Version () const |
Gives version information. |
|
IMPORT_C void | Close () |
Closes download manager session. |
|
IMPORT_C const CDownloadArray & | CurrentDownloads () const |
Returns a list of the current downloads. |
|
IMPORT_C RHttpDownload & | CreateDownloadL (const TDesC8 &aUrl, TBool &aResult) |
Creates a new download subsession. |
|
IMPORT_C RHttpDownload & | CreateDownloadL (const TDesC8 &aUrl) |
Creates a new download subsession. |
|
IMPORT_C RHttpDownload & | CreateClientSideDownloadL (TInt aHttpTransaction, TBool &aResult) |
Creates a new download in client side. |
|
IMPORT_C RHttpDownload & | CreateCodDownloadL (const TDesC8 &aUrl, const TDesC8 &aBuf, const TDesC8 &aMimeType, CEikonEnv *aEikEnv, TBool &aResult) |
Creates a new download subsession for COD. |
|
IMPORT_C RHttpDownload * | FindDownload (const TDesC8 &aUrl, const TDesC8 &aMsgBody) |
Finds if the download is already created. |
|
IMPORT_C TInt | PauseAll () |
Pauses all downloads. |
|
IMPORT_C TInt | StartAll () |
Resumes all downloads. |
|
IMPORT_C TInt | ResetAll () |
Resets all downloads. |
|
IMPORT_C TInt | DeleteAll () |
Deletes all downloads. |
|
IMPORT_C TInt | Disconnect () |
Disconnect the http connection and pauses all downloads. |
|
IMPORT_C TInt | GetIntAttribute (const TUint aAttribute, TInt32 &aValue) |
Gets the value for a TInt attribute. |
|
IMPORT_C TInt | GetBoolAttribute (const TUint aAttribute, TBool &aValue) |
Gets the value for a TBool attribute. |
|
IMPORT_C TInt | GetStringAttribute (const TUint aAttribute, TDes16 &aValue) |
Gets the value for a TDes16 attribute. |
|
IMPORT_C TInt | GetStringAttribute (const TUint aAttribute, TDes8 &aValue) |
Gets the value for a TDes8 attribute. |
|
IMPORT_C TInt | SetIntAttribute (const TUint aAttribute, TInt32 aValue) |
Sets the value for a TInt attribute. |
|
IMPORT_C TInt | SetBoolAttribute (const TUint aAttribute, TBool aValue) |
Sets the value for a TBool attribute. |
|
IMPORT_C TInt | SetStringAttribute (const TUint aAttribute, const TDesC16 &aValue) |
Sets the value for a TDesC attribute. |
|
IMPORT_C TInt | SetStringAttribute (const TUint aAttribute, const TDesC8 &aValue) |
Sets the value for a TDesC8 attribute. |
|
IMPORT_C TInt | SetDefaultIntAttribute (const TUint aAttribute, TInt32 aValue) |
Sets the value for the default TInt attribute. |
|
IMPORT_C TInt | SetDefaultBoolAttribute (const TUint aAttribute, TBool aValue) |
Sets the value for the default TBool attribute. |
|
IMPORT_C TInt | SetDefaultStringAttribute (const TUint aAttribute, const TDesC16 &aValue) |
Sets the value for the default TDesC attribute. |
|
IMPORT_C TInt | SetDefaultStringAttribute (const TUint aAttribute, const TDesC8 &aValue) |
Sets the value for the default TDesC8 attribute. |
|
IMPORT_C void | AddObserverL (MHttpDownloadMgrObserver &aObserver) |
Adds client to the observer list. |
|
IMPORT_C void | RemoveObserver (MHttpDownloadMgrObserver &aObserver) |
Removes client from the observer list. |
|
IMPORT_C void | SetNextUriObserver (MHttpDownloadMgrNextUriObserver *aObserver) |
Set next uri observer. |
|
Protected Member Functions |
|
void | HandleDMgrEventL (RHttpDownload &aDownload, THttpDownloadEvent aEvent) |
Indicates an event. |
|
RHttpDownload & | AddToArrayL (RHttpDownload *aElement) |
Adds the created download to the list. |
|
Friends |
|
class | RHttpDownload |
class | CDownloadMgrHandler |
class | CTransactionObserver |
class | CCodObserver |
|
C++ default constructor. |
|
Adds client to the observer list.
|
|
Adds the created download to the list. If it is already added, then it will do nothing.
|
|
Closes download manager session.
|
|
Creates a download manager session.
|
|
Creates a new download in client side.
|
|
Creates a new download subsession for COD.
|
|
Creates a new download subsession. It creates a new one even if the URL is already beeing downloaded.
|
|
Creates a new download subsession.
|
|
Returns a list of the current downloads.
|
|
Deletes all downloads.
|
|
Disconnect the http connection and pauses all downloads.
|
|
Finds if the download is already created.
|
|
Gets the value for a TBool attribute.
|
|
Gets the value for a TInt attribute.
|
|
Gets the value for a TDes8 attribute.
|
|
Gets the value for a TDes16 attribute.
|
|
Indicates an event.
Implements MHttpDownloadMgrObserver. |
|
Pauses all downloads.
|
|
Removes client from the observer list.
|
|
Resets all downloads.
|
|
Sets the value for a TBool attribute.
|
|
Sets the value for the default TBool attribute.
|
|
Sets the value for the default TInt attribute.
|
|
Sets the value for the default TDesC8 attribute.
|
|
Sets the value for the default TDesC attribute.
|
|
Sets the value for a TInt attribute.
|
|
Set next uri observer.
|
|
Sets the value for a TDesC8 attribute.
|
|
Sets the value for a TDesC attribute.
|
|
Resumes all downloads.
|
|
Gives version information.
|
|
|
|
|