RAccessoryBTControl Class Reference
class RAccessoryBTControl : public RAccessoryControl
|
Accessory Bluetooth Control sub-session.
This class is not intended for user derivation.
AccBTControl.lib
-
Since
-
S60 3.1
Public Member Functions
|
|
RAccessoryBTControl
()
|
IMPORT_C void
|
AccessoryValueChangedNotifyL
(const
TBTDevAddr
&, const
TAccPolNameRecord
&, const
TAccValueTypeTBool
)
|
IMPORT_C void
|
AccessoryValueChangedNotifyL
(const
TBTDevAddr
&, const
TAccPolNameRecord
&, const
TAccValueTypeTInt
)
|
IMPORT_C void
|
BluetoothAudioLinkCloseRespL
(const
TBTDevAddr
&,
TInt
&)
|
IMPORT_C void
|
BluetoothAudioLinkClosedNotifyL
(const
TBTDevAddr
&,
TAccAudioType
)
|
IMPORT_C void
|
BluetoothAudioLinkOpenRespL
(const
TBTDevAddr
&,
TInt
&)
|
IMPORT_C void
|
BluetoothAudioLinkOpenedNotifyL
(const
TBTDevAddr
&,
TAccAudioType
)
|
IMPORT_C void
|
CancelConnectAccessory
()
|
IMPORT_C void
|
CancelDisconnectAccessory
()
|
IMPORT_C void
|
CancelNotifyBluetoothAudioLinkCloseReq
()
|
IMPORT_C void
|
CancelNotifyBluetoothAudioLinkOpenReq
()
|
IMPORT_C
TInt
|
CloseSubSession
()
|
IMPORT_C void
|
ConnectAccessory
(
TRequestStatus
&, const
TBTDevAddr
&)
|
IMPORT_C
TInt
|
CreateSubSession
(
RAccessoryServer
&)
|
IMPORT_C void
|
DisconnectAccessory
(
TRequestStatus
&, const
TBTDevAddr
&)
|
IMPORT_C void
|
NotifyBluetoothAudioLinkCloseReq
(
TRequestStatus
&,
TBTDevAddr
&,
TAccAudioType
&)
|
IMPORT_C void
|
NotifyBluetoothAudioLinkOpenReq
(
TRequestStatus
&,
TBTDevAddr
&,
TAccAudioType
&)
|
Inherited Functions
|
|
RAccessoryConnection::CancelGetAccessoryConnectionStatus()const
|
|
RAccessoryConnection::CancelNotifyAccessoryConnectionStatusChanged()const
|
|
RAccessoryConnection::GetAccessoryConnectionStatus(TAccPolGenericIDArray &)const
|
|
RAccessoryConnection::GetAccessoryConnectionStatus(TRequestStatus &,TAccPolGenericIDArray &)
|
|
RAccessoryConnection::NotifyAccessoryConnectionStatusChanged(TRequestStatus &,TAccPolGenericIDArray &)
|
|
RAccessoryConnection::RAccessoryConnection()
|
|
RAccessoryConnectionBase::GetSubblockNameArrayL(const TAccPolGenericID &,CAccPolSubblockNameArray &)const
|
|
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,CAccPolObjectCon &)const
|
|
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,TAccValueTypeTBool &)const
|
|
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,TAccValueTypeTInt &)const
|
|
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,TDes8 &)const
|
|
RAccessoryConnectionBase::RAccessoryConnectionBase()
|
|
RAccessoryControl::AccessoryValueChangedNotifyL(const TAccPolGenericID &,const TAccPolNameRecord &,const CAccPolObjectCon &)const
|
|
RAccessoryControl::AccessoryValueChangedNotifyL(const TAccPolGenericID &,const TAccPolNameRecord &,const TAccValueTypeTBool)const
|
|
RAccessoryControl::AccessoryValueChangedNotifyL(const TAccPolGenericID &,const TAccPolNameRecord &,const TAccValueTypeTInt)const
|
|
RAccessoryControl::ConnectAccessory(TRequestStatus &,CAccConGenericID *const ,TBool)
|
|
RAccessoryControl::ConnectAccessory(TRequestStatus &,TAccPolGenericID &)
|
|
RAccessoryControl::DisconnectAccessory(TRequestStatus &,const TAccPolGenericID &)
|
|
RAccessoryControl::RAccessoryControl()
|
|
RAccessoryControl::SetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,const CAccPolObjectCon &)
|
|
RAccessoryControl::SetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,const TAccValueTypeTBool)
|
|
RAccessoryControl::SetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,const TAccValueTypeTInt)
|
|
RAccessorySubsessionBase::RAccessorySubsessionBase()
|
|
RSubSessionBase::CloseSubSession(TInt)
|
|
RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &)
|
|
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt)
|
|
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &)
|
|
RSubSessionBase::RSubSessionBase()
|
|
RSubSessionBase::Send(TInt)const
|
|
RSubSessionBase::Send(TInt,const TIpcArgs &)const
|
|
RSubSessionBase::SendReceive(TInt)const
|
|
RSubSessionBase::SendReceive(TInt,TRequestStatus &)const
|
|
RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const
|
|
RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
|
|
RSubSessionBase::Session()const
|
|
RSubSessionBase::SubSessionHandle()const
|
Constructor & Destructor Documentation
RAccessoryBTControl()
IMPORT_C
|
RAccessoryBTControl
|
(
|
)
|
|
Member Functions Documentation
AccessoryValueChangedNotifyL(const TBTDevAddr &, const TAccPolNameRecord &, const TAccValueTypeTBool)
Notifies value change of specific accessory capability.
Accessory capability name constants and value types are defined in AccPolCommonNameValuePairs.h and AccPolProprietaryNameValuePairs.h.
-
Since
-
S60 3.1
-
Exceptions
-
system-wide
|
error code if failed. Specifically: KErrArgument if an argument is out of range.
|
AccessoryValueChangedNotifyL(const TBTDevAddr &, const TAccPolNameRecord &, const TAccValueTypeTInt)
Notifies value change of specific accessory capability.
Accessory capability name constants and value types are defined in AccPolCommonNameValuePairs.h and AccPolProprietaryNameValuePairs.h.
-
Since
-
S60 3.2
-
Exceptions
-
system-wide
|
error code if failed. Specifically: KErrArgument if an argument is out of range.
|
BluetoothAudioLinkCloseRespL(const TBTDevAddr &, TInt &)
IMPORT_C void
|
BluetoothAudioLinkCloseRespL
|
(
|
const
TBTDevAddr
&
|
aBTDevAddr,
|
|
TInt
&
|
aResponse
|
|
)
|
const
|
This method is used to send response for previously received close audio link request.
Parameters
const
TBTDevAddr
& aBTDevAddr
|
Bluetooth device address
|
TInt
& aResponse
|
Indicates the status of a request KErrNone if successful, or a Symbian OS standard error code
|
BluetoothAudioLinkClosedNotifyL(const TBTDevAddr &, TAccAudioType)
Audio link is closed. Bluetooth subsystem uses this method to notify that audio link is closed towards remote accessory.
BluetoothAudioLinkOpenRespL(const TBTDevAddr &, TInt &)
IMPORT_C void
|
BluetoothAudioLinkOpenRespL
|
(
|
const
TBTDevAddr
&
|
aBTDevAddr,
|
|
TInt
&
|
aResponse
|
|
)
|
const
|
This method is used to send response for previously received open audio link request.
Parameters
const
TBTDevAddr
& aBTDevAddr
|
Bluetooth device address
|
TInt
& aResponse
|
Indicates the status of a request KErrNone if successful, or a Symbian OS standard error code
|
BluetoothAudioLinkOpenedNotifyL(const TBTDevAddr &, TAccAudioType)
Audio link is open. Bluetooth subsystem uses this method to notify that audio link is opened towards remote accessory.
-
Since
-
S60 3.1
NotifyBluetoothAudioLinkOpenReq
-
Exceptions
-
system-wide
|
error code if failed. Specifically: KErrArgument if an argument is out of range. KErrAlreadyExists if audio link open is not possible at the moment. This means that audio is routed to wired accessory.
|
CancelConnectAccessory()
IMPORT_C void
|
CancelConnectAccessory
|
(
|
)
|
const
|
CancelDisconnectAccessory()
IMPORT_C void
|
CancelDisconnectAccessory
|
(
|
)
|
const
|
CancelNotifyBluetoothAudioLinkCloseReq()
IMPORT_C void
|
CancelNotifyBluetoothAudioLinkCloseReq
|
(
|
)
|
const
|
Cancel NotifyBluetoothAudioLinkCloseReq.
CancelNotifyBluetoothAudioLinkOpenReq()
IMPORT_C void
|
CancelNotifyBluetoothAudioLinkOpenReq
|
(
|
)
|
const
|
CloseSubSession()
IMPORT_C
TInt
|
CloseSubSession
|
(
|
)
|
[virtual]
|
ConnectAccessory(TRequestStatus &, const TBTDevAddr &)
Bluetooth subsystem has detected accessory connection and requests the Accessory Server to connect the accessory.
-
Since
-
S60 3.1
DisconnectAccessory
Note: Opened Bluetooth control subsessions must be explicitly closed by the client. A memory leak will result if the
RAccessoryBTControl
object is destroyed before the subsession is closed.
Parameters
TRequestStatus
& aStatus
|
Indicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled
|
const
TBTDevAddr
& aBTDevAddr
|
Bluetooth device address of connected BT accessory
|
CreateSubSession(RAccessoryServer &)
Creates a new sub-session within an existing session.
DisconnectAccessory(TRequestStatus &, const TBTDevAddr &)
Bluetooth subsystem has detected accessory disconnection and requests the Accessory Server to disconnect the accessory.
Parameters
TRequestStatus
& aStatus
|
Indicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled KErrNotFound, if accessory is not found
|
const
TBTDevAddr
& aBTDevAddr
|
Bluetooth device address of disconnected BT accessory
|
NotifyBluetoothAudioLinkCloseReq(TRequestStatus &, TBTDevAddr &, TAccAudioType &)
This method is used to order notification of bluetooth audio link close request.
-
Since
-
S60 3.1
BluetoothAudioLinkCloseResp
Parameters
TRequestStatus
& aStatus
|
Indicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled
|
TBTDevAddr
& aBTDevAddr
|
On successful request completion, contains the updated Bluetooth device address
|
TAccAudioType
& aAudioType
|
On successful request completion, contains the type of audio connection
|
NotifyBluetoothAudioLinkOpenReq(TRequestStatus &, TBTDevAddr &, TAccAudioType &)
This method is used to order notification of bluetooth audio link open request.
-
Since
-
S60 3.1
BluetoothAudioLinkOpenResp
Parameters
TRequestStatus
& aStatus
|
Indicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled
|
TBTDevAddr
& aBTDevAddr
|
On successful request completion, contains the updated Bluetooth device address
|
TAccAudioType
& aAudioType
|
On successful request completion, contains the type of audio connection
|
Member Data Documentation
TAccSrvBTDevAddrPckgBuf
iConnectBTDevAddrPckgBuf
TAccSrvBTDevAddrPckgBuf
iDisconnectBTDevAddrPckgBuf
TAccSrvAudioTypePckg
iNotifyBTAudioLinkCloseReqAudioTypePckg
TAccSrvBTDevAddrPckg
iNotifyBTAudioLinkCloseReqBTAddrPckg
TAccSrvAudioTypePckg
iNotifyBTAudioLinkOpenReqAudioTypePckg
TAccSrvBTDevAddrPckg
iNotifyBTAudioLinkOpenReqBTAddrPckg
TPckgBuf< TUint > iThisThreadIDPckgBuf
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.