MBluetoothSocketNotifier Class Reference

#include <bt_sock.h>

class MBluetoothSocketNotifier
Public Member Functions
pure virtual voidHandleAcceptCompleteL(TInt)
pure virtual voidHandleActivateBasebandEventNotifierCompleteL(TInt, TBTBasebandEventNotification &)
pure virtual voidHandleConnectCompleteL(TInt)
pure virtual voidHandleIoctlCompleteL(TInt)
pure virtual voidHandleReceiveCompleteL(TInt)
pure virtual voidHandleSendCompleteL(TInt)
pure virtual voidHandleShutdownCompleteL(TInt)
virtual IMPORT_C voidMBSN_ExtensionInterfaceL(TUid, void *&)

Detailed Description

This allows for notification of events relating to a CBluetoothSocket object.

Such notification consists of notification of logical link events (for example receipt of a user packet) and physical link state events (for example change of power mode).

Mixin class to be used with CBluetoothSocket

Member Function Documentation

HandleAcceptCompleteL ( TInt )

voidHandleAcceptCompleteL(TIntaErr)[pure virtual]

Notification of an accept complete event.

If no error is reported, then we have accepted a connection request and that connection is ready for use.
Note:

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

ParameterDescription
aErrthe returned error

HandleActivateBasebandEventNotifierCompleteL ( TInt, TBTBasebandEventNotification & )

voidHandleActivateBasebandEventNotifierCompleteL(TIntaErr,
TBTBasebandEventNotification &aEventNotification
)[pure virtual]

Notification of a baseband event.

If no error is reported, then a baseband event has been retrieved successfully.
Note:

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

See also: TBTPhysicalLinkStateNotifier

ParameterDescription
aErrthe returned error

HandleConnectCompleteL ( TInt )

voidHandleConnectCompleteL(TIntaErr)[pure virtual]

Notification of a connection complete event.

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

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

ParameterDescription
aErrthe returned error

HandleIoctlCompleteL ( TInt )

voidHandleIoctlCompleteL(TIntaErr)[pure virtual]

Notification of a ioctl complete event.

An HCI request that has an associated command complete has completed.
Note:

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

ParameterDescription
aErrthe returned error

HandleReceiveCompleteL ( TInt )

voidHandleReceiveCompleteL(TIntaErr)[pure virtual]

Notification of a receive complete event.

If no error is reported, then then we have successfully received a specified quantity of data.
Note:

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

ParameterDescription
aErrthe returned error

HandleSendCompleteL ( TInt )

voidHandleSendCompleteL(TIntaErr)[pure virtual]

Notification of a send complete event.

If no error is reported, then an attempt to send data over Bluetooth has succeeded.
Note:

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

ParameterDescription
aErrthe returned error

HandleShutdownCompleteL ( TInt )

voidHandleShutdownCompleteL(TIntaErr)[pure virtual]

Notification of a shutdown complete event.

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

If the implementation of this function needs to delete associated CBluetoothSocket object, it should NOT use delete operator. The implementation should call CBluetoothSocket::AsyncDelete() method instead.

ParameterDescription
aErrthe returned error

MBSN_ExtensionInterfaceL ( TUid, void *& )

IMPORT_C voidMBSN_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.

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