| ID | TSS001483 | Creation date | November 3, 2009 |
| Platform | S60 3rd Edition S60 3rd Edition, FP1 | Devices | All (S60 3rd Edition) |
| Category | Symbian C++ | Subcategory | Bluetooth |
| Keywords (APIs, classes, methods, functions): CBTMCMSettings |
This article describes how a 3rd party application can temporarily disable Bluetooth connections.
When the user activates Bluetooth from an S60 Bluetooth application, a central repository key for Bluetooth power state is updated.
To pre-empt Bluetooth connections, an application could monitor the key and set it back to the off state. However, this approach is not enough if Bluetooth is initially off and then started via a notifier; a typical use case is selecting Send via Bluetooth from the Options menu. In this case, although we do get a notification about the central repository key changes, the information is not propagated to the Bluetooth stack.
In addition to monitoring/setting the value of the central repository key, the CBTMCMSettings class is needed to control the power state of the Bluetooth module directly.
| Note! |
|---|
|
No related wiki articles found