diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-95CA8E55-AC98-5B6C-889A-AF0DF17A3D57.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-95CA8E55-AC98-5B6C-889A-AF0DF17A3D57.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,25 @@ + + + + + +Data Call Parameters TutorialThis tutorial describes how to get the data call parameters from a call.

The various parameters that can be retrieved from a call are:

  • type of data service

  • data transfer rate

  • GSM and WCDMA specific parameters such as the quality of data service and the version of Radio Link Protocol (RLP).

Create a RMobileCall::TMobileDataCallParamsV1 class to store the data call parameters. The class is derived from RCall::TCallParams. Pass a package object to the RCall::Dial() to set the data parameters to make a call. Pass a package object to the RCall::AnswerIncomingCall() to set the data parameters for an inbound call. Use RCall::GetCallParams() to get the current parameters used for data calls. Data call parameters example

The following code prints the call's speed.

void CClientApp::DataCallParamsL(RMobileCall& aCall) + { + RMobileCall::TMobileDataCallParamsV1 callParams; + RMobileCall::TMobileDataCallParamsV1Pckg callParamsPckg(callParams); + + User::LeaveIfError(aCall.GetCallParams(callParamsPckg)); + const TText* speeds[] = {_S("Unspecified"),_S("Autobauding"), _S("2400"), + _S("4800"), _S("9600"), _S("14400"), _S("19200"), _S("28800"), _S("32000"), + _S("33600"), _S("38400"), _S("43200"), _S("48000"), _S("56000"), _S("57600"), + _S("64000")}; + + TBuf<20> speedDes (speeds[callParams.iSpeed]); + console->Printf(_L("Speed %S"), &speedDes); + }
\ No newline at end of file