CBluetoothSynchronousLink Class Reference

class CBluetoothSynchronousLink : public CBase

Provides Bluetooth SCO functionality.

This allows Bluetooth SCO (synchronous) link Connect, Disconnect, Send and Receive.

Inherits from

  • CBluetoothSynchronousLink
Public Member Functions
~CBluetoothSynchronousLink()
IMPORT_C TIntAcceptConnection()
IMPORT_C TIntAcceptConnection(const TBTSyncPackets &)
IMPORT_C TBTSyncBandwidthBandwidth()
RBTBaseband &Baseband()
IMPORT_C voidCancelAccept()
IMPORT_C voidCancelReceive()
IMPORT_C voidCancelSend()
IMPORT_C voidCancelSetup()
IMPORT_C TUint16Coding()
IMPORT_C TIntDisconnect()
RSocket &ESCOSocket()
voidHandleAcceptConnectionCompleteL(TInt, TSCOType)
voidHandleDisconnectionCompleteL(TInt)
voidHandleReceiveCompleteL(TInt)
voidHandleSendCompleteL(TInt)
voidHandleSetupConnectionCompleteL(TInt, TSCOType)
IMPORT_C TUint16Latency()
RSocket &ListeningESCOSocket()
RSocket &ListeningSCOSocket()
IMPORT_C CBluetoothSynchronousLink *NewL(MBluetoothSynchronousLinkNotifier &, RSocketServ &)
IMPORT_C CBluetoothSynchronousLink *NewLC(MBluetoothSynchronousLinkNotifier &, RSocketServ &)
MBluetoothSynchronousLinkNotifier &Notifier()
IMPORT_C TIntReceive(TDes8 &)
IMPORT_C voidRemoteName(TSockAddr &)
IMPORT_C TUint8RetransmissionEffort()
RSocket &SCOSocket()
IMPORT_C TIntSend(const TDesC8 &)
IMPORT_C voidSetCoding(TUint16)
IMPORT_C voidSetMaxBandwidth(TBTSyncBandwidth)
IMPORT_C voidSetMaxLatency(TUint16)
IMPORT_C voidSetNotifier(MBluetoothSynchronousLinkNotifier &)
IMPORT_C voidSetRetransmissionEffort(TBTeSCORetransmissionTypes)
IMPORT_C TIntSetupConnection(const TBTDevAddr &)
IMPORT_C TIntSetupConnection(const TBTDevAddr &, const TUint16)
IMPORT_C TIntSetupConnection(const TBTDevAddr &, const TBTSyncPackets &)
RSocketServ &SocketServer()
Private Member Functions
CBluetoothSynchronousLink(MBluetoothSynchronousLinkNotifier &, RSocketServ &)
voidConstructL()
voidLinkDown()
TInt LinkUp(TBTDevAddr)
voidUpdateLinkParams(TSCOType)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CBTSynchronousLinkAccepter *iBTSynchronousLinkAccepterESCO
CBTSynchronousLinkAccepter *iBTSynchronousLinkAccepterSCO
CBTSynchronousLinkAttacher *iBTSynchronousLinkAttacherESCO
CBTSynchronousLinkAttacher *iBTSynchronousLinkAttacherSCO
CBTSynchronousLinkBaseband *iBTSynchronousLinkBaseband
CBTSynchronousLinkDetacher *iBTSynchronousLinkDetacherESCO
CBTSynchronousLinkDetacher *iBTSynchronousLinkDetacherSCO
CBTSynchronousLinkReceiver *iBTSynchronousLinkReceiverESCO
CBTSynchronousLinkReceiver *iBTSynchronousLinkReceiverSCO
CBTSynchronousLinkSender *iBTSynchronousLinkSenderESCO
CBTSynchronousLinkSender *iBTSynchronousLinkSenderSCO
RBTBaseband iBaseband
TBuf8< 1 >iDummySCOShutdownDescriptor
RSocket iESCOSocket
RSocket iListeningESCOSocket
RSocket iListeningSCOSocket
TBTeSCOLinkParams iNegotiatedLink
MBluetoothSynchronousLinkNotifier *iNotifier
TBool iOpenedSCO
TBool iOpeningESCO
TBool iOpeningSCO
TBTeSCOLinkParams iRequestedLink
RSocket iSCOSocket
TUint8 iSCOTypes
TBTSockAddr iSockAddr
RSocketServ &iSockServer

Constructor & Destructor Documentation

CBluetoothSynchronousLink(MBluetoothSynchronousLinkNotifier &, RSocketServ &)

