MPlayerCapabilitiesObserver Class Reference
class MPlayerCapabilitiesObserver
|
This class is used to define the capabilities of the current application, and the implementation will generate AVRCP responses to the controller. For the event part of the API, it is recommended to add all events which make sense for the media player. In general, this will be everything except ESystemStatusChanged. The company ID part of the API is only needed if the media player needs to support vendor extensions other than bluetooth SIG. The bluetooth SIG company ID is always included in responses to a COMPANY_ID request.
Member Functions Documentation
AddCompanyId(TInt)
Add a company id to the supported list of company ids. The AVRCP 1.3 specification mandates that the Bluetooth SIG vendor id must be supported; KErrAlreadyExists will be returned if
AddCompanyId()
is called with this company id.
AddEvent(TRegisterNotificationEvent)
IMPORT_C
TInt
|
AddEvent
|
(
|
TRegisterNotificationEvent
|
aEvent
|
)
|
|
Add a notification event to the supported list of events The AVRCP 1.3 specification mandates that PlaybackStatusChanged and TrackChanged events must be supported; KErrAlreadyExists will be returned if
AddEvent()
is called with either of these events.
Parameters
TRegisterNotificationEvent
aEvent
|
the event to add
|
ClearCompanyIds()
IMPORT_C void
|
ClearCompanyIds
|
(
|
)
|
|
Remove all additional company IDs from the supported list
ClearEvents()
IMPORT_C void
|
ClearEvents
|
(
|
)
|
|
Remove all notification events from the supported list
DoAddCompanyId(TInt)
TInt
|
DoAddCompanyId
|
(
|
TInt
|
aID
|
)
|
[private, pure virtual]
|
DoAddEvent(TRegisterNotificationEvent)
TInt
|
DoAddEvent
|
(
|
TRegisterNotificationEvent
|
aEvent
|
)
|
[private, pure virtual]
|
Parameters
TRegisterNotificationEvent
aEvent
|
|
DoClearCompanyIds()
void
|
DoClearCompanyIds
|
(
|
)
|
[private, pure virtual]
|
DoClearEvents()
void
|
DoClearEvents
|
(
|
)
|
[private, pure virtual]
|
DoRemoveCompanyID(TInt)
TInt
|
DoRemoveCompanyID
|
(
|
TInt
|
aID
|
)
|
[private, pure virtual]
|
DoRemoveEvent(TRegisterNotificationEvent)
TInt
|
DoRemoveEvent
|
(
|
TRegisterNotificationEvent
|
aEvent
|
)
|
[private, pure virtual]
|
Parameters
TRegisterNotificationEvent
aEvent
|
|
RemoveCompanyID(TInt)
IMPORT_C
TInt
|
RemoveCompanyID
|
(
|
TInt
|
aID
|
)
|
|
Remove a company id from the list of supported vendor extensions. The Bluetooth SIG id can't be removed, as this must always be supported
Parameters
TInt
aID
|
the id to remove
|
RemoveEvent(TRegisterNotificationEvent)
IMPORT_C
TInt
|
RemoveEvent
|
(
|
TRegisterNotificationEvent
|
aEvent
|
)
|
|
Remove a notification event from the supported list of events The AVRCP 1.3 specification mandates that PlaybackStatusChanged and TrackChanged events must be supported; KErrNotSupported will be returned if
RemoveEvent()
is called with either of these events.
Parameters
TRegisterNotificationEvent
aEvent
|
the event to remove
|
Member Data Documentation
const TInt KMaxCompanyID
const
TInt
|
KMaxCompanyID
|
[static]
|
const TInt KMaxNrOfCompanyIDs
const
TInt
|
KMaxNrOfCompanyIDs
|
[static]
|
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.