WEB开发网
开发学院手机开发Symbian 开发 Symbian OS s60 3rd编程中实现IMSI、IMEI查询 阅读

Symbian OS s60 3rd编程中实现IMSI、IMEI查询

 2010-06-19 04:22:00 来源:WEB开发网   
核心提示:User::LeaveIfError(typeFile.Open(fs, KPath, EFileShareReadersOnly));// Read from position 0: start of file myFile.Set(typeFile); myFile.Read(iPhoneType); // rea
User::LeaveIfError(typeFile.Open(fs, KPath, EFileShareReadersOnly));// Read from position 0: start of file myFile.Set(typeFile); myFile.Read(iPhoneType); // readBuf1 is now "write "fs.Close(); SetActive(); CActiveScheduler::Start(); }*//* * 拨打电话 * */void CMyTelephony::DialNewCall(const TDesC& aTelNumber) { CTelephony::TTelNumber telNumber(aTelNumber); CTelephony::TCallParamsV1 callParams; callParams.iIdRestrict = CTelephony::ESendMyId; CTelephony::TCallParamsV1Pckg callParamsPckg(callParams); iTelephony->DialNewCall(iStatus, callParamsPckg, telNumber, iCallId); SetActive(); }

如何使用:

#include "MyTelephony.h"...TBuf imsi;CMyTelephony::GetIMSIL(imsi); // synchronous/*TBuf imei;CMyTelephony::GetIMEIL(iesi); // synchronous*/CEikonEnv::Static()->InfoWinL(imsi, KNullDesC());...

向高手致敬!!

有关链接:http://discussion.forum.nokia.com/forum/showthread.php?t=95966

修改后加入了查询手机型号、IMEI、IMSI、拨打电话号码等有关硬件信息,后期将进一步维护更新中。

上一页  1 2 3 

Tags:Symbian OS rd

编辑录入:coldstar [复制链接] [打 印]
赞助商链接