MBTEngConnObserver Class Reference

class MBTEngConnObserver

Class MBTEngConnObserver

Callback class for receiving CBTEngConnMan connect/disconnect complete events.

btengdevman.dll
Since
S60 V3.0

Member Functions Documentation

ConnectComplete(TBTDevAddr &, TInt, RBTDevAddrArray *)

void ConnectComplete ( TBTDevAddr & aAddr,
TInt aErr,
RBTDevAddrArray * aConflicts = NULL
) [pure virtual]

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.

Since
S60 v3.2

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.

Since
S60 v3.2

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)

void PairingComplete ( TBTDevAddr & aAddr,
TInt aErr
) [virtual]

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.

Since
S60 v3.2

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.