CBTEngSettingsNotify Class Reference

class CBTEngSettingsNotify : public CBase

Class CBTEngSettingsNotify

?more_complete_description

btengsettings.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CBTEngSettingsNotify(MBTEngSettingsObserver *)

CBTEngSettingsNotify ( MBTEngSettingsObserver * aObserver ) [private]

C++ default constructor

Since
S60 v3.2

Parameters

MBTEngSettingsObserver * aObserver Pointer to callback interface that receives notification that a setting has changed.

~CBTEngSettingsNotify()

~CBTEngSettingsNotify ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

Symbian 2nd-phase constructor

Since
S60 v3.2

HandleError(CBTEngActive *, TInt, TInt)

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

From MBTEngActiveObserver . Handle an error in the setting change handling.

Since
S60 v3.2

Parameters

CBTEngActive * aActive
TInt aId
TInt aError

NewL(MBTEngSettingsObserver *)

CBTEngSettingsNotify * NewL ( MBTEngSettingsObserver * aObserver ) [static]

Two-phase constructor

Since
S60 v3.2

Parameters

MBTEngSettingsObserver * aObserver Pointer to callback interface that receives notification that a setting has changed.

RequestCompletedL(CBTEngActive *, TInt, TInt)

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

From MBTEngActiveObserver . Handle a setting change.

Since
S60 v3.2

Parameters

CBTEngActive * aActive
TInt aId
TInt aStatus

TogglePowerTemporarily()

TInt TogglePowerTemporarily ( )

Toggles the Bluetooth power state (on or off). Power will be switched on for the duriation of the session. It will also be turned off (gracefully, if no permanent connection exists) if this object is destroyed. Note: power will only be switched off gracefully if it has also been switched on through this method, otherwise KErrAccessDenied will be returned.

Since
S60 v5.0

Member Data Documentation

RBTEng iBTeng

RBTEng iBTeng [private]

Handle to BTEng server for turning Bluetooth on temporarily.

MBTEngSettingsObserver * iObserver

MBTEngSettingsObserver * iObserver [private]

Client to notify of changes. Not own.

CRepository * iPowerKeyCenRep

CRepository * iPowerKeyCenRep [private]

Session with the central repository for power mode setting. Own.

CBTEngActive * iPowerKeyWatcher

CBTEngActive * iPowerKeyWatcher [private]

Active object for watching power mode setting changes. Own.

CRepository * iVisiKeyCenRep

CRepository * iVisiKeyCenRep [private]

Session with the central repository for visibility mode setting. Own.

CBTEngActive * iVisiKeyWatcher

CBTEngActive * iVisiKeyWatcher [private]

Active object for watching visibility mode setting changes. Own.