CUPnPRemoteItemResolver Class Reference

class CUPnPRemoteItemResolver : public CUPnPAbstractBrowsingSessionObserver

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

Public Member Functions
~CUPnPRemoteItemResolver()
const CUpnpItem &Item()
CUPnPRemoteItemResolver *NewL(const TDesC8 &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
voidResolveL(MUPnPItemResolverObserver &)
const CUpnpElement &Resource()
Protected Member Functions
voidBrowseResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)
Private Member Functions
CUPnPRemoteItemResolver(const TDesC8 &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
voidBrowseResponseL(const TDesC8 &)
voidCleanup()
voidComplete(TInt)
voidConstructL(const TDesC8 &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
voidProcessResultObjectL(const CUpnpObject *)
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()
CUPnPAbstractBrowsingSessionObserver::CUPnPAbstractBrowsingSessionObserver()
CUPnPAbstractBrowsingSessionObserver::CreateContainerResponse(TInt,const TDesC8 &)
CUPnPAbstractBrowsingSessionObserver::DeleteObjectResponse(TInt)
CUPnPAbstractBrowsingSessionObserver::DisableSessionObserver()
CUPnPAbstractBrowsingSessionObserver::EnableSessionObserver()
CUPnPAbstractBrowsingSessionObserver::IsSessionObserverEnabled()
CUPnPAbstractBrowsingSessionObserver::MediaServerDisappeared(TUPnPDeviceDisconnectedReason)
CUPnPAbstractBrowsingSessionObserver::ReserveLocalMSServicesCompleted(TInt)
CUPnPAbstractBrowsingSessionObserver::SearchCapabilitiesResponse(TInt,const TDesC8 &)
CUPnPAbstractBrowsingSessionObserver::SearchResponse(const TDesC8 &,TInt,TInt,TInt,const TDesC8 &)
CUPnPAbstractBrowsingSessionObserver::SetSession(MUPnPAVBrowsingSession &)
CUPnPAbstractBrowsingSessionObserver::~CUPnPAbstractBrowsingSessionObserver()
Private Member Enumerations
enumTInternalState { EStateIdle, EStateActive, EStateReady }
Private Attributes
const TDesC8 &iBrowseFilter
MUPnPAVBrowsingSession &iBrowsingSession
CUpnpItem *iFirstLevelItem
HBufC8 *iItemId
CUpnpItem *iLastLevelItem
MUPnPItemResolverObserver *iObserver
TInt iRecursionDepth
const CUpnpElement *iResource
MUPnPResourceSelector &iSelector
TInternalState iState

Constructor & Destructor Documentation

CUPnPRemoteItemResolver(const TDesC8 &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)

CUPnPRemoteItemResolver(const TDesC8 &aItemId,
MUPnPAVBrowsingSession &aHostSession,
MUPnPResourceSelector &aSelector,
const TDesC8 &aBrowseFilter
)[private]

default constructor.

Since
Series 60 3.2

Parameters

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

~CUPnPRemoteItemResolver()

~CUPnPRemoteItemResolver()[virtual]
destructor
Since
Series 60 3.2

Member Functions Documentation

BrowseResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)

voidBrowseResponse(const TDesC8 &aBrowseResponse,
TIntaError,
TIntaMatches,
TIntaTotalCount,
const TDesC8 &aUpdateId
)[protected]

Parameters

const TDesC8 & aBrowseResponse
TInt aError
TInt aMatches
TInt aTotalCount
const TDesC8 & aUpdateId

BrowseResponseL(const TDesC8 &)

voidBrowseResponseL(const TDesC8 &aBrowseResponse)[private]

Handles the parsing of the browse response.

Since
S60 3.2

Parameters

const TDesC8 & aBrowseResponse(const TDesC8&) the browse response

Cleanup()

voidCleanup()[private]

Clean up all resources

Complete(TInt)

voidComplete(TIntaError)[private]

Completes ongoing async operation

Parameters

TInt aError

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

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

2nd phase constructor.

Since
Series 60 3.2

Parameters

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

Item()

const CUpnpItem &Item()const

see UPnPItemResolver

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

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

static constructor.

Since
Series 60 3.2

Parameters

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

ProcessResultObjectL(const CUpnpObject *)

voidProcessResultObjectL(const CUpnpObject *aResult)[private]

after receiving the result object, processes it: either continues browsing recursively or calls back notifying the object is ready to be fetched.

Parameters

const CUpnpObject * aResult

ResolveL(MUPnPItemResolverObserver &)

voidResolveL(MUPnPItemResolverObserver &aObserver)

see UPnPItemResolver

Parameters

MUPnPItemResolverObserver & aObserver

Resource()

const CUpnpElement &Resource()const

see UPnPItemResolver

Member Enumerations Documentation

Enum TInternalState

internal state machinery

Enumerators

EStateIdle
EStateActive
EStateReady

Member Data Documentation

const TDesC8 & iBrowseFilter

const TDesC8 &iBrowseFilter[private]

MUPnPAVBrowsingSession & iBrowsingSession

MUPnPAVBrowsingSession &iBrowsingSession[private]

CUpnpItem * iFirstLevelItem

CUpnpItem *iFirstLevelItem[private]

HBufC8 * iItemId

HBufC8 *iItemId[private]

CUpnpItem * iLastLevelItem

CUpnpItem *iLastLevelItem[private]

MUPnPItemResolverObserver * iObserver

MUPnPItemResolverObserver *iObserver[private]

TInt iRecursionDepth

TInt iRecursionDepth[private]

const CUpnpElement * iResource

const CUpnpElement *iResource[private]

MUPnPResourceSelector & iSelector

MUPnPResourceSelector &iSelector[private]

TInternalState iState

TInternalState iState[private]