Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <bt_sock.h>
Link against: bluetooth.lib

Class MBluetoothSynchronousLinkNotifier

class MBluetoothSynchronousLinkNotifier;

Description

SCO and eSCO link notification events.

This allows for notification of Connect, Disconnect, Send and Receive events relating to SCO and eSCO links.

Mixin class to be used with CBluetoothSynchronousLink Note that although the function signatures allow it, these functions should not be allowed to leave as the error will be ignored.

Members

Defined in MBluetoothSynchronousLinkNotifier:


Member functions


HandleSetupConnectionCompleteL(TInt)

virtual void HandleSetupConnectionCompleteL(TInt aErr)=0;

Description

Notification that a synchronous link (SCO) has been set up

If no error is reported, then the synchronous link is ready for use.

Note: 1) Observe that although the function signature allows it, this function should not be allowed to leave as the error will be ignored.

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

Parameters

TInt aErr

the returned error


HandleDisconnectionCompleteL(TInt)

virtual void HandleDisconnectionCompleteL(TInt aErr)=0;

Description

Notification that a synchronous link (SCO) has disconnected

If no error is reported, then the synchronous link has been closed.

Note: 1) Observe that although the function signature allows it, this function should not be allowed to leave as the error will be ignored.

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

Parameters

TInt aErr

the returned error


HandleAcceptConnectionCompleteL(TInt)

virtual void HandleAcceptConnectionCompleteL(TInt aErr)=0;

Description

Notification that a synchronous link (SCO) has been accepted

If no error is reported, then we have accepted a request for a synchronous link. That synchronous link is ready for use.

Note: 1) Observe that although the function signature allows it, this function should not be allowed to leave as the error will be ignored.

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

Parameters

TInt aErr

the returned error


HandleSendCompleteL(TInt)

virtual void HandleSendCompleteL(TInt aErr)=0;

Description

Notification of a send complete event

If no error is reported, then an attempt to send synchronous (SCO) data (e.g. voice) over Bluetooth has succeeded.

Note: 1) Observe that although the function signature allows it, this function should not be allowed to leave as the error will be ignored.

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

Parameters

TInt aErr

the returned error


HandleReceiveCompleteL(TInt)

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 synchronous (SCO) data.

Note: 1) Observe that although the function signature allows it, this function should not be allowed to leave as the error will be ignored.

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

Parameters

TInt aErr

the returned error


MBSLN_ExtensionInterfaceL(TUid,void *&)

IMPORT_C virtual void MBSLN_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