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()

voidCancelPairing()

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()

voidConstructL()[private]

Symbian 2nd-phase constructor

DisconnectDevice(const TBTDevAddr &, TBTDisconnectType)

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

?description

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddr
TBTDisconnectType aDiscType

GetConnectedAddressesL(RBTDevAddrArray &, TBTProfile)

voidGetConnectedAddressesL(RBTDevAddrArray &aAddrArray,
TBTProfileaConnectedProfile
)

?description

Since
S60 v3.2

Parameters

RBTDevAddrArray & aAddrArray
TBTProfile aConnectedProfile

HandleConnectionEvent(TInt)

voidHandleConnectionEvent(TIntaStatus)[private]

Parameters

TInt aStatus

HandleError(CBTEngActive *, TInt, TInt)

voidHandleError(CBTEngActive *aActive,
TIntaId,
TIntaError
)[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)

voidRequestCompletedL(CBTEngActive *aActive,
TIntaId,
TIntaStatus
)[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,
TBoolaActivate
)[static]

Set a pairing observer in BTEngine.

Since
S60 v3.2

Parameters

const TBTDevAddr & aAddrThe address of the remote device that is being paired.
TBool aActivateIf 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 & aAddrthe address of the device to pair with
const TBTDeviceClass & aDeviceClassthe 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.