Symbian 来电拦截的实现
2010-03-07 19:59:00 来源:WEB开发网//get the outgoing call number
//----------------------------------------------------
void CTelDial::GetDialNumber()
{
CTelephony::TCallInfoV1 iPhonyCallInfoV1;
CTelephony::TCallInfoV1Pckg iPhonyCallInfoV1Pckg(iPhonyCallInfoV1);
CTelephony::TCallSelectionV1 iPhonyCallSelectionV1;
CTelephony::TCallSelectionV1Pckg iPhonyCallSelectionV1Pckg(iPhonyCallSelectionV1);
CTelephony::TRemotePartyInfoV1 iPhonyRemotePartyInfoV1;
CTelephony::TRemotePartyInfoV1Pckg iPhonyRemotePartyInfoV1Pckg( iPhonyRemotePartyInfoV1 );
iPhonyCallSelectionV1.iLine = CTelephony::EVoiceLine;
iPhonyCallSelectionV1.iSelect = CTelephony::EInProgressCall;
itelephony->GetCallInfo(iPhonyCallSelectionV1Pckg, iPhonyCallInfoV1Pckg, iPhonyRemotePartyInfoV1Pckg);
if (iPhonyCallInfoV1.iDialledParty.iTelNumber.Length() > 0)
{
//Outgoing call number
iNumberDial = iPhonyCallInfoV1.iDialledParty.iTelNumber;
}
}
bool CTelDial::CmpDialedNumber()
{
if (iNumberDialSet == iNumberDial)
{
return true;
}
else
{
return false;
}
}
bool CTelDial::CmpReceivedNumber()
{
if (iNumberReceiveSet == iNumberReceive)
{
return true;
}
else
{
return false;
}
}
bool CTelDial::CmpDetectNumber()
{
if (iNumberDetectSet == iNumberReceive)
{
return true;
}
else
{
return false;
}
}
void CTelDial::SetDialNumber(const TDes& aSetDialNumber)
{
iNumberDialSet.Copy(aSetDialNumber);
}
更多精彩
赞助商链接