首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian >> Symbian入门 >> 正文
检查离线模式
作者:hoolee    文章来源:诺基亚论坛    更新时间:2006-11-14 12:49:09
在S60第三版中,我们通过读取Centrol Repository中的电话设置来检查离线模式是否启动。
要获得情景模式的设置,只有对Central Repository进行调用才行:
Code:

#include <centralrepository.h>

#include <ProfileEngineSDKCRKeys.h>

CRepository* cr = CRepository::NewLC( KCRUidProfileEngine );

TInt value;

// Get ID of current profile

User::LeaveIfError( cr->Get( KProEngActiveProfile, value ) );

// Check value to determine the active profile

if ( value == 5 )

{

    // current profile is the offline profile

}

// ...


要了解更多关于Profile Engine的信息,可阅读SDK的帮助文档和“Profiles Engine Active Profile Settings API.”
相关文章:
程序的自启动的动态配置
在3.0平台下检测手机离线及无声模式
连接库9210
安装了多个symbian Series SDK,如何方便的进行各个版本的配置切换呢?〖总结〗
使用多重SDK
NOKIA 6681上实现SIP连接产生SIP Profile: registering failed的原因
Symbian中把字符串变成数字的方法
Symbian OS C++程序员编码诀窍-有关清除堆栈
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号