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 *)

voidConnectComplete(TBTDevAddr &aAddr,
TIntaErr,
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 & aAddrThe address of the remote device.
TInt aErrStatus 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 = NULLIf 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)

voidDisconnectComplete(TBTDevAddr &aAddr,
TIntaErr
)[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 & aAddrThe address of the remote device.
TInt aErrThe error code with which the disconnection occured. KErrNone for a normal disconnection, or e.g. KErrDisconnected if the connection was lost.

PairingComplete(TBTDevAddr &, TInt)

voidPairingComplete(TBTDevAddr &aAddr,
TIntaErr
)[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 & aAddrThe address of the remote device.
TInt aErrThe 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.