MBTEngConnObserver Class Reference
Member Functions Documentation
ConnectComplete(TBTDevAddr &, TInt, RBTDevAddrArray *)
Indicates to the caller that a service-level connection has completed. This function is called for both incoming and outgoing connections. This function is also called when an outgoing connection request fails, e.g. with error code KErrCouldNotConnect. When this function is called, new commands can be issued to the
CBTEngConnMan
API immediately.
Parameters
TBTDevAddr
& aAddr
|
The address of the remote device.
|
TInt
aErr
|
Status information of the connection. KErrNone if the connection succeeded, otherwise the error code with which the outgoing connection failed. KErrAlreadyExists is returned if there already is an existing connection for the selected profile(s), or otherwise e.g. KErrCouldNotConnect or KErrDisconnected for indicating connection problems.
|
RBTDevAddrArray
* aConflicts = NULL
|
If there already is a connection for the selected profile(s) of an outgoing connection request (the selection is performed by BTEng), then this array contains the bluetooth device addresses of the remote devices for those connections.
|
DisconnectComplete(TBTDevAddr &, TInt)
void
|
DisconnectComplete
|
(
|
TBTDevAddr
&
|
aAddr,
|
|
TInt
|
aErr
|
|
)
|
[pure virtual]
|
Indicates to the caller that a service-level connection has disconnected. When this function is called, new commands can be issued to the
CBTEngConnMan
API immediately.
Parameters
TBTDevAddr
& aAddr
|
The address of the remote device.
|
TInt
aErr
|
The error code with which the disconnection occured. KErrNone for a normal disconnection, or e.g. KErrDisconnected if the connection was lost.
|
PairingComplete(TBTDevAddr &, TInt)
Indicates to the caller that a pairing procedure has been completed. When this function is called, new commands can be issued to the
CBTEngConnMan
API immediately. A default implementation (that does nothing) of this method exists.
Parameters
TBTDevAddr
& aAddr
|
The address of the remote device.
|
TInt
aErr
|
The error code indicating the result of the pairing procedure; KErrNone for a normal disconnection, or e.g. KErrCancel if the user cancelled the pairing dialog.
|
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.