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
-
multimedia::CDownloadGateway
Public Member Functions
|
|
CDownloadGateway
()
|
|
~CDownloadGateway
()
|
TInt
|
ConnectToDownload
(
TInt
,
MDownloadGatewayObserver
&,
TUid
)
|
TInt
|
DeleteDownload
(
TInt
)
|
TInt
|
DisconnectFromDownload
(
TInt
)
|
TInt
|
GetCurrentSize
(
TInt
,
TUint
&)
|
TInt
|
GetDownloadSize
(
TInt
,
TUint
&)
|
TInt
|
GetDownloadStatus
(
TInt
,
MProgDLSource::TDownloadStatus
&)
|
TInt
|
GetLocalFileName
(
TInt
,
TDes
&)
|
TInt
|
GetMimeType
(
TInt
,
TDes8
&)
|
void
|
HandleDMgrEventL
(RHttpDownload &, THttpDownloadEvent)
|
TInt
|
Initialize
(
TUid
)
|
TInt
|
MoveFile
(
TInt
, const
TDesC
&)
|
TInt
|
ResumeDownload
(
TInt
)
|
TInt
|
SetLocalFileName
(
TInt
,
TDesC
&)
|
TInt
|
SetProgressiveMode
(
TInt
,
TBool
)
|
Constructor & Destructor Documentation
CDownloadGateway()
Function to Create the Object.
Member Functions Documentation
ConnectToDownload(TInt, MDownloadGatewayObserver &, TUid)
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)
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 &)
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 &)
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 &)
Gets the Download Status for a particular Download
-
Since
-
S60 v3.2
GetLocalFileName(TInt, TDes &)
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 &)
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)
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 &)
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)
Resuming a Paused Download
-
Since
-
S60 v3.2
Parameters
TInt
aId
|
TransactionID of the Download to be Resumed
|
SetLocalFileName(TInt, TDesC &)
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)
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
MProgDLSource::TDownloadStatus
iDownloadStatus
MDownloadGatewayObserver * iObserver
THttpDownloadEvent iPrevEvent
THttpDownloadEvent
|
iPrevEvent
|
[private]
|
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.