RBTPowerControl Class Reference
API used for managing the power state of the controller
Constructor & Destructor Documentation
RBTPowerControl()
IMPORT_C
|
RBTPowerControl
|
(
|
)
|
|
Member Functions Documentation
Cancel()
Cancels asynchronous requests made through this handle to the power control interface.
-
panic
-
KBTPowerControlPanic EApiUsedWhenHandleIsNotOpen If called when the
RBTPowerControl
instance has not been opened.
Close()
Closes the handle to the Bluetooth power control interface.
Note that it is safe to call this multiple times.
GetPower(TBTPowerState &, TDes8 *)
IMPORT_C
TInt
|
GetPower
|
(
|
TBTPowerState
&
|
aState,
|
|
TDes8
*
|
aDesc
|
|
)
|
|
Makes a synchronous request to get the current power state of the Bluetooth hardware.
-
panic
-
KBTPowerControlPanic EApiUsedWhenHandleIsNotOpen If called when the
RBTPowerControl
instance has not been opened.
Parameters
TBTPowerState
& aState
|
Set (on return) to the current power state if request was successful.
|
TDes8
* aDesc
|
|
Open()
Opens the handle to the power control interface for the Bluetooth hardware.
-
panic
-
KBTPowerControlPanic EHandleIsAlreadyOpen If the
RBTPowerControl
instance has already been opened (and not subsequently closed).
SetPower(TBTPowerState, TDes8 *, TRequestStatus &)
Makes an asynchronous request to set the power state of the Bluetooth hardware.
-
panic
-
KBTPowerControlPanic EApiUsedWhenHandleIsNotOpen If called when the
RBTPowerControl
instance has not been opened.
Parameters
TBTPowerState
aState
|
The desired state.
|
TDes8
* aDesc
|
|
TRequestStatus
& aStatus
|
The TRequestStatus that will signal the result of the request when completed.
|
Member Data Documentation
RHCIServerSession * iHCIServerSession
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.