Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: bt_sock.h
Link against: bluetooth.lib

Class MBluetoothSocketNotifier

class MBluetoothSocketNotifier;

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

Members

Defined in MBluetoothSocketNotifier:
HandleAcceptCompleteL(), HandleActivateBasebandEventNotifierCompleteL(), HandleConnectCompleteL(), HandleIoctlCompleteL(), HandleReceiveCompleteL(), HandleSendCompleteL(), HandleShutdownCompleteL(), MBSN_ExtensionInterfaceL()


Member functions


HandleConnectCompleteL()

virtual void HandleConnectCompleteL(TInt aErr)=0;

Description

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.

Parameters

TInt aErr

the returned error


HandleAcceptCompleteL()

virtual void HandleAcceptCompleteL(TInt aErr)=0;

Description

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.

Parameters

TInt aErr

the returned error


HandleShutdownCompleteL()

virtual void HandleShutdownCompleteL(TInt aErr)=0;

Description

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.

Parameters

TInt aErr

the returned error


HandleSendCompleteL()

virtual void HandleSendCompleteL(TInt aErr)=0;

Description

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.

Parameters

TInt aErr

the returned error


HandleReceiveCompleteL()

virtual void HandleReceiveCompleteL(TInt aErr)=0;

Description

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.

Parameters

TInt aErr

the returned error


HandleIoctlCompleteL()

virtual void HandleIoctlCompleteL(TInt aErr)=0;

Description

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.

Parameters

TInt aErr

the returned error


HandleActivateBasebandEventNotifierCompleteL()

virtual void HandleActivateBasebandEventNotifierCompleteL(TInt aErr, TBTBasebandEventNotification &aEventNotification)=0;

Description

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.

Parameters

TInt aErr

the returned error

TBTBasebandEventNotification &aEventNotification

See also:


MBSN_ExtensionInterfaceL()

virtual IMPORT_C void MBSN_ExtensionInterfaceL(TUid aInterface, void *&aObject);

Description

Returns a null aObject if the extension is not implemented, or a pointer to another interface if it is.

Parameters

TUid aInterface

UID of the interface to return

void *&aObject

the container for another interface as specified by aInterface