diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-771CC444-12CA-5DDE-B93B-EA419971C676.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-771CC444-12CA-5DDE-B93B-EA419971C676.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,22 @@ + + + + + +Call Information TutorialThis tutorial describes how to get the call information.

The RMobileCall::GetMobileCallInfo() must be used to retrieve the call information. The retrieved information contains :

  • a bitmask that specifies which of the optional fields are set in the retrieved information

  • call origination information, such as call name, ID, start time, service

  • remote party information

  • call status information and flags

Use RMobileCall::GetMobileCallInfo() to retrieve the call inormation. The above function should return a RMobileCall::TMobileCallInfoV1. The bit mask of the optional field is returned in RMobileCall::TMobileCallInfoFlags. The remote party information is returned in RMobileCall::TMobileCallRemotePartyInfoV1. Notify the client applications using RMobileCall::NotifyRemotePartyInfoChange(). Call information example

The following code gets the identity of a remote party, if it is available:

void CClientApp::RemoteInfoL(const RMobileCall& aCall, TBuf<RMobileCall::KCallingNameSize>& aName) + { + RMobileCall::TMobileCallRemotePartyInfoV1 remoteInfo; + RMobileCall::TMobileCallInfoV1 callInfo; + RMobileCall::TMobileCallInfoV1Pckg callInfoPckg(callInfo); + User::LeaveIfError(aCall.GetMobileCallInfo(callInfoPckg)); + if (callInfo.iRemoteParty.iRemoteIdStatus == RMobileCall::ERemoteIdentityAvailable) + { + aName = callInfo.iRemoteParty.iCallingName; + } + }
\ No newline at end of file