CBluetoothSynchronousLink(MBluetoothSynchronousLinkNotifier &aNotifier,
RSocketServ &aServer
)[private]

Parameters

MBluetoothSynchronousLinkNotifier & aNotifier
RSocketServ & aServer

~CBluetoothSynchronousLink()

IMPORT_C~CBluetoothSynchronousLink()

Member Functions Documentation

AcceptConnection()

IMPORT_C TIntAcceptConnection()

AcceptConnection(const TBTSyncPackets &)

IMPORT_C TIntAcceptConnection(const TBTSyncPackets &aPacketTypes)

Parameters

const TBTSyncPackets & aPacketTypes

Bandwidth()

IMPORT_C TBTSyncBandwidthBandwidth()

Baseband()

RBTBaseband &Baseband()

CancelAccept()

IMPORT_C voidCancelAccept()

CancelReceive()

IMPORT_C voidCancelReceive()

CancelSend()

IMPORT_C voidCancelSend()

CancelSetup()

IMPORT_C voidCancelSetup()

Coding()

IMPORT_C TUint16Coding()

ConstructL()

voidConstructL()[private]

Disconnect()

IMPORT_C TIntDisconnect()

ESCOSocket()

RSocket &ESCOSocket()

HandleAcceptConnectionCompleteL(TInt, TSCOType)

voidHandleAcceptConnectionCompleteL(TIntaErr,
TSCOTypeaSCOType
)

Parameters

TInt aErr
TSCOType aSCOType

HandleDisconnectionCompleteL(TInt)

voidHandleDisconnectionCompleteL(TIntaErr)

Parameters

TInt aErr

HandleReceiveCompleteL(TInt)

voidHandleReceiveCompleteL(TIntaErr)

Parameters

TInt aErr

HandleSendCompleteL(TInt)

voidHandleSendCompleteL(TIntaErr)

Parameters

TInt aErr

HandleSetupConnectionCompleteL(TInt, TSCOType)

voidHandleSetupConnectionCompleteL(TIntaErr,
TSCOTypeaSCOType
)

Parameters

TInt aErr
TSCOType aSCOType

Latency()

IMPORT_C TUint16Latency()

LinkDown()

voidLinkDown()[private]

LinkUp(TBTDevAddr)

TInt LinkUp(TBTDevAddraAddr)[private]

Parameters

TBTDevAddr aAddr

ListeningESCOSocket()

RSocket &ListeningESCOSocket()

ListeningSCOSocket()

RSocket &ListeningSCOSocket()

NewL(MBluetoothSynchronousLinkNotifier &, RSocketServ &)

IMPORT_C CBluetoothSynchronousLink *NewL(MBluetoothSynchronousLinkNotifier &aNotifier,
RSocketServ &aServer
)[static]

Parameters

MBluetoothSynchronousLinkNotifier & aNotifier
RSocketServ & aServer

NewLC(MBluetoothSynchronousLinkNotifier &, RSocketServ &)

IMPORT_C CBluetoothSynchronousLink *NewLC(MBluetoothSynchronousLinkNotifier &aNotifier,
RSocketServ &aServer
)[static]

Parameters

MBluetoothSynchronousLinkNotifier & aNotifier
RSocketServ & aServer

Notifier()

MBluetoothSynchronousLinkNotifier &Notifier()

Receive(TDes8 &)

IMPORT_C TIntReceive(TDes8 &aData)

Parameters

TDes8 & aData

RemoteName(TSockAddr &)

IMPORT_C voidRemoteName(TSockAddr &aAddr)

Parameters

TSockAddr & aAddr

RetransmissionEffort()

IMPORT_C TUint8RetransmissionEffort()

SCOSocket()

RSocket &SCOSocket()

Send(const TDesC8 &)

IMPORT_C TIntSend(const TDesC8 &aData)

Parameters

const TDesC8 & aData

SetCoding(TUint16)

IMPORT_C voidSetCoding(TUint16aVoiceSetting)

Parameters

TUint16 aVoiceSetting

SetMaxBandwidth(TBTSyncBandwidth)

IMPORT_C voidSetMaxBandwidth(TBTSyncBandwidthaMaximum)

Parameters

TBTSyncBandwidth aMaximum

SetMaxLatency(TUint16)

IMPORT_C voidSetMaxLatency(TUint16aLatency)

Parameters

TUint16 aLatency

SetNotifier(MBluetoothSynchronousLinkNotifier &)

IMPORT_C voidSetNotifier(MBluetoothSynchronousLinkNotifier &aNotifier)

Parameters

MBluetoothSynchronousLinkNotifier & aNotifier

