MBluetoothPhysicalLinksNotifier Class Reference

#include <bt_sock.h>

class MBluetoothPhysicalLinksNotifier
Public Member Functions
pure virtual voidHandleCreateConnectionCompleteL(TInt)
pure virtual voidHandleDisconnectAllCompleteL(TInt)
pure virtual voidHandleDisconnectCompleteL(TInt)
virtual IMPORT_C voidMBPLN_ExtensionInterfaceL(TUid, void *&)

Detailed Description

This allows for notifications of Physical link connections & disconnections

Mixin class to be used with CBluetoothPhysicalLinks

Member Function Documentation

HandleCreateConnectionCompleteL ( TInt )

voidHandleCreateConnectionCompleteL(TIntaErr)[pure virtual]

Notification of a requested connection coming up

If no error is reported, then that connection is ready for use.
Note:

1) While this function may leave, any errors are ignored. Implementers are responsible for performing their own cleanup prior to exiting the function.

2) The implementation of this function should NOT be used to delete the associated CBluetoothPhysicalLinks object.

Parameters
aErrthe returned error

HandleDisconnectAllCompleteL ( TInt )

voidHandleDisconnectAllCompleteL(TIntaErr)[pure virtual]

Notification that all existing connections have been torn down

If no error is reported, then there are no Bluetooth connections existing.
Note:

1) While this function may leave, any errors are ignored. Implementers are responsible for performing their own cleanup prior to exiting the function.

2) The implementation of this function should NOT be used to delete the associated CBluetoothPhysicalLinks object.

Parameters
aErrthe returned error

HandleDisconnectCompleteL ( TInt )

voidHandleDisconnectCompleteL(TIntaErr)[pure virtual]

Notification of a requested disconnection having taken place

If no error is reported, then that connection has been closed.
Note:

1) While this function may leave, any errors are ignored. Implementers are responsible for performing their own cleanup prior to exiting the function.

2) The implementation of this function should NOT be used to delete the associated CBluetoothPhysicalLinks object.

Parameters
aErrthe returned error

MBPLN_ExtensionInterfaceL ( TUid, void *& )

IMPORT_C voidMBPLN_ExtensionInterfaceL(TUidaInterface,
void *&aObject
)[virtual]

Returns a null aObject if the extension is not implemented, or a pointer to another interface if it is. This virtual function allows the M- class to be extended in future in a binary compatible way by providing a method that clients can override in future to allow extra callbacks to be made via aObject.

Parameters
aInterfaceUID of the interface to return
aObjectthe container for another interface as specified by aInterface