Symbian3/SDK/Source/GUID-A9DBE9E4-8239-526C-9D57-447DA628EE59.dita
author Dominic Pinkman <dominic.pinkman@nokia.com>
Tue, 20 Jul 2010 12:00:49 +0100
changeset 13 48780e181b38
parent 0 89d6a7a84779
permissions -rw-r--r--
Week 28 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 1897 and Bug 1522.

<?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 concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-A9DBE9E4-8239-526C-9D57-447DA628EE59" xml:lang="en"><title>Deleting
the SNAP Preference</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>This tutorial explains how to delete the existing SNAP preference used
by an email account. </p>
<section><title>Procedure</title> <ol id="GUID-FA9EAADC-618E-5334-8843-C1D32F5AD98C">
<li id="GUID-54BBC6CB-3C59-51F6-9B0B-99C4EAB66A25"><p>Create an instance of
the <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita"><apiname>CEmailAccounts</apiname></xref> class. </p> </li>
<li id="GUID-0C786AAC-9DAB-5426-B49B-63B92F1469BC"><p>Create an instance of
the <xref href="GUID-9CAB9BE5-7233-3A01-A906-756177CF4460.dita"><apiname>CImIAPPreferences</apiname></xref> class to be used by the email service. </p> </li>
<li id="GUID-7E68C505-F5F6-5BCA-AA01-2382CCD544D0"><p>Create an instance of
the <codeph>CIm&lt;protocol&gt;Settings</codeph> class. </p> <p>Where, &lt;protocol&gt;
is either Imap4, Pop3, or Smtp. </p> </li>
<li id="GUID-A869FE3C-52BA-548E-A6A6-0829AE638FC0"><p>Populate the <xref href="GUID-9CAB9BE5-7233-3A01-A906-756177CF4460.dita"><apiname>CImIAPPreferences</apiname></xref> class
and the <codeph>CIm&lt;protocol&gt;Settings</codeph> class from central repository
(CenRep) using <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita"><apiname>CEmailAccounts</apiname></xref> <codeph>::Load&lt;protocol&gt;SettingsL</codeph> function. </p> </li>
<li id="GUID-0B350FE9-28DF-519D-B4B9-A960341026DE"><p>Use the <xref href="GUID-9CAB9BE5-7233-3A01-A906-756177CF4460.dita#GUID-9CAB9BE5-7233-3A01-A906-756177CF4460/GUID-E90DA071-41EE-37F8-86DF-18D7869806DD"><apiname>CImIAPPreferences::DeleteSnap()</apiname></xref> function
to delete SNAP preferences that are used for the connection. </p> </li>
<li id="GUID-F2473DCE-24BB-5FA5-ABCE-18CA8C88C77E"><p>Specify the IAP preference
by using the existing <xref href="GUID-9CAB9BE5-7233-3A01-A906-756177CF4460.dita"><apiname>CImIAPPreferences</apiname></xref> APIs. </p> </li>
<li id="GUID-8DE27592-9F1A-5999-A3C7-82CB4C21CED9"><p>Store the updated settings
classes to CenRep using the <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita"><apiname>CEmailAccounts</apiname></xref>::<codeph>Save&lt;protocol&gt;SettingsL</codeph> function. </p> </li>
</ol> <note> All instances of &lt;protocol&gt; in the preceding steps are either <codeph>Imap4</codeph>, <codeph>Pop3</codeph>,
or <codeph>Smtp</codeph>.</note></section>
<section><title>See also</title> <p> <xref href="GUID-24860917-0FE2-5C8F-B436-96928350996E.dita">Bearer
Mobility Overview</xref> </p> </section>
</conbody></concept>