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
Public Member Functions
|
|
CUPnPAbstractBrowsingSessionObserver
()
|
|
~CUPnPAbstractBrowsingSessionObserver
()
|
void
|
BrowseResponse
(const
TDesC8
&,
TInt
,
TInt
,
TInt
, const
TDesC8
&)
|
void
|
CreateContainerResponse
(
TInt
, const
TDesC8
&)
|
void
|
DeleteObjectResponse
(
TInt
)
|
IMPORT_C void
|
DisableSessionObserver
()
|
IMPORT_C void
|
EnableSessionObserver
()
|
IMPORT_C
TBool
|
IsSessionObserverEnabled
()
|
void
|
MediaServerDisappeared
(TUPnPDeviceDisconnectedReason)
|
void
|
ReserveLocalMSServicesCompleted
(
TInt
)
|
void
|
SearchCapabilitiesResponse
(
TInt
, const
TDesC8
&)
|
void
|
SearchResponse
(const
TDesC8
&,
TInt
,
TInt
,
TInt
, const
TDesC8
&)
|
IMPORT_C void
|
SetSession
(
MUPnPAVBrowsingSession
&)
|
Constructor & Destructor Documentation
CUPnPAbstractBrowsingSessionObserver()
IMPORT_C
|
CUPnPAbstractBrowsingSessionObserver
|
(
|
)
|
|
~CUPnPAbstractBrowsingSessionObserver()
IMPORT_C
|
~CUPnPAbstractBrowsingSessionObserver
|
(
|
)
|
[virtual]
|
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
|
|
)
|
|
CreateContainerResponse(TInt, const TDesC8 &)
void
|
CreateContainerResponse
|
(
|
TInt
|
aError,
|
|
const
TDesC8
&
|
aObjectId
|
|
)
|
|
DeleteObjectResponse(TInt)
void
|
DeleteObjectResponse
|
(
|
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.
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)
IsSessionObserverEnabled()
IMPORT_C
TBool
|
IsSessionObserverEnabled
|
(
|
)
|
|
Returns true if the observer is active (registered for events)
MediaServerDisappeared(TUPnPDeviceDisconnectedReason)
void
|
MediaServerDisappeared
|
(
|
TUPnPDeviceDisconnectedReason
|
aReason
|
)
|
|
Parameters
TUPnPDeviceDisconnectedReason aReason
|
|
ReserveLocalMSServicesCompleted(TInt)
void
|
ReserveLocalMSServicesCompleted
|
(
|
TInt
|
aError
|
)
|
|
SearchCapabilitiesResponse(TInt, const TDesC8 &)
void
|
SearchCapabilitiesResponse
|
(
|
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
|
|
)
|
|
SetSession(MUPnPAVBrowsingSession &)
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.
Member Data Documentation
MUPnPAVBrowsingSession * iObservedSession
TBool
iObserverEnabled
TBool
|
iObserverEnabled
|
[private]
|
MUPnPAVBrowsingSessionObserver * iProxyObserver
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.