Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Получение телефонного номера с помощью CTelephony

From Wiki
Jump to: navigation, search
Article Metadata

Статья
Перевод:
truf
Последнее редактирование: hamishwillee (16 Dec 2011)

Этот пример демонстрирует получение телефонного номера удаленной стороны в момент набора или получения звонка.

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


Внутренние ссылки

This page was last modified on 16 December 2011, at 04:26.
194 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×