| 云 的个人资料哈侃8侃照片日志列表 | 帮助 |
|
2007/2/5 TURN ON BT IN 3RD//Uses the Notifier API to ask the user to turn on Bluetooth
//if it's not on already. void CBluetoothPMPExampleEngine::TurnBtOnL() { //the constant is from btnotifierapi.h which is not in all SDKs //so it's hard coded here const TUid KPowerModeSettingNotifierUid = {0x100059E2}; //const TUid KBTPowerStateNotifierUid = {0x101F808E}; //S80 and 7710 RNotifier notifier; User::LeaveIfError( notifier.Connect() ); TPckgBuf<TBool> dummy(ETrue); TPckgBuf<TBool> reply(EFalse); TRequestStatus stat; notifier.StartNotifierAndGetResponse(stat, KPowerModeSettingNotifierUid, dummy, reply); User::WaitForRequest(stat); notifier.CancelNotifier(KPowerModeSettingNotifierUid); notifier.Close(); } 郁闷的1月份终于过去了!!!郁闷的1月份终于过去了!!!继续努力了~~ |
|
|