CBTEngConnHandler Class Reference

class CBTEngConnHandler : public CBase

Class CBTEngConnHandler

?more_complete_description

?library
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CBTEngConnHandler(MBTEngConnObserver *)

CBTEngConnHandler ( MBTEngConnObserver * aObserver ) [private]

C++ default constructor

Parameters

MBTEngConnObserver * aObserver

~CBTEngConnHandler()

~CBTEngConnHandler ( ) [virtual]

Destructor

Member Functions Documentation

CancelConnectDevice(const TBTDevAddr &)

TInt CancelConnectDevice ( const TBTDevAddr & aAddr ) [inline]

?description

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddr

CancelNotifyConnectionEvents()

TInt CancelNotifyConnectionEvents ( )

?description

Since
S60 v3.2

CancelPairing()

void CancelPairing ( )

cancel the outstanding pairing request.

ConnectDevice(const TBTDevAddr &, const TBTDeviceClass &)

TInt ConnectDevice ( const TBTDevAddr & aAddr,
const TBTDeviceClass & aDeviceClass
) [inline]

?description

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddr
const TBTDeviceClass & aDeviceClass

ConstructL()

void ConstructL ( ) [private]

Symbian 2nd-phase constructor

DisconnectDevice(const TBTDevAddr &, TBTDisconnectType)

TInt DisconnectDevice ( const TBTDevAddr & aAddr,
TBTDisconnectType aDiscType
) [inline]

?description

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddr
TBTDisconnectType aDiscType

GetConnectedAddressesL(RBTDevAddrArray &, TBTProfile)

void GetConnectedAddressesL ( RBTDevAddrArray & aAddrArray,
TBTProfile aConnectedProfile
)

?description

Since
S60 v3.2

Parameters

RBTDevAddrArray & aAddrArray
TBTProfile aConnectedProfile

HandleConnectionEvent(TInt)

void HandleConnectionEvent ( TInt aStatus ) [private]

Parameters

TInt aStatus

HandleError(CBTEngActive *, TInt, TInt)

void HandleError ( CBTEngActive * aActive,
TInt aId,
TInt aError
) [private, virtual]

From MBTEngActiveObserver . Handles an error during processing of connection status event.

Since
S60 v3.2

Parameters

CBTEngActive * aActive
TInt aId
TInt aError

IsDeviceConnectable(const TBTDeviceClass &, TBool &)

TInt IsDeviceConnectable ( const TBTDeviceClass & aDeviceClass,
TBool & aConnectable
) [inline]

?description

Since
S60 v3.2

Parameters

const TBTDeviceClass & aDeviceClass
TBool & aConnectable

IsDeviceConnectable(const TBTDevAddr &, const TBTDeviceClass &, TBool &)

TInt IsDeviceConnectable ( const TBTDevAddr & aAddr,
const TBTDeviceClass & aDeviceClass,
TBool & aConnectable
) [inline]

?description

Since
S60 v5.1

Parameters

const TBTDevAddr & aAddr
const TBTDeviceClass & aDeviceClass
TBool & aConnectable

IsDeviceConnected(const TBTDevAddr &, TBTEngConnectionStatus &)

TInt IsDeviceConnected ( const TBTDevAddr & aAddr,
TBTEngConnectionStatus & aConnected
) [inline]

?description

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddr
TBTEngConnectionStatus & aConnected

NewL(MBTEngConnObserver *)

CBTEngConnHandler * NewL ( MBTEngConnObserver * aObserver ) [static]

Two-phase constructor

Parameters

MBTEngConnObserver * aObserver

NotifyConnectionEvents(MBTEngConnObserver *)

TInt NotifyConnectionEvents ( MBTEngConnObserver * aObserver )

?description

Since
S60 v3.2

Parameters

MBTEngConnObserver * aObserver

PrepareDiscovery()

TInt PrepareDiscovery ( ) [inline]

?description

Since
S60 v3.2

RequestCompletedL(CBTEngActive *, TInt, TInt)

void RequestCompletedL ( CBTEngActive * aActive,
TInt aId,
TInt aStatus
) [private, virtual]

From MBTEngActiveObserver . Handles the notification of a change in the connection status.

Since
S60 v3.2

Parameters

CBTEngActive * aActive
TInt aId
TInt aStatus

SetPairingObserver(const TBTDevAddr &, TBool)

TInt SetPairingObserver ( const TBTDevAddr & aAddr,
TBool aActivate
) [static]

Set a pairing observer in BTEngine.

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddr The address of the remote device that is being paired.
TBool aActivate If ETrue, the observer will be activated, otherwise the observer will be removed.

StartPairing(const TBTDevAddr &, const TBTDeviceClass &)

TInt StartPairing ( const TBTDevAddr & aAddr,
const TBTDeviceClass & aDeviceClass
)

Pair a device

Since
S60 v5.1

Parameters

const TBTDevAddr & aAddr the address of the device to pair with
const TBTDeviceClass & aDeviceClass the device class of the device to pair with

Member Data Documentation

RBTEng iBTEng

RBTEng iBTEng [private]

Session with BTEng server side.

CBTEngActive * iConnEventActive

CBTEngActive * iConnEventActive [private]

The actual active object for receiving event notifications. Own.

TBTEngEventPkg iEventPkg

TBTEngEventPkg iEventPkg [private]

Client-server package to which the event result is copied.

MBTEngConnObserver * iObserver

MBTEngConnObserver * iObserver [private]

Reference to receiver of connection events. Not own.

CBTEngActive * iPairActive

CBTEngActive * iPairActive [private]

The actual active object for pairing a device. Own.

TBTDevAddrPckgBuf iPairAddr

TBTDevAddrPckgBuf iPairAddr [private]

Address of the remote device to pair with.

TUint32 iPairDevCod

TUint32 iPairDevCod [private]

The CoD of the remote device to pair with.