读书人

symbian来电截取代码解决方案

发布时间: 2012-01-15 22:57:49 作者: rapoo

symbian来电截取代码
谁有symbian来电截取代码?

[解决办法]

C/C++ code
TBuf<100> CallerNumber; if(iCurrentStatus.iStatus == CTelephony::EStatusRinging|| iCurrentStatus.iStatus == CTelephony::EStatusDialling){    CTelephony::TRemotePartyInfoV1 RemInfoUse;    CTelephony::TCallInfoV1           CallInfoUse;    CTelephony::TCallSelectionV1   CallSelectionUse;            CallSelectionUse.iLine = CTelephony::EVoiceLine;    CallSelectionUse.iSelect = CTelephony::EInProgressCall;            CTelephony::TRemotePartyInfoV1Pckg     RemParty(RemInfoUse);    CTelephony::TCallInfoV1Pckg         CallInfo(CallInfoUse);    CTelephony::TCallSelectionV1Pckg     CallSelection(CallSelectionUse);                    iTelephony->GetCallInfo(CallSelection,CallInfo,RemParty);            if(iCurrentStatus.iStatus == CTelephony::EStatusRinging)    {                CallerNumber.Copy(RemInfoUse.iRemoteNumber.iTelNumber);    }    else if(iCurrentStatus.iStatus == CTelephony::EStatusDialling)    {                    CallerNumber.Copy(CallInfoUse.iDialledParty.iTelNumber);    }}
[解决办法]
Symbian OS v9.1 » Symbian OS guide » Telephony » Using the Telephony ISV API » How to detect and answer a call
Symbian OS v9.1 » Symbian OS guide » Telephony » Using the Telephony ISV API » How to request notification when information changes

[解决办法]
参考:
http://topic.csdn.net/u/20080124/00/9c243d88-dbbb-42ba-895a-20a8b2d843fd.html

读书人网 >Symbian

热点推荐