CUPnPDownloadItemResolver Class Reference

class CUPnPDownloadItemResolver : public CBase

Resolves remote upnp items from a plain item id. This resolving is done by executing a upnp metadata browse, or possibly several ones of those.

upnpavcontrollerhelper.lib
Since
S60 3.2

Inherits from

  • CUPnPDownloadItemResolver
Public Member Functions
~CUPnPDownloadItemResolver()
IMPORT_C voidDeleteTempDownloadFilesL()
const CUpnpItem &Item()
CUPnPDownloadItemResolver *NewL(const TDesC8 &, MUPnPAVController &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
voidResolveL(MUPnPItemResolverObserver &)
const CUpnpElement &Resource()
Protected Member Functions
voidMediaServerDisappeared(TUPnPDeviceDisconnectedReason)
voidResolveComplete(const MUPnPItemResolver &, TInt)
voidTransferCompleted(TInt, TInt, const TDesC &)
voidTransferProgress(TInt, TInt, TInt)
voidTransferStarted(TInt, TInt)
Private Member Functions
CUPnPDownloadItemResolver(const TDesC8 &, MUPnPAVController &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
voidCleanup()
voidComplete(TInt)
voidConstructL(const TDesC8 &, MUPnPAVController &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
TInt CreateRFile(const TDesC &)
HBufC *CreateTmpFileNameL()
HBufC *GetSelectedDownloadLocationL()
voidInitiateDownloadL()
voidIsLocallySupportedL(const CUpnpElement &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumTInternalState { EStateIdle, EStateResolving, EStateDownloading, EStateReady }
Private Attributes
MUPnPAVController &iAvController
MUPnPFileDownloadSession *iDownloadSession
RFile iFile
RFs iFsSession
HBufC *iLocalFile
MUPnPItemResolverObserver *iObserver
CUpnpAVDevice *iRemoteDevice
CUPnPRemoteItemResolver *iRemoteResolver
MUPnPResourceSelector &iSelector
CUPnPSettingsEngine *iSettingsEngine
TInternalState iState

Constructor & Destructor Documentation

CUPnPDownloadItemResolver(const TDesC8 &, MUPnPAVController &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)

CUPnPDownloadItemResolver(const TDesC8 &aItemId,
MUPnPAVController &aAvController,
MUPnPAVBrowsingSession &aHostSession,
MUPnPResourceSelector &aSelector,
const TDesC8 &aBrowseFilter
)[private]

default constructor

Since
Series 60 3.2

Parameters

const TDesC8 & aItemId
MUPnPAVController & aAvController
MUPnPAVBrowsingSession & aHostSession
MUPnPResourceSelector & aSelector
const TDesC8 & aBrowseFilter

~CUPnPDownloadItemResolver()

~CUPnPDownloadItemResolver()[virtual]

destructor

Member Functions Documentation

Cleanup()

voidCleanup()[private]

Clean up all resources

Complete(TInt)

voidComplete(TIntaError)[private]

Completes ongoing async operation

Parameters

TInt aError

ConstructL(const TDesC8 &, MUPnPAVController &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)

voidConstructL(const TDesC8 &aItemId,
MUPnPAVController &aAvController,
MUPnPAVBrowsingSession &aHostSession,
MUPnPResourceSelector &aSelector,
const TDesC8 &aBrowseFilter
)[private]

2nd phase constructor

Since
Series 60 3.2

Parameters

const TDesC8 & aItemId
MUPnPAVController & aAvController
MUPnPAVBrowsingSession & aHostSession
MUPnPResourceSelector & aSelector
const TDesC8 & aBrowseFilter

CreateRFile(const TDesC &)

TInt CreateRFile(const TDesC &aFilePath)[private]

Creates RFile

Parameters

const TDesC & aFilePath

CreateTmpFileNameL()

HBufC *CreateTmpFileNameL()[private]

Create temporary file name for file to be download. Format is upnpfwtemp<item_id><file extension>=""> The following characters are replaced with an underscore: >, <, ", \, /, *, |, * : and ?

DeleteTempDownloadFilesL()

IMPORT_C voidDeleteTempDownloadFilesL()[static]

Delete upnp genereated temporary files from download locations Leave in case of fatal errors

Since
S60 3.2

GetSelectedDownloadLocationL()

HBufC *GetSelectedDownloadLocationL()[private]

Get selected download location from settings engine.

InitiateDownloadL()

voidInitiateDownloadL()[private]

Starts download when the remote item itself has been resolved using the remote resolver

IsLocallySupportedL(const CUpnpElement &)

voidIsLocallySupportedL(const CUpnpElement &aRes)[private]
Check if the audio is DLNA supported in remote to local playback
Since
Series 60 3.1

Parameters

const CUpnpElement & aRes

Item()

const CUpnpItem &Item()const

see UPnPItemResolver

MediaServerDisappeared(TUPnPDeviceDisconnectedReason)

voidMediaServerDisappeared(TUPnPDeviceDisconnectedReasonaReason)[protected]

Parameters

TUPnPDeviceDisconnectedReason aReason

NewL(const TDesC8 &, MUPnPAVController &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)

CUPnPDownloadItemResolver *NewL(const TDesC8 &aItemId,
MUPnPAVController &aAvController,
MUPnPAVBrowsingSession &aHostSession,
MUPnPResourceSelector &aSelector,
const TDesC8 &aBrowseFilter
)[static]

static constructor

Since
Series 60 3.2

Parameters

const TDesC8 & aItemId
MUPnPAVController & aAvController
MUPnPAVBrowsingSession & aHostSession
MUPnPResourceSelector & aSelector
const TDesC8 & aBrowseFilter

ResolveComplete(const MUPnPItemResolver &, TInt)

voidResolveComplete(const MUPnPItemResolver &aResolver,
TIntaError
)[protected]

Parameters

const MUPnPItemResolver & aResolver
TInt aError

ResolveL(MUPnPItemResolverObserver &)

voidResolveL(MUPnPItemResolverObserver &aObserver)

see UPnPItemResolver

Parameters

MUPnPItemResolverObserver & aObserver

Resource()

const CUpnpElement &Resource()const

see UPnPItemResolver

TransferCompleted(TInt, TInt, const TDesC &)

voidTransferCompleted(TIntaKey,
TIntaStatus,
const TDesC &aFilePath
)[protected]

Parameters

TInt aKey
TInt aStatus
const TDesC & aFilePath

TransferProgress(TInt, TInt, TInt)

voidTransferProgress(TIntaKey,
TIntaBytes,
TIntaTotalBytes
)[protected]

Parameters

TInt aKey
TInt aBytes
TInt aTotalBytes

TransferStarted(TInt, TInt)

voidTransferStarted(TIntaKey,
TIntaStatus
)[protected]

Parameters

TInt aKey
TInt aStatus

Member Enumerations Documentation

Enum TInternalState

internal state machinery

Enumerators

EStateIdle
EStateResolving
EStateDownloading
EStateReady

Member Data Documentation

MUPnPAVController & iAvController

MUPnPAVController &iAvController[private]

MUPnPFileDownloadSession * iDownloadSession

MUPnPFileDownloadSession *iDownloadSession[private]

RFile iFile

RFile iFile[private]

RFs iFsSession

RFs iFsSession[private]

HBufC * iLocalFile

HBufC *iLocalFile[private]

MUPnPItemResolverObserver * iObserver

MUPnPItemResolverObserver *iObserver[private]

CUpnpAVDevice * iRemoteDevice

CUpnpAVDevice *iRemoteDevice[private]

CUPnPRemoteItemResolver * iRemoteResolver

CUPnPRemoteItemResolver *iRemoteResolver[private]

MUPnPResourceSelector & iSelector

MUPnPResourceSelector &iSelector[private]

CUPnPSettingsEngine * iSettingsEngine

CUPnPSettingsEngine *iSettingsEngine[private]

TInternalState iState

TInternalState iState[private]