Symbian3/PDK/Source/GUID-A215B972-A23B-537A-855B-389747C85BB5.dita
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 14 578be2adaf3e
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<?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-A215B972-A23B-537A-855B-389747C85BB5"><title>Fixed Dialling Number Settings Tutorial</title><shortdesc>This tutorial describes how to get and set the Fixed Dialling Number (FDN) settings. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody> <context><p>The Fixed Dialling Number service restricts the user to dial only those numbers that appear in the FDN phonebook on the SIM or R-UIM. </p> </context> <steps-unordered> <step id="GUID-DA2E02CF-41B9-51CE-895E-9B1E01DA1B44"><cmd>Activate or deactivate FDN using <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>RMobilePhone::SetFdnSetting()</apiname></xref>  </cmd> </step> <step id="GUID-9F6840C0-FF18-5131-8118-AA7661B01F52"><cmd>Get the current FDN status using <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>RMobilePhone::GetFdnStatus()</apiname></xref>. </cmd> <info>Possible status values types are described in the <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>RMobilePhone::TMobilePhoneFdnStatus</apiname></xref> enum. </info> </step> <step id="GUID-3D304730-D163-59FC-B5A4-A77595B6D422"><cmd/><info>To receive the notification of any changes to the FDN status, use <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>RMobilePhone::NotifyFdnStatusChange()</apiname></xref>  </info> </step> </steps-unordered> <example><title>FDN settings example</title> <p>The following code gets the FDN status, and checks if FDN is active. </p> <p>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-408B789E-B387-5DF4-817D-627EF553E9BF" xml:space="preserve">RMobilePhone::TMobilePhoneFdnStatus fdnStatus;
User::LeaveIfError(iMobilePhone.GetFdnStatus(fdnStatus));

if ( (fdnStatus == RMobilePhone::EFdnActive) || (fdnStatus == RMobilePhone::EFdnPermanentlyActive) )
    {
        //do something
    }
</codeblock> </example> <postreq><p>You can find what the fixed numbers are through <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>RMobilePhoneBookStore</apiname></xref> using the <xref href="GUID-AA81AFA4-6FAC-3B0D-A082-BE0AEC58CCA8.dita"><apiname>KETelIccFdnPhoneBook</apiname></xref> phonebook. </p> </postreq> </taskbody></task>