Symbian 来电拦截的实现
2010-03-07 19:59:00 来源:WEB开发网//recover
iToneSetting.SetVibratingAlert(ivibratype);
iToneSetting.SetRingingType(iRingingType);
iProfile->CommitChangeL();
iProfile->Release();
iEngine->Release();
}
//----------------------------------------------------
//CTelDial::GetReceivedNumber()
//get the incoming call number
//----------------------------------------------------
void CTelDial::GetReceivedNumber()
{
//in the 3rd
CTelephony::TCallInfoV1 iPhonyCallInfoV1;
CTelephony::TCallInfoV1Pckg iPhonyCallInfoV1Pckg(iPhonyCallInfoV1);
CTelephony::TCallSelectionV1 iPhonyCallSelectionV1;
CTelephony::TCallSelectionV1Pckg iPhonyCallSelectionV1Pckg(iPhonyCallSelectionV1);
CTelephony::TRemotePartyInfoV1 iPhonyRemotePartyInfoV1;
CTelephony::TRemotePartyInfoV1Pckg iPhonyRemotePartyInfoV1Pckg( iPhonyRemotePartyInfoV1 );
CTelephony::TCallStatusV1 iPhonyCallStatusV1;
CTelephony::TCallStatusV1Pckg iPhonyCallStatusV1Pckg(iPhonyCallStatusV1);
iPhonyCallSelectionV1.iLine = CTelephony::EVoiceLine;
iPhonyCallSelectionV1.iSelect = CTelephony::EInProgressCall;
itelephony->GetLineStatus(CTelephony::EVoiceLine, iPhonyCallStatusV1Pckg);
itelephony->GetCallInfo(iPhonyCallSelectionV1Pckg, iPhonyCallInfoV1Pckg, iPhonyRemotePartyInfoV1Pckg);
if (CTelephony::ERemoteIdentityAvailable == iPhonyRemotePartyInfoV1.iRemoteIdStatus)
{
if (iPhonyRemotePartyInfoV1.iRemoteNumber.iTelNumber.Length() > 0)
{
//Incoming call number
iNumberReceive = iPhonyRemotePartyInfoV1.iRemoteNumber.iTelNumber;
}
}
}
//----------------------------------------------------
//CTelDial::GetDialNumber()
更多精彩
赞助商链接