This page was last modified 06:33, 25 September 2007.
Check Bluetooth power on/off in Symbian 2nd edition phones
From Forum Nokia Wiki
(Redirected from Check Bluetooth power on/off)
To Check Bluetooth Power On or Off
// Using class should derive MSettingInfoObserver. // and declare void HandleNotificationL( // SettingInfo::TSettingID aID, const TDesC &aNewValue); iSettingInfo = CSettingInfo::NewL( this ); TInt btMode = -1; TInt err = iSettingInfo->Get( SettingInfo::EBluetoothPowerMode, btMode ); TBuf<30> errBuf; errBuf.Num(btMode); iEikonEnv->AlertWin(errBuf); // EBluetoothPowerMode : Current bluetooth power mode. // Integer value. Possible values // 0 (unpowered/sleeping) // 1 (powered up and fully functional) //Order notifications when bluetooth power mode is changed err = iSettingInfo.NotifyChanges( SettingInfo::EBluetoothPowerMode ); //Changed states can be get from HandleNotificationL();
Related Links
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to protect against power failure while saving data in RMS | rushabh_it | Mobile Java General | 6 | 2006-10-31 02:57 |
| Is Symbian has enough API's 4 packet sniffing?? | jain_1982s | Symbian Networking & Messaging | 2 | 2008-04-17 09:53 |
| Are s60 2nd edition mobiles have any boot up API? | sagars | Python | 9 | 2008-07-26 17:15 |
| Speed difference 5140 and 6230 | blackjack75 | Mobile Java General | 11 | 2004-12-02 13:55 |
| Interoperability between S60 1st, 2nd and 3rd Editions | techLearner | General Symbian C++ | 3 | 2006-08-04 23:13 |
