WEB开发网
开发学院手机开发Symbian 开发 Symbian 来电拦截的实现 阅读

Symbian 来电拦截的实现

 2010-03-07 19:59:00 来源:WEB开发网   
核心提示://get the outgoing call number//void CTelDial::GetDialNumber(){CTelephony::TCallInfoV1 iPhonyCallInfoV1;CTelephony::TCallInfoV1Pckg iPhonyCallInfoV1Pckg(iPhonyC

//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);

}

上一页  1 2 3 4 5 6 7 8  下一页

Tags:Symbian 来电 拦截

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