equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE task |
|
11 PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"> |
|
12 <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; |
|
13 User::LeaveIfError(iMobilePhone.GetMultimodeCaps(modes)); |
|
14 if ( (modes & RMobilePhone::KCapsGsmSupported) && |
|
15 (modes & RMobilePhone::KCapsCdma95Supported) ) |
|
16 { |
|
17 |
|
18 ... |
|
19 |
|
20 } |
|
21 </codeblock> </example> </taskbody></task> |