This tutorial describes how to get the data call parameters from a call.
The various parameters that can be retrieved from a call are:
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); }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.