CBTEngDevMan Class Reference
class CBTEngDevMan : public CActive
|
Class
CBTEngDevMan
This is a helper class that simplifies the usage of Symbian's BT Device Registry interface.
btengdevman.dll
-
Since
-
S60 v3.0
Constructor & Destructor Documentation
CBTEngDevMan(MBTEngDevManObserver *)
Parameters
MBTEngDevManObserver
* aObserver
|
Pointer to callback interface for informing the result of the operation.
|
~CBTEngDevMan()
~CBTEngDevMan
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddDevice(const CBTDevice &)
Add a device into the Bluetooth device registry.
Parameters
const
CBTDevice
& aDevice
|
Device to be added.
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Symbian 2nd-phase constructor
DeleteDevices(const TBTRegistrySearch &)
Delete one or more devices that match the search pattern from the registry.
DoCancel()
void
|
DoCancel
|
(
|
)
|
[private, virtual]
|
Cancel current outstanding operation, if any.
DoModifyDeviceL()
void
|
DoModifyDeviceL
|
(
|
)
|
[private]
|
Processes the result of a registry search.
GetDevices(const TBTRegistrySearch &, CBTDeviceArray *)
Get an array of devices that match the search pattern from the registry. If no callback interface has been passed during construction, this function will complete synchronously.
ModifyDevice(const CBTDevice &)
Modify a device in the Bluetooth device registry.
Parameters
const
CBTDevice
& aDevice
|
Device to be modifed.
|
NewL(MBTEngDevManObserver *)
Parameters
MBTEngDevManObserver
* aObserver
|
Pointer to callback interface for informing the result of the operation. If NULL, the GetDevices operation will operate syncrhonously; the other operations are then not available.
|
NewLC(MBTEngDevManObserver *)
Parameters
MBTEngDevManObserver
* aObserver
|
Pointer to callback interface for informing the result of the operation. If NULL, the GetDevices operation will operate syncrhonously; the other operations are then not available.
|
RunError(TInt)
TInt
|
RunError
|
(
|
TInt
|
aError
|
)
|
[private, virtual]
|
If an error occurs, the callback is called with the error code.
RunL()
void
|
RunL
|
(
|
)
|
[private, virtual]
|
When the Active Object completes succesfully, the callback is called with the return value.
Member Enumerations Documentation
Enum TModifyState
Substates enumeration for modifying device parameters
Enumerators
ECheckNone
|
|
ECheckPairing
|
|
ECheckDevName
|
|
ECheckFriendlyName
|
|
ECheckNameless
|
|
ECheckFinal
|
|
Enum TState
Enumerators
EStateIdle
|
|
EStateAddDevice
|
|
EStateGetDevices
|
|
EStateModifyDevice
|
|
EStateDeleteDevices
|
|
Member Data Documentation
CActiveSchedulerWait * iAsyncWaiter
Nested active scheduler loop for synchronous GetDevice operation. own.
TBool
iCreatingView
TBool
|
iCreatingView
|
[private]
|
Used to mark when a view is being created.
CBTDevice * iModifiedDevice
Reference to modified device to be stored in registry. own.
TModifyState
iModifyState
Keeps track of sequence of modifications.
MBTEngDevManObserver * iObserver
Observer class which implements the method that is called when the request is completed. Not own.
RBTRegistry
iRegistry
Subsession on the BT Registry Server.
CBTRegistryResponse * iResponse
Holds the response from the registry query. Own.
CBTDeviceArray * iResultArray
Reference to the device array in which the results will be stored. Not own.
TState
iState
Keeps track of the current state.
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.