Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License
"Eclipse Public License v1.0" which accompanies this distribution,
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
-->
<!DOCTYPE task
PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task xml:lang="en" id="GUID-CC6A9EE8-C8C0-54C4-A885-FC88EA14F18A"><title>Phone Modes Tutorial</title><shortdesc>This section describes how to retrieve the phone modes supported by multimode phone sub-session. The modes are the different air-interfaces in the mobile networks. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody> <result><p>The function should return the modes supported by the device. </p> </result> <example id="GUID-2A33EF77-06A4-5DAF-B040-4BA32C55B2B8"><title>Phone mode example</title> <p>The following code checks if the phone supports both GSM and CDMA (IS-95).The code assumes <codeph>iMobilePhone</codeph> is an <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>RMobilePhone</apiname></xref> object. </p> <codeblock id="GUID-B7EE3D13-A2E7-5F53-A294-5B10088B2E09" xml:space="preserve">TUint32 modes;
User::LeaveIfError(iMobilePhone.GetMultimodeCaps(modes));
if ( (modes & RMobilePhone::KCapsGsmSupported) &&
(modes & RMobilePhone::KCapsCdma95Supported) )
{
...
}
</codeblock> </example> </taskbody></task>