SetRetransmissionEffort(TBTeSCORetransmissionTypes)

IMPORT_C voidSetRetransmissionEffort(TBTeSCORetransmissionTypesaRetransmissionEffort)

Parameters

TBTeSCORetransmissionTypes aRetransmissionEffort

SetupConnection(const TBTDevAddr &)

IMPORT_C TIntSetupConnection(const TBTDevAddr &aDevAddr)

Parameters

const TBTDevAddr & aDevAddr

SetupConnection(const TBTDevAddr &, const TUint16)

IMPORT_C TIntSetupConnection(const TBTDevAddr &aDevAddr,
const TUint16aPacketTypes
)

Parameters

const TBTDevAddr & aDevAddr
const TUint16 aPacketTypes

SetupConnection(const TBTDevAddr &, const TBTSyncPackets &)

IMPORT_C TIntSetupConnection(const TBTDevAddr &aDevAddr,
const TBTSyncPackets &aPacketTypes
)

Parameters

const TBTDevAddr & aDevAddr
const TBTSyncPackets & aPacketTypes

SocketServer()

RSocketServ &SocketServer()

UpdateLinkParams(TSCOType)

voidUpdateLinkParams(TSCOTypeaSCOType)[private]

Parameters

TSCOType aSCOType

Member Data Documentation

CBTSynchronousLinkAccepter * iBTSynchronousLinkAccepterESCO

CBTSynchronousLinkAccepter *iBTSynchronousLinkAccepterESCO[private]

CBTSynchronousLinkAccepter * iBTSynchronousLinkAccepterSCO

CBTSynchronousLinkAccepter *iBTSynchronousLinkAccepterSCO[private]

CBTSynchronousLinkAttacher * iBTSynchronousLinkAttacherESCO

CBTSynchronousLinkAttacher *iBTSynchronousLinkAttacherESCO[private]

CBTSynchronousLinkAttacher * iBTSynchronousLinkAttacherSCO

CBTSynchronousLinkAttacher *iBTSynchronousLinkAttacherSCO[private]

CBTSynchronousLinkBaseband * iBTSynchronousLinkBaseband

CBTSynchronousLinkBaseband *iBTSynchronousLinkBaseband[private]

CBTSynchronousLinkDetacher * iBTSynchronousLinkDetacherESCO

CBTSynchronousLinkDetacher *iBTSynchronousLinkDetacherESCO[private]

CBTSynchronousLinkDetacher * iBTSynchronousLinkDetacherSCO

CBTSynchronousLinkDetacher *iBTSynchronousLinkDetacherSCO[private]

CBTSynchronousLinkReceiver * iBTSynchronousLinkReceiverESCO

CBTSynchronousLinkReceiver *iBTSynchronousLinkReceiverESCO[private]

CBTSynchronousLinkReceiver * iBTSynchronousLinkReceiverSCO

CBTSynchronousLinkReceiver *iBTSynchronousLinkReceiverSCO[private]

CBTSynchronousLinkSender * iBTSynchronousLinkSenderESCO

CBTSynchronousLinkSender *iBTSynchronousLinkSenderESCO[private]

CBTSynchronousLinkSender * iBTSynchronousLinkSenderSCO

CBTSynchronousLinkSender *iBTSynchronousLinkSenderSCO[private]

RBTBaseband iBaseband

RBTBaseband iBaseband[private]

TBuf8< 1 > iDummySCOShutdownDescriptor

TBuf8< 1 >iDummySCOShutdownDescriptor[private]

RSocket iESCOSocket

RSocket iESCOSocket[private]

RSocket iListeningESCOSocket

RSocket iListeningESCOSocket[private]

RSocket iListeningSCOSocket

RSocket iListeningSCOSocket[private]

TBTeSCOLinkParams iNegotiatedLink

TBTeSCOLinkParams iNegotiatedLink[private]

MBluetoothSynchronousLinkNotifier * iNotifier

MBluetoothSynchronousLinkNotifier *iNotifier[private]

TBool iOpenedSCO

TBool iOpenedSCO[private]

TBool iOpeningESCO

TBool iOpeningESCO[private]

TBool iOpeningSCO

TBool iOpeningSCO[private]

TBTeSCOLinkParams iRequestedLink

TBTeSCOLinkParams iRequestedLink[private]

RSocket iSCOSocket

RSocket iSCOSocket[private]

TUint8 iSCOTypes

TUint8 iSCOTypes[private]

TBTSockAddr iSockAddr

TBTSockAddr iSockAddr[private]

RSocketServ & iSockServer

RSocketServ &iSockServer[private]