multimedia::CDownloadGateway Class Reference

class multimedia::CDownloadGateway : public MHttpDownloadMgrObserver
Implements the Gateway from which the Clients talk to the DownloadMgr. Provides functionality to the Clients to query attributes from the Browser EnhancedMediaClient.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CDownloadGateway()

CDownloadGateway ( )

Function to Create the Object.

~CDownloadGateway()

~CDownloadGateway ( )

Destructor.

Member Functions Documentation

ConnectToDownload(TInt, MDownloadGatewayObserver &, TUid)

TInt ConnectToDownload ( TInt aId,
MDownloadGatewayObserver & aObserver,
TUid aAppUid
)
Called by the Client which wants to Connect to the Download
Since
S60 v3.2

Parameters

TInt aId TransactionID for which the File has to be moved.
MDownloadGatewayObserver & aObserver Observer where the Client wants the Callbacks
TUid aAppUid UID for the App which Connects.

DeleteDownload(TInt)

TInt DeleteDownload ( TInt aId )
Cancelling a Particular Download
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Download to be deleted

DisconnectFromDownload(TInt)

TInt DisconnectFromDownload ( TInt aId )
Disconnect from the Download Here it connect to the DownloadMgr Server.
Since
S60 v3.2

Parameters

TInt aId DownloadID from which the Client wants to Disconnect.

GetCurrentSize(TInt, TUint &)

TInt GetCurrentSize ( TInt aId,
TUint & aSize
)
Gets the Current Downloaded Size of the Download
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Download which the FileSize is queried.
TUint & aSize Size of the Download returned

GetDownloadSize(TInt, TUint &)

TInt GetDownloadSize ( TInt aId,
TUint & aSize
)
Total Size of the File which is being downloaded Here it connect to the DownloadMgr Server.
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Download which the FileSize is queried.
TUint & aSize Total Size of the File being Downloaded returned

GetDownloadStatus(TInt, MProgDLSource::TDownloadStatus &)

TInt GetDownloadStatus ( TInt aTxId,
MProgDLSource::TDownloadStatus & aStatus
)
Gets the Download Status for a particular Download
Since
S60 v3.2

Parameters

TInt aTxId
MProgDLSource::TDownloadStatus & aStatus Download Status for the Download

GetLocalFileName(TInt, TDes &)

TInt GetLocalFileName ( TInt aId,
TDes & aFileName
)
Gets the Local FileName from the DownloadMgr
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Dowload to be Resumed
TDes & aFileName Gets the FileName from the DownloadMgr

GetMimeType(TInt, TDes8 &)

TInt GetMimeType ( TInt aId,
TDes8 & aMimeType
)
Queries the MimeType of the File from the DownloadMgr
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Download to be queried
TDes8 & aMimeType MimeType returned from the Browser.

HandleDMgrEventL(RHttpDownload &, THttpDownloadEvent)

void HandleDMgrEventL ( RHttpDownload & aDownload,
THttpDownloadEvent aEvent
) [virtual]
From MhttpDownloadMgrObserver. Callback from the DownloadManager notifying Client Events.
Since
S60 v3.2

Parameters

RHttpDownload & aDownload Download for which the Event is meant
THttpDownloadEvent aEvent Actual Event

Initialize(TUid)

TInt Initialize ( TUid aClientUid )
Initialize the Gateway with the Client UID. Here it connect to the DownloadMgr Server.
Since
S60 v3.2

Parameters

TUid aClientUid Client which wants to connect.

MoveFile(TInt, const TDesC &)

TInt MoveFile ( TInt aId,
const TDesC & aDestFileName
)
Calls Move on the DownloadMgr for the TransactionID
Since
S60 v3.2

Parameters

TInt aId TransactionID for which the File has to be moved.
const TDesC & aDestFileName Full Pathname where the file needs to be moved.

ResumeDownload(TInt)

TInt ResumeDownload ( TInt aId )
Resuming a Paused Download
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Download to be Resumed

SetLocalFileName(TInt, TDesC &)

TInt SetLocalFileName ( TInt aId,
TDesC & aFileName
)
Before Calling Move we need to Call this to set the Local FileName
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Dowload for setting the FileName
TDesC & aFileName Name to be Set

SetProgressiveMode(TInt, TBool)

TInt SetProgressiveMode ( TInt aId,
TBool aMode
)
Tells the Browser if the Download is being Progressively Played
Since
S60 v3.2

Parameters

TInt aId TransactionID of the Dowload to be Resumed
TBool aMode Whether the Mode is True or False.

Member Data Documentation

TBool iDMgrConnected

TBool iDMgrConnected [private]

RHttpDownload * iDownload

RHttpDownload * iDownload [private]

TInt iDownloadId

TInt iDownloadId [private]

RHttpDownloadMgrApiExt iDownloadMgr

RHttpDownloadMgrApiExt iDownloadMgr [private]

MProgDLSource::TDownloadStatus iDownloadStatus

MProgDLSource::TDownloadStatus iDownloadStatus [private]

MDownloadGatewayObserver * iObserver

MDownloadGatewayObserver * iObserver [private]

THttpDownloadEvent iPrevEvent

THttpDownloadEvent iPrevEvent [private]