CUPnPAbstractBrowsingSessionObserver Class Reference

class CUPnPAbstractBrowsingSessionObserver : public CBase

An abstract class for implementing a browsing session observer. This class is purposed as a base class for imnplementing a browsing observer. There are 2 main use cases: 1. reducing implementation code so that the actual observer will only need to write the observer methods that are really used. 2. implementing an observer proxy that will attach itself to a session and just handle some of the callbacks and forward a majority of the callbacks the original session observer.

upnpavcontrollerhelper.lib
Since
S60 3.2

Inherits from

  • CUPnPAbstractBrowsingSessionObserver

Constructor & Destructor Documentation

CUPnPAbstractBrowsingSessionObserver()

IMPORT_C CUPnPAbstractBrowsingSessionObserver ( )

default constructor.

~CUPnPAbstractBrowsingSessionObserver()

IMPORT_C ~CUPnPAbstractBrowsingSessionObserver ( ) [virtual]

destructor

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
)

Parameters

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

CreateContainerResponse(TInt, const TDesC8 &)

void CreateContainerResponse ( TInt aError,
const TDesC8 & aObjectId
)

Parameters

TInt aError
const TDesC8 & aObjectId

DeleteObjectResponse(TInt)

void DeleteObjectResponse ( TInt aError )

Parameters

TInt aError

DisableSessionObserver()

IMPORT_C void DisableSessionObserver ( )

Disables receiving session callbacks. The observer interface is deregistered, and if before observer registration there was an original observer interface (proxy mode) the original observer is restored.

Since
S60 3.2

EnableSessionObserver()

IMPORT_C void EnableSessionObserver ( )

Enables receiving callbacks. When enabled, the abstract observer registers to the given session and thus starts receiving callbacks. Note that only those callbacks that are overwritten in the derived class will actually provide some value. Other will be either processed in an empty method, or forwarded to the observer that previously was registered as an observer (proxy mode)

Since
S60 3.2

IsSessionObserverEnabled()

IMPORT_C TBool IsSessionObserverEnabled ( )

Returns true if the observer is active (registered for events)

Since
S60 3.2

MediaServerDisappeared(TUPnPDeviceDisconnectedReason)

void MediaServerDisappeared ( TUPnPDeviceDisconnectedReason aReason )

Parameters

TUPnPDeviceDisconnectedReason aReason

ReserveLocalMSServicesCompleted(TInt)

void ReserveLocalMSServicesCompleted ( TInt aError )

Parameters

TInt aError

SearchCapabilitiesResponse(TInt, const TDesC8 &)

void SearchCapabilitiesResponse ( TInt aError,
const TDesC8 & aSearchCapabilities
)

Parameters

TInt aError
const TDesC8 & aSearchCapabilities

SearchResponse(const TDesC8 &, TInt, TInt, TInt, const TDesC8 &)

void SearchResponse ( const TDesC8 & aSearchResponse,
TInt aError,
TInt aMatches,
TInt aTotalCount,
const TDesC8 & aUpdateId
)

Parameters

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

SetSession(MUPnPAVBrowsingSession &)

IMPORT_C void SetSession ( MUPnPAVBrowsingSession & aHostSession )

Sets the host session for the observer. This is the session where the observer will register for callbacks. If the session already has an observer, it will become the proxy observer. The default implementatin for all observer methods is to forward the method to the observer, if it exists.

Since
S60 3.2

Parameters

MUPnPAVBrowsingSession & aHostSession

Member Data Documentation

MUPnPAVBrowsingSession * iObservedSession

MUPnPAVBrowsingSession * iObservedSession [private]

TBool iObserverEnabled

TBool iObserverEnabled [private]

MUPnPAVBrowsingSessionObserver * iProxyObserver

MUPnPAVBrowsingSessionObserver * iProxyObserver [private]