Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 06:33, 25 September 2007.

Check Bluetooth power on/off in Symbian 2nd edition phones

From Forum Nokia Wiki

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


 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZbluetoothQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX