Symbian3/PDK/Source/GUID-9910E4FC-0CAD-5BF9-AFC1-602D1197F47D.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Fri, 22 Jan 2010 18:26:19 +0000
changeset 1 25a17d01db0c
child 3 46218c8b8afa
permissions -rw-r--r--
Addition of the PDK content and example code for Documentation_content according to Feature bug 1607 and bug 1608

<?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-9910E4FC-0CAD-5BF9-AFC1-602D1197F47D" xml:lang="en"><title>Specifying
Per Bearer-Type Download Rules</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>This tutorial explains how to specify the download rules. </p>
<note> Before specifying the download rules, see <xref href="GUID-24860917-0FE2-5C8F-B436-96928350996E.dita#GUID-24860917-0FE2-5C8F-B436-96928350996E/GUID-CC4028E7-ECD9-5045-9057-5BC687C3DF3A">Important considerations</xref>.</note>
<section><title>Procedure</title> <ol id="GUID-130938EA-0D82-5787-B52D-2D0A1D28BE25">
<li id="GUID-842F12D1-07B4-5279-B51D-46EA09DFF829"><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-06E02FE2-EF92-5981-BD04-1AF478120E34"><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-3E6F50DF-B340-5929-923D-A6CE852C0BD1"><p>Create an instance of
the <xref href="GUID-DFE18962-0022-3833-A8F0-6E4C969177C0.dita"><apiname>CImSmtpSettings</apiname></xref> class, and populate it the <xref href="GUID-3EE7A970-BA0B-3BC3-BD86-A7D0EBD7C20F.dita"><apiname>PopulateDefaultSmtpSettingsL</apiname></xref> function
with required access settings. For example, username, port, email address,
password, SMTP authentication, and soon on. </p> </li>
<li id="GUID-A8D9967E-B216-5F78-A25B-C5BF168509B0"><p>Create an instance of
the <xref href="GUID-55F11633-988C-39D5-ADE7-23C4966FD995.dita"><apiname>CImImap4Settings</apiname></xref> class, and populate it the <xref href="GUID-373C75F8-FF3F-3084-A052-B4002B1FC2B4.dita"><apiname>PopulateDefaultImapSettingsL</apiname></xref> function
with required access settings. For example, username, port, email address,
password, SMTP authentication, and soon on. </p> </li>
<li id="GUID-8525A9E3-5141-5A19-86B5-760DD822932B"><p>Create an instance of
the <xref href="GUID-1838902F-9077-36D8-AD22-5E36E0AFD51D.dita"><apiname>CImapSyncDownloadRules</apiname></xref> class, and populate with required
download rules. </p> </li>
<li id="GUID-57386D22-7A87-5BE4-BF93-07F936F97B68"><p>Create the associated
IMAP accounts in central repository (CenRep) using the appropriate <xref href="GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE.dita#GUID-A7EF08E6-82AF-3577-B942-ABD532EDB7FE/GUID-3FECFA5C-3C53-3BD2-A710-D6069C08EB08"><apiname>CEmailAccounts::CreateImapAccountL()</apiname></xref> function,
which takes the <xref href="GUID-1838902F-9077-36D8-AD22-5E36E0AFD51D.dita"><apiname>CImapSyncDownloadRules</apiname></xref> reference. </p> </li>
</ol> </section>
<section><title>See also</title> <p> <xref href="GUID-24860917-0FE2-5C8F-B436-96928350996E.dita">Bearer
Mobility Overview</xref>  </p> </section>
</conbody></concept>