This tutorial describes how to get and set the alternative call mode information.
Alternating call is a GSM service that allow clients to create a call with two alternating bearer services, for example an alternating voice and data call or an alternating voice and fax call.
Get the phone alternating call capabilities using RMobilePhone::GetAlternatingCallCaps().
Capabilities are described in RMobilePhone::TMobilePhoneAlternatingCallCaps.
Use RMobilePhone::NotifyAlternatingCallCapsChange() to get the notification of any changes to the capabilities.
Get the current alternating call mode using RMobilePhone::GetAlternatingCallMode().
Modes are described in RMobilePhone::TMobilePhoneAlternatingCallMode.
Set the mode to use for the next call using RMobilePhone::SetAlternatingCallMode()
Use RMobilePhone::NotifyAlternatingCallModeChange() to get the notification of any changes to the mode.
The following code checks if the phone supports alternative voice and data calls. If the phone supports, it gets the alternative call mode, and checks if the next call is first voice then data.
The code assumes iMobilePhone is an RMobilePhone object.
TUint32 alternatingCaps; User::LeaveIfError(iMobilePhone.GetAlternatingCallCaps(alternatingCaps)); if (alternatingCaps & RMobilePhone::KCapsMTVoiceData) { RMobilePhone::TMobilePhoneAlternatingCallMode mode; RMobilePhone::TMobileService firstService; iMobilePhone.GetAlternatingCallMode(mode, firstService); if ( (mode == RMobilePhone::EAlternatingModeVoiceData) & (firstService == RMobilePhone::EVoiceService) ) {
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.