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 &)
void ResolveL ( MUPnPItemResolverObserver &)
const CUpnpElement & Resource ()
Protected Member Functions
void BrowseResponse (const TDesC8 &, TInt , TInt , TInt , const TDesC8 &)
Private Member Functions
CUPnPRemoteItemResolver (const TDesC8 &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
void BrowseResponseL (const TDesC8 &)
void Cleanup ()
void Complete ( TInt )
void ConstructL (const TDesC8 &, MUPnPAVBrowsingSession &, MUPnPResourceSelector &, const TDesC8 &)
void ProcessResultObjectL (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
enum TInternalState { 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 &)

void BrowseResponse ( const TDesC8 & aBrowseResponse,
TInt aError,
TInt aMatches,
TInt aTotalCount,
const TDesC8 & aUpdateId
) [protected]

Parameters

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

BrowseResponseL(const TDesC8 &)

void BrowseResponseL ( 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()

void Cleanup ( ) [private]

Clean up all resources

Complete(TInt)

void Complete ( TInt aError ) [private]

Completes ongoing async operation

Parameters

TInt aError

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

void ConstructL ( 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 *)

void ProcessResultObjectL ( 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 &)

void ResolveL ( 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]