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

Symbian 来电拦截的实现

 2010-03-07 19:59:00 来源:WEB开发网   
核心提示://recoveriToneSetting.SetVibratingAlert(ivibratype);iToneSetting.SetRingingType(iRingingType);iProfile->CommitChangeL();iProfile->Release();iEngine->Re

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

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

Tags:Symbian 来电 拦截

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