Hi to all,
My question is if there are ANY API to know if bluetooh is activated AND it has any activity (send/receive data).
I found this code from Symbian Place:
-----------------------------------------------------
//Define buffer for the number of connected devices
TPckgBuf<TInt> theDevNo;
// Get the number of ACL links
TInt err = iSocket.GetOpt(KLMGetACLLinkCount, KSolBtLM, theDevNo);
------------------------------------------------------
but is only for Symbian 7.0 or higher, and I need an N-Gage solution!!!!
----------------------------------------------------------
Q1.- Is Bluetooth active and in use?
----------------------------------------------------------
I used the following code for Symbian 7:
//Define buffer for the number of connected devices
TPckgBuf<TInt> theDevNo;
// Get the number of ACL links
TInt err = iSocket.GetOpt(KLMGetACLLinkCount, KSolBtLM, theDevNo);
I tested the code over Symbian 6.1(N-Gage), and works ok! (symbian backported,it's common)
----------------------------------------------------------
Q2,3. Prompt and activate?
----------------------------------------------------------
You must call RNotifier with KPowerModeSettingNotifierUid flag:
#define KPowerModeSettingNotifierUid 0x100059E2
It will show the question: Turn on bluetooth? to the user, and activate it (if the user select yes).
For getting various notifications you can use RSystemAgent class. Some of the constant you can use there are in sacls.h, but unfortunately not all....:-(
I'm sure that for example IrDA is present, but I'm not sure about BT...