|
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 concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-A9DBE9E4-8239-526C-9D57-447DA628EE59" xml:lang="en"><title>Deleting |
|
13 the SNAP Preference</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>This tutorial explains how to delete the existing SNAP preference used |
|
15 by an email account. </p> |
|
16 <section><title>Procedure</title> <ol id="GUID-FA9EAADC-618E-5334-8843-C1D32F5AD98C"> |
|
17 <li id="GUID-54BBC6CB-3C59-51F6-9B0B-99C4EAB66A25"><p>Create an instance of |
|
18 the <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita"><apiname>CEmailAccounts</apiname></xref> class. </p> </li> |
|
19 <li id="GUID-0C786AAC-9DAB-5426-B49B-63B92F1469BC"><p>Create an instance of |
|
20 the <xref href="GUID-9CAB9BE5-7233-3A01-A906-756177CF4460.dita"><apiname>CImIAPPreferences</apiname></xref> class to be used by the email service. </p> </li> |
|
21 <li id="GUID-7E68C505-F5F6-5BCA-AA01-2382CCD544D0"><p>Create an instance of |
|
22 the <codeph>CIm<protocol>Settings</codeph> class. </p> <p>Where, <protocol> |
|
23 is either Imap4, Pop3, or Smtp. </p> </li> |
|
24 <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 |
|
25 and the <codeph>CIm<protocol>Settings</codeph> class from central repository |
|
26 (CenRep) using <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita"><apiname>CEmailAccounts</apiname></xref> <codeph>::Load<protocol>SettingsL</codeph> function. </p> </li> |
|
27 <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 |
|
28 to delete SNAP preferences that are used for the connection. </p> </li> |
|
29 <li id="GUID-F2473DCE-24BB-5FA5-ABCE-18CA8C88C77E"><p>Specify the IAP preference |
|
30 by using the existing <xref href="GUID-9CAB9BE5-7233-3A01-A906-756177CF4460.dita"><apiname>CImIAPPreferences</apiname></xref> APIs. </p> </li> |
|
31 <li id="GUID-8DE27592-9F1A-5999-A3C7-82CB4C21CED9"><p>Store the updated settings |
|
32 classes to CenRep using the <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita"><apiname>CEmailAccounts</apiname></xref>::<codeph>Save<protocol>SettingsL</codeph> function. </p> </li> |
|
33 </ol> <note> All instances of <protocol> in the preceding steps are either <codeph>Imap4</codeph>, <codeph>Pop3</codeph>, |
|
34 or <codeph>Smtp</codeph>.</note></section> |
|
35 <section><title>See also</title> <p> <xref href="GUID-24860917-0FE2-5C8F-B436-96928350996E.dita">Bearer |
|
36 Mobility Overview</xref> </p> </section> |
|
37 </conbody></concept> |