Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 98d6b53e11e983e268c3e19f14e091a0 > files > 1662

kdepim-devel-doc-3.5.9-9mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kioslaves/imap4: imapcommand.cc Source File (kioslaves/imap4)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



<style type="text/css">
<!--
hr { display: none; }
#content h2 { margin-left: 0px; }
table.mdTable { background-color: #f8f8f8; border: .2em solid #d7d7d7; }
td.mdRow { padding: 8px 20px; }
td.md { font-weight: bold; }
td.mdname1 { font-weight: bold; color: #602020; }
td.mdname { font-weight: bold; color: #602020;  }

-->
</style>

</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../../.."><img id="nav_header_logo" alt="Home" align="left" src="../../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>
  <img id="nav_header_logo_right" alt="" align="right" src="../../../pimlogo.png" border="0" />

  <div id="nav_header_title" align="left">KDE PIM API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_left" style="text-align: left;">
/ <a href="../../../">API Reference</a>
 / <a href="../../html/index.html">kioslaves</a> / <a href=".">imap4</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <h2><a name="content"></a>kioslaves/imap4</h2>


<!-- Generated by Doxygen 1.5.5 -->
<h1>imapcommand.cc</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/**********************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> *   imapcommand.cc  - IMAP4rev1 command handler</span>
<a name="l00004"></a>00004 <span class="comment"> *   Copyright (C) 2000 s.carstens@gmx.de</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> *   This program is free software; you can redistribute it and/or modify</span>
<a name="l00007"></a>00007 <span class="comment"> *   it under the terms of the GNU General Public License as published by</span>
<a name="l00008"></a>00008 <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00009"></a>00009 <span class="comment"> *   (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> *   This program is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00014"></a>00014 <span class="comment"> *   GNU General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> *   You should have received a copy of the GNU General Public License</span>
<a name="l00017"></a>00017 <span class="comment"> *   along with this program; if not, write to the Free Software</span>
<a name="l00018"></a>00018 <span class="comment"> *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> *   Send comments and bug fixes to s.carstens@gmx.de</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> *********************************************************************/</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include "imapcommand.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "rfcdecoder.h"</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">/*#include &lt;stdlib.h&gt;</span>
<a name="l00028"></a>00028 <span class="comment"></span>
<a name="l00029"></a>00029 <span class="comment">#include &lt;sys/types.h&gt;</span>
<a name="l00030"></a>00030 <span class="comment">#include &lt;sys/socket.h&gt;</span>
<a name="l00031"></a>00031 <span class="comment">#include &lt;sys/wait.h&gt;</span>
<a name="l00032"></a>00032 <span class="comment">#include &lt;sys/stat.h&gt;</span>
<a name="l00033"></a>00033 <span class="comment"></span>
<a name="l00034"></a>00034 <span class="comment">#include &lt;fcntl.h&gt;</span>
<a name="l00035"></a>00035 <span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">#include &lt;netinet/in.h&gt;</span>
<a name="l00037"></a>00037 <span class="comment">#include &lt;arpa/inet.h&gt;</span>
<a name="l00038"></a>00038 <span class="comment"></span>
<a name="l00039"></a>00039 <span class="comment">#include &lt;errno.h&gt;</span>
<a name="l00040"></a>00040 <span class="comment">#include &lt;signal.h&gt;</span>
<a name="l00041"></a>00041 <span class="comment">#include &lt;stdio.h&gt;</span>
<a name="l00042"></a>00042 <span class="comment">#include &lt;netdb.h&gt;</span>
<a name="l00043"></a>00043 <span class="comment">#include &lt;unistd.h&gt;</span>
<a name="l00044"></a>00044 <span class="comment">#include &lt;stdlib.h&gt;</span>
<a name="l00045"></a>00045 <span class="comment"></span>
<a name="l00046"></a>00046 <span class="comment">#include &lt;qregexp.h&gt;</span>
<a name="l00047"></a>00047 <span class="comment">#include &lt;qbuffer.h&gt;</span>
<a name="l00048"></a>00048 <span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">#include &lt;kprotocolmanager.h&gt;</span>
<a name="l00050"></a>00050 <span class="comment">#include &lt;ksock.h&gt;</span>
<a name="l00051"></a>00051 <span class="comment">#include &lt;kdebug.h&gt;</span>
<a name="l00052"></a>00052 <span class="comment">#include &lt;kinstance.h&gt;</span>
<a name="l00053"></a>00053 <span class="comment">#include &lt;kio/connection.h&gt;</span>
<a name="l00054"></a>00054 <span class="comment">#include &lt;kio/slaveinterface.h&gt;</span>
<a name="l00055"></a>00055 <span class="comment">#include &lt;kio/passdlg.h&gt;</span>
<a name="l00056"></a>00056 <span class="comment">#include &lt;klocale.h&gt; */</span>
<a name="l00057"></a>00057 
<a name="l00058"></a><a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e">00058</a> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand::imapCommand</a> ()
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060   mComplete = <span class="keyword">false</span>;
<a name="l00061"></a>00061   mId = QString::null;
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="classimapCommand.html#bd077c372318ebf4796f54d17e47d2d9">00064</a> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand::imapCommand</a> (<span class="keyword">const</span> QString &amp; <a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c" title="get the command">command</a>, <span class="keyword">const</span> QString &amp; <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a>)
<a name="l00065"></a>00065 <span class="comment">//  aCommand(NULL),</span>
<a name="l00066"></a>00066 <span class="comment">//  mResult(NULL),</span>
<a name="l00067"></a>00067 <span class="comment">//  mParameter(NULL)</span>
<a name="l00068"></a>00068 {
<a name="l00069"></a>00069   mComplete = <span class="keyword">false</span>;
<a name="l00070"></a>00070   aCommand = command;
<a name="l00071"></a>00071   aParameter = parameter;
<a name="l00072"></a>00072   mId = QString::null;
<a name="l00073"></a>00073 }
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="keywordtype">bool</span>
<a name="l00076"></a><a class="code" href="classimapCommand.html#723c3d549eac72ce5f1957ce5b5b6c23">00076</a> <a class="code" href="classimapCommand.html#723c3d549eac72ce5f1957ce5b5b6c23" title="is it complete?">imapCommand::isComplete</a> ()
<a name="l00077"></a>00077 {
<a name="l00078"></a>00078   <span class="keywordflow">return</span> mComplete;
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keyword">const</span> QString &amp;
<a name="l00082"></a><a class="code" href="classimapCommand.html#6d5ecfa4d0bede4986804f3885720a82">00082</a> <a class="code" href="classimapCommand.html#6d5ecfa4d0bede4986804f3885720a82" title="get the result of the command">imapCommand::result</a> ()
<a name="l00083"></a>00083 {
<a name="l00084"></a>00084   <span class="keywordflow">return</span> mResult;
<a name="l00085"></a>00085 }
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 <span class="keyword">const</span> QString &amp;
<a name="l00088"></a><a class="code" href="classimapCommand.html#235c592225a6ac434de601645f940a6e">00088</a> <a class="code" href="classimapCommand.html#235c592225a6ac434de601645f940a6e" title="get information about the result">imapCommand::resultInfo</a> ()
<a name="l00089"></a>00089 {
<a name="l00090"></a>00090   <span class="keywordflow">return</span> mResultInfo;
<a name="l00091"></a>00091 }
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="keyword">const</span> QString &amp;
<a name="l00094"></a><a class="code" href="classimapCommand.html#41076f41025bcdbebbab97b7afeb595d">00094</a> <a class="code" href="classimapCommand.html#41076f41025bcdbebbab97b7afeb595d" title="get the id">imapCommand::id</a> ()
<a name="l00095"></a>00095 {
<a name="l00096"></a>00096   <span class="keywordflow">return</span> mId;
<a name="l00097"></a>00097 }
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="keyword">const</span> QString &amp;
<a name="l00100"></a><a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931">00100</a> <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">imapCommand::parameter</a> ()
<a name="l00101"></a>00101 {
<a name="l00102"></a>00102   <span class="keywordflow">return</span> aParameter;
<a name="l00103"></a>00103 }
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">const</span> QString &amp;
<a name="l00106"></a><a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c">00106</a> <a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c" title="get the command">imapCommand::command</a> ()
<a name="l00107"></a>00107 {
<a name="l00108"></a>00108   <span class="keywordflow">return</span> aCommand;
<a name="l00109"></a>00109 }
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 <span class="keywordtype">void</span>
<a name="l00112"></a><a class="code" href="classimapCommand.html#01a7a7bee53e7b5c80f9caca1e62a0d4">00112</a> <a class="code" href="classimapCommand.html#01a7a7bee53e7b5c80f9caca1e62a0d4" title="set the id">imapCommand::setId</a> (<span class="keyword">const</span> QString &amp; <span class="keywordtype">id</span>)
<a name="l00113"></a>00113 {
<a name="l00114"></a>00114   <span class="keywordflow">if</span> (mId.isEmpty ())
<a name="l00115"></a>00115     mId = <span class="keywordtype">id</span>;
<a name="l00116"></a>00116 }
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 <span class="keywordtype">void</span>
<a name="l00119"></a><a class="code" href="classimapCommand.html#4ec1a18fe96a9a9bb90c1d3efff376e6">00119</a> <a class="code" href="classimapCommand.html#4ec1a18fe96a9a9bb90c1d3efff376e6" title="set the completed state">imapCommand::setComplete</a> ()
<a name="l00120"></a>00120 {
<a name="l00121"></a>00121   mComplete = <span class="keyword">true</span>;
<a name="l00122"></a>00122 }
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keywordtype">void</span>
<a name="l00125"></a><a class="code" href="classimapCommand.html#9e8b0a3fd5f9d1c5e9095cb71e834b04">00125</a> <a class="code" href="classimapCommand.html#9e8b0a3fd5f9d1c5e9095cb71e834b04" title="set the completed state">imapCommand::setResult</a> (<span class="keyword">const</span> QString &amp; <a class="code" href="classimapCommand.html#6d5ecfa4d0bede4986804f3885720a82" title="get the result of the command">result</a>)
<a name="l00126"></a>00126 {
<a name="l00127"></a>00127   mResult = result;
<a name="l00128"></a>00128 }
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="keywordtype">void</span>
<a name="l00131"></a><a class="code" href="classimapCommand.html#ede3eb7f608f100ea420ac873e30b084">00131</a> <a class="code" href="classimapCommand.html#ede3eb7f608f100ea420ac873e30b084" title="set the completed state">imapCommand::setResultInfo</a> (<span class="keyword">const</span> QString &amp; <a class="code" href="classimapCommand.html#6d5ecfa4d0bede4986804f3885720a82" title="get the result of the command">result</a>)
<a name="l00132"></a>00132 {
<a name="l00133"></a>00133   mResultInfo = result;
<a name="l00134"></a>00134 }
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="keywordtype">void</span>
<a name="l00137"></a><a class="code" href="classimapCommand.html#48cb5706927626ff16dcaca9a5899103">00137</a> <a class="code" href="classimapCommand.html#48cb5706927626ff16dcaca9a5899103" title="set the command">imapCommand::setCommand</a> (<span class="keyword">const</span> QString &amp; <a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c" title="get the command">command</a>)
<a name="l00138"></a>00138 {
<a name="l00139"></a>00139   aCommand = command;
<a name="l00140"></a>00140 }
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 <span class="keywordtype">void</span>
<a name="l00143"></a><a class="code" href="classimapCommand.html#09ce4d8a03661356a16c3412209d73b0">00143</a> <a class="code" href="classimapCommand.html#09ce4d8a03661356a16c3412209d73b0" title="set the command parameter(s)">imapCommand::setParameter</a> (<span class="keyword">const</span> QString &amp; <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a>)
<a name="l00144"></a>00144 {
<a name="l00145"></a>00145   aParameter = parameter;
<a name="l00146"></a>00146 }
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="keyword">const</span> QString
<a name="l00149"></a><a class="code" href="classimapCommand.html#fe0e097fb3acd1346c92b3a85cc20694">00149</a> <a class="code" href="classimapCommand.html#fe0e097fb3acd1346c92b3a85cc20694" title="returns the data to send to the server The function returns the complete data to...">imapCommand::getStr</a> ()
<a name="l00150"></a>00150 {
<a name="l00151"></a>00151   <span class="keywordflow">if</span> (<a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a>().isEmpty())
<a name="l00152"></a>00152     <span class="keywordflow">return</span> <a class="code" href="classimapCommand.html#41076f41025bcdbebbab97b7afeb595d" title="get the id">id</a>() + <span class="stringliteral">" "</span> + <a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c" title="get the command">command</a>() + <span class="stringliteral">"\r\n"</span>;
<a name="l00153"></a>00153   <span class="keywordflow">else</span>
<a name="l00154"></a>00154     <span class="keywordflow">return</span> <a class="code" href="classimapCommand.html#41076f41025bcdbebbab97b7afeb595d" title="get the id">id</a>() + <span class="stringliteral">" "</span> + <a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c" title="get the command">command</a>() + <span class="stringliteral">" "</span> + <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a>() + <span class="stringliteral">"\r\n"</span>;
<a name="l00155"></a>00155 }
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00158"></a><a class="code" href="classimapCommand.html#18eac0a9fe90bd530e4360003063e00d">00158</a> <a class="code" href="classimapCommand.html#18eac0a9fe90bd530e4360003063e00d" title="Create a NOOP command.">imapCommand::clientNoop</a> ()
<a name="l00159"></a>00159 {
<a name="l00160"></a>00160   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"NOOP"</span>, <span class="stringliteral">""</span>);
<a name="l00161"></a>00161 }
<a name="l00162"></a>00162 
<a name="l00163"></a>00163 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00164"></a><a class="code" href="classimapCommand.html#6264fd52a1b750e7df4dca24b223c047">00164</a> <a class="code" href="classimapCommand.html#6264fd52a1b750e7df4dca24b223c047" title="Create a FETCH command.">imapCommand::clientFetch</a> (ulong uid, <span class="keyword">const</span> QString &amp; fields, <span class="keywordtype">bool</span> nouid)
<a name="l00165"></a>00165 {
<a name="l00166"></a>00166   <span class="keywordflow">return</span> <a class="code" href="classimapCommand.html#6264fd52a1b750e7df4dca24b223c047" title="Create a FETCH command.">clientFetch</a> (uid, uid, fields, nouid);
<a name="l00167"></a>00167 }
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00170"></a><a class="code" href="classimapCommand.html#35cbf3d3e3cda595c318dd79cda2f2f5">00170</a> <a class="code" href="classimapCommand.html#6264fd52a1b750e7df4dca24b223c047" title="Create a FETCH command.">imapCommand::clientFetch</a> (ulong fromUid, ulong toUid, <span class="keyword">const</span> QString &amp; fields,
<a name="l00171"></a>00171                           <span class="keywordtype">bool</span> nouid)
<a name="l00172"></a>00172 {
<a name="l00173"></a>00173   QString uid = QString::number(fromUid);
<a name="l00174"></a>00174 
<a name="l00175"></a>00175   <span class="keywordflow">if</span> (fromUid != toUid)
<a name="l00176"></a>00176   {
<a name="l00177"></a>00177     uid += <span class="stringliteral">":"</span>;
<a name="l00178"></a>00178     <span class="keywordflow">if</span> (toUid &lt; fromUid)
<a name="l00179"></a>00179       uid += <span class="stringliteral">"*"</span>;
<a name="l00180"></a>00180     <span class="keywordflow">else</span>
<a name="l00181"></a>00181       uid += QString::number(toUid);
<a name="l00182"></a>00182   }
<a name="l00183"></a>00183   <span class="keywordflow">return</span> <a class="code" href="classimapCommand.html#6264fd52a1b750e7df4dca24b223c047" title="Create a FETCH command.">clientFetch</a> (uid, fields, nouid);
<a name="l00184"></a>00184 }
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00187"></a><a class="code" href="classimapCommand.html#3ae2e5b6cee8b8fa3da06ec2059c901c">00187</a> <a class="code" href="classimapCommand.html#6264fd52a1b750e7df4dca24b223c047" title="Create a FETCH command.">imapCommand::clientFetch</a> (<span class="keyword">const</span> QString &amp; sequence, <span class="keyword">const</span> QString &amp; fields,
<a name="l00188"></a>00188                           <span class="keywordtype">bool</span> nouid)
<a name="l00189"></a>00189 {
<a name="l00190"></a>00190   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (nouid ? <span class="stringliteral">"FETCH"</span> : <span class="stringliteral">"UID FETCH"</span>,
<a name="l00191"></a>00191                           sequence + <span class="stringliteral">" ("</span> + fields + <span class="stringliteral">")"</span>);
<a name="l00192"></a>00192 }
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00195"></a><a class="code" href="classimapCommand.html#56dd1504d64f1e6296441ce725d5a6e5">00195</a> <a class="code" href="classimapCommand.html#56dd1504d64f1e6296441ce725d5a6e5" title="Create a LIST command.">imapCommand::clientList</a> (<span class="keyword">const</span> QString &amp; reference, <span class="keyword">const</span> QString &amp; path,
<a name="l00196"></a>00196                          <span class="keywordtype">bool</span> lsub)
<a name="l00197"></a>00197 {
<a name="l00198"></a>00198   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (lsub ? <span class="stringliteral">"LSUB"</span> : <span class="stringliteral">"LIST"</span>,
<a name="l00199"></a>00199                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (reference) +
<a name="l00200"></a>00200                           <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) + <span class="stringliteral">"\""</span>);
<a name="l00201"></a>00201 }
<a name="l00202"></a>00202 
<a name="l00203"></a>00203 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00204"></a><a class="code" href="classimapCommand.html#102be5d854bbbdcafab5c09ec0b24bad">00204</a> <a class="code" href="classimapCommand.html#102be5d854bbbdcafab5c09ec0b24bad" title="Create a SELECT command.">imapCommand::clientSelect</a> (<span class="keyword">const</span> QString &amp; path, <span class="keywordtype">bool</span> examine)
<a name="l00205"></a>00205 {
<a name="l00206"></a>00206   Q_UNUSED(examine);
<a name="l00210"></a>00210   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"SELECT"</span>,
<a name="l00211"></a>00211                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) + <span class="stringliteral">"\""</span>);
<a name="l00212"></a>00212 }
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00215"></a><a class="code" href="classimapCommand.html#b8ebfebf14090f6e27dbb2a304b20d67">00215</a> <a class="code" href="classimapCommand.html#b8ebfebf14090f6e27dbb2a304b20d67" title="Create a CLOSE command.">imapCommand::clientClose</a>()
<a name="l00216"></a>00216 {
<a name="l00217"></a>00217   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a>(<span class="stringliteral">"CLOSE"</span>, <span class="stringliteral">""</span>);
<a name="l00218"></a>00218 }
<a name="l00219"></a>00219 
<a name="l00220"></a>00220 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00221"></a><a class="code" href="classimapCommand.html#c44203e147cfc19ebd91133f0631229f">00221</a> <a class="code" href="classimapCommand.html#c44203e147cfc19ebd91133f0631229f" title="Create a COPY command.">imapCommand::clientCopy</a> (<span class="keyword">const</span> QString &amp; box, <span class="keyword">const</span> QString &amp; sequence,
<a name="l00222"></a>00222                          <span class="keywordtype">bool</span> nouid)
<a name="l00223"></a>00223 {
<a name="l00224"></a>00224   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (nouid ? <span class="stringliteral">"COPY"</span> : <span class="stringliteral">"UID COPY"</span>,
<a name="l00225"></a>00225                           sequence + <span class="stringliteral">" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box) + <span class="stringliteral">"\""</span>);
<a name="l00226"></a>00226 }
<a name="l00227"></a>00227 
<a name="l00228"></a>00228 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00229"></a><a class="code" href="classimapCommand.html#69c65b6d83dc7ad9944f5c2f69158d2e">00229</a> <a class="code" href="classimapCommand.html#69c65b6d83dc7ad9944f5c2f69158d2e" title="Create a APPEND command.">imapCommand::clientAppend</a> (<span class="keyword">const</span> QString &amp; box, <span class="keyword">const</span> QString &amp; flags,
<a name="l00230"></a>00230                            ulong size)
<a name="l00231"></a>00231 {
<a name="l00232"></a>00232   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"APPEND"</span>,
<a name="l00233"></a>00233                           <span class="stringliteral">"\""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box) + <span class="stringliteral">"\" "</span> +
<a name="l00234"></a>00234                           ((flags.isEmpty()) ? <span class="stringliteral">""</span> : (<span class="stringliteral">"("</span> + flags + <span class="stringliteral">") "</span>)) +
<a name="l00235"></a>00235                           <span class="stringliteral">"{"</span> + QString::number(size) + <span class="stringliteral">"}"</span>);
<a name="l00236"></a>00236 }
<a name="l00237"></a>00237 
<a name="l00238"></a>00238 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00239"></a><a class="code" href="classimapCommand.html#5ded7c3efbf021ef2ff5f57112f2b096">00239</a> <a class="code" href="classimapCommand.html#5ded7c3efbf021ef2ff5f57112f2b096" title="Create a STATUS command.">imapCommand::clientStatus</a> (<span class="keyword">const</span> QString &amp; path, <span class="keyword">const</span> QString &amp; parameters)
<a name="l00240"></a>00240 {
<a name="l00241"></a>00241   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"STATUS"</span>,
<a name="l00242"></a>00242                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) +
<a name="l00243"></a>00243                           <span class="stringliteral">"\" ("</span> + parameters + <span class="stringliteral">")"</span>);
<a name="l00244"></a>00244 }
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00247"></a><a class="code" href="classimapCommand.html#23cbabbe5e15854b1be2d539e53d29c8">00247</a> <a class="code" href="classimapCommand.html#23cbabbe5e15854b1be2d539e53d29c8" title="Create a CREATE command.">imapCommand::clientCreate</a> (<span class="keyword">const</span> QString &amp; path)
<a name="l00248"></a>00248 {
<a name="l00249"></a>00249   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"CREATE"</span>,
<a name="l00250"></a>00250                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) + <span class="stringliteral">"\""</span>);
<a name="l00251"></a>00251 }
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00254"></a><a class="code" href="classimapCommand.html#88e3bbc7b4200846d1393ca594f9156d">00254</a> <a class="code" href="classimapCommand.html#88e3bbc7b4200846d1393ca594f9156d" title="Create a DELETE command.">imapCommand::clientDelete</a> (<span class="keyword">const</span> QString &amp; path)
<a name="l00255"></a>00255 {
<a name="l00256"></a>00256   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"DELETE"</span>,
<a name="l00257"></a>00257                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) + <span class="stringliteral">"\""</span>);
<a name="l00258"></a>00258 }
<a name="l00259"></a>00259 
<a name="l00260"></a>00260 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00261"></a><a class="code" href="classimapCommand.html#f69516bb4c565f744dc15da877d068be">00261</a> <a class="code" href="classimapCommand.html#f69516bb4c565f744dc15da877d068be" title="Create a SUBSCRIBE command.">imapCommand::clientSubscribe</a> (<span class="keyword">const</span> QString &amp; path)
<a name="l00262"></a>00262 {
<a name="l00263"></a>00263   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"SUBSCRIBE"</span>,
<a name="l00264"></a>00264                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) + <span class="stringliteral">"\""</span>);
<a name="l00265"></a>00265 }
<a name="l00266"></a>00266 
<a name="l00267"></a>00267 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00268"></a><a class="code" href="classimapCommand.html#b359c039dddba78d8b61c832c5f17cbf">00268</a> <a class="code" href="classimapCommand.html#b359c039dddba78d8b61c832c5f17cbf" title="Create a UNSUBSCRIBE command.">imapCommand::clientUnsubscribe</a> (<span class="keyword">const</span> QString &amp; path)
<a name="l00269"></a>00269 {
<a name="l00270"></a>00270   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"UNSUBSCRIBE"</span>,
<a name="l00271"></a>00271                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (path) + <span class="stringliteral">"\""</span>);
<a name="l00272"></a>00272 }
<a name="l00273"></a>00273 
<a name="l00274"></a>00274 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00275"></a><a class="code" href="classimapCommand.html#b0e25aaa3e5e47fc8de32530a3bb1d76">00275</a> <a class="code" href="classimapCommand.html#b0e25aaa3e5e47fc8de32530a3bb1d76" title="Create a EXPUNGE command.">imapCommand::clientExpunge</a> ()
<a name="l00276"></a>00276 {
<a name="l00277"></a>00277   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"EXPUNGE"</span>, QString (<span class="stringliteral">""</span>));
<a name="l00278"></a>00278 }
<a name="l00279"></a>00279 
<a name="l00280"></a>00280 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00281"></a><a class="code" href="classimapCommand.html#0e255269ef033fe7b1172a96db318710">00281</a> <a class="code" href="classimapCommand.html#0e255269ef033fe7b1172a96db318710" title="Create a RENAME command.">imapCommand::clientRename</a> (<span class="keyword">const</span> QString &amp; src, <span class="keyword">const</span> QString &amp; dest)
<a name="l00282"></a>00282 {
<a name="l00283"></a>00283   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"RENAME"</span>,
<a name="l00284"></a>00284                           QString (<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (src) +
<a name="l00285"></a>00285                           <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (dest) + <span class="stringliteral">"\""</span>);
<a name="l00286"></a>00286 }
<a name="l00287"></a>00287 
<a name="l00288"></a>00288 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00289"></a><a class="code" href="classimapCommand.html#9575c5abff6a8dd849f79c28e2d09a70">00289</a> <a class="code" href="classimapCommand.html#9575c5abff6a8dd849f79c28e2d09a70" title="Create a SEARCH command.">imapCommand::clientSearch</a> (<span class="keyword">const</span> QString &amp; search, <span class="keywordtype">bool</span> nouid)
<a name="l00290"></a>00290 {
<a name="l00291"></a>00291   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (nouid ? <span class="stringliteral">"SEARCH"</span> : <span class="stringliteral">"UID SEARCH"</span>, search);
<a name="l00292"></a>00292 }
<a name="l00293"></a>00293 
<a name="l00294"></a>00294 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00295"></a><a class="code" href="classimapCommand.html#550eb42c5ad0fb57a62051cdafa4faca">00295</a> <a class="code" href="classimapCommand.html#550eb42c5ad0fb57a62051cdafa4faca" title="Create a STORE command.">imapCommand::clientStore</a> (<span class="keyword">const</span> QString &amp; <span class="keyword">set</span>, <span class="keyword">const</span> QString &amp; item,
<a name="l00296"></a>00296                           <span class="keyword">const</span> QString &amp; data, <span class="keywordtype">bool</span> nouid)
<a name="l00297"></a>00297 {
<a name="l00298"></a>00298   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (nouid ? <span class="stringliteral">"STORE"</span> : <span class="stringliteral">"UID STORE"</span>,
<a name="l00299"></a>00299                           <span class="keyword">set</span> + <span class="stringliteral">" "</span> + item + <span class="stringliteral">" ("</span> + data + <span class="stringliteral">")"</span>);
<a name="l00300"></a>00300 }
<a name="l00301"></a>00301 
<a name="l00302"></a>00302 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00303"></a><a class="code" href="classimapCommand.html#cb38f845bc3614cff83529189094ad8a">00303</a> <a class="code" href="classimapCommand.html#cb38f845bc3614cff83529189094ad8a" title="Create a LOGOUT command.">imapCommand::clientLogout</a> ()
<a name="l00304"></a>00304 {
<a name="l00305"></a>00305   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"LOGOUT"</span>, <span class="stringliteral">""</span>);
<a name="l00306"></a>00306 }
<a name="l00307"></a>00307 
<a name="l00308"></a>00308 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00309"></a><a class="code" href="classimapCommand.html#b4fd5ee8688bd847e52ac7f7bb103391">00309</a> <a class="code" href="classimapCommand.html#b4fd5ee8688bd847e52ac7f7bb103391" title="Create a STARTTLS command.">imapCommand::clientStartTLS</a> ()
<a name="l00310"></a>00310 {
<a name="l00311"></a>00311   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"STARTTLS"</span>, <span class="stringliteral">""</span>);
<a name="l00312"></a>00312 }
<a name="l00313"></a>00313 
<a name="l00314"></a>00314 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00315"></a><a class="code" href="classimapCommand.html#595fa771d91d856f180472b31535b989">00315</a> <a class="code" href="classimapCommand.html#595fa771d91d856f180472b31535b989" title="Create a SETACL command.">imapCommand::clientSetACL</a>( <span class="keyword">const</span> QString&amp; box, <span class="keyword">const</span> QString&amp; user, <span class="keyword">const</span> QString&amp; acl )
<a name="l00316"></a>00316 {
<a name="l00317"></a>00317   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"SETACL"</span>, QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00318"></a>00318                           + <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (user)
<a name="l00319"></a>00319                           + <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (acl) + <span class="stringliteral">"\""</span>);
<a name="l00320"></a>00320 }
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00323"></a><a class="code" href="classimapCommand.html#a63fa67c2a0f1ac3901648c299e7f740">00323</a> <a class="code" href="classimapCommand.html#a63fa67c2a0f1ac3901648c299e7f740" title="Create a DELETEACL command.">imapCommand::clientDeleteACL</a>( <span class="keyword">const</span> QString&amp; box, <span class="keyword">const</span> QString&amp; user )
<a name="l00324"></a>00324 {
<a name="l00325"></a>00325   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"DELETEACL"</span>, QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00326"></a>00326                           + <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (user)
<a name="l00327"></a>00327                           + <span class="stringliteral">"\""</span>);
<a name="l00328"></a>00328 }
<a name="l00329"></a>00329 
<a name="l00330"></a>00330 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00331"></a><a class="code" href="classimapCommand.html#a885406a8475bae86ef9b809624350b9">00331</a> <a class="code" href="classimapCommand.html#a885406a8475bae86ef9b809624350b9" title="Create a GETACL command.">imapCommand::clientGetACL</a>( <span class="keyword">const</span> QString&amp; box )
<a name="l00332"></a>00332 {
<a name="l00333"></a>00333   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"GETACL"</span>, QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00334"></a>00334                           + <span class="stringliteral">"\""</span>);
<a name="l00335"></a>00335 }
<a name="l00336"></a>00336 
<a name="l00337"></a>00337 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00338"></a><a class="code" href="classimapCommand.html#45ff619a83d4bc401284adfbab877075">00338</a> <a class="code" href="classimapCommand.html#45ff619a83d4bc401284adfbab877075" title="Create a LISTRIGHTS command.">imapCommand::clientListRights</a>( <span class="keyword">const</span> QString&amp; box, <span class="keyword">const</span> QString&amp; user )
<a name="l00339"></a>00339 {
<a name="l00340"></a>00340   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"LISTRIGHTS"</span>, QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00341"></a>00341                           + <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (user)
<a name="l00342"></a>00342                           + <span class="stringliteral">"\""</span>);
<a name="l00343"></a>00343 }
<a name="l00344"></a>00344 
<a name="l00345"></a>00345 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00346"></a><a class="code" href="classimapCommand.html#13f1a7956a1f81ed28f0b643bd3e16cf">00346</a> <a class="code" href="classimapCommand.html#13f1a7956a1f81ed28f0b643bd3e16cf" title="Create a MYRIGHTS command.">imapCommand::clientMyRights</a>( <span class="keyword">const</span> QString&amp; box )
<a name="l00347"></a>00347 {
<a name="l00348"></a>00348   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"MYRIGHTS"</span>, QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00349"></a>00349                           + <span class="stringliteral">"\""</span>);
<a name="l00350"></a>00350 }
<a name="l00351"></a>00351 
<a name="l00352"></a>00352 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00353"></a><a class="code" href="classimapCommand.html#25b5c3be3ea45c345e7aa72460282bf0">00353</a> <a class="code" href="classimapCommand.html#25b5c3be3ea45c345e7aa72460282bf0" title="Create a SETANNOTATION command.">imapCommand::clientSetAnnotation</a>( <span class="keyword">const</span> QString&amp; box, <span class="keyword">const</span> QString&amp; entry, <span class="keyword">const</span> QMap&lt;QString, QString&gt;&amp; attributes )
<a name="l00354"></a>00354 {
<a name="l00355"></a>00355   QString <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a> = QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00356"></a>00356                       + <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (entry)
<a name="l00357"></a>00357                       + <span class="stringliteral">"\" ("</span>;
<a name="l00358"></a>00358   <span class="keywordflow">for</span>( QMap&lt;QString,QString&gt;::ConstIterator it = attributes.begin(); it != attributes.end(); ++it ) {
<a name="l00359"></a>00359     parameter += <span class="stringliteral">"\""</span>;
<a name="l00360"></a>00360     parameter += <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (it.key());
<a name="l00361"></a>00361     parameter += <span class="stringliteral">"\" \""</span>;
<a name="l00362"></a>00362     parameter += <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (it.data());
<a name="l00363"></a>00363     parameter += <span class="stringliteral">"\" "</span>;
<a name="l00364"></a>00364   }
<a name="l00365"></a>00365   <span class="comment">// Turn last space into a ')'</span>
<a name="l00366"></a>00366   parameter[parameter.length()-1] = <span class="charliteral">')'</span>;
<a name="l00367"></a>00367 
<a name="l00368"></a>00368   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"SETANNOTATION"</span>, parameter);
<a name="l00369"></a>00369 }
<a name="l00370"></a>00370 
<a name="l00371"></a>00371 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00372"></a><a class="code" href="classimapCommand.html#96fdab5a85c5750eea0c3d0ad12edf62">00372</a> <a class="code" href="classimapCommand.html#96fdab5a85c5750eea0c3d0ad12edf62" title="Create a GETANNOTATION command.">imapCommand::clientGetAnnotation</a>( <span class="keyword">const</span> QString&amp; box, <span class="keyword">const</span> QString&amp; entry, <span class="keyword">const</span> QStringList&amp; attributeNames )
<a name="l00373"></a>00373 {
<a name="l00374"></a>00374   QString <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a> = QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box)
<a name="l00375"></a>00375                           + <span class="stringliteral">"\" \""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (entry)
<a name="l00376"></a>00376                           + <span class="stringliteral">"\" "</span>;
<a name="l00377"></a>00377   <span class="keywordflow">if</span> ( attributeNames.count() == 1 )
<a name="l00378"></a>00378     parameter += <span class="stringliteral">"\""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (attributeNames.first()) + <span class="charliteral">'"'</span>;
<a name="l00379"></a>00379   <span class="keywordflow">else</span> {
<a name="l00380"></a>00380     parameter += <span class="charliteral">'('</span>;
<a name="l00381"></a>00381     <span class="keywordflow">for</span>( QStringList::ConstIterator it = attributeNames.begin(); it != attributeNames.end(); ++it ) {
<a name="l00382"></a>00382       parameter += <span class="stringliteral">"\""</span> + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (*it) + <span class="stringliteral">"\" "</span>;
<a name="l00383"></a>00383     }
<a name="l00384"></a>00384     <span class="comment">// Turn last space into a ')'</span>
<a name="l00385"></a>00385     parameter[parameter.length()-1] = <span class="charliteral">')'</span>;
<a name="l00386"></a>00386   }
<a name="l00387"></a>00387   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"GETANNOTATION"</span>, parameter);
<a name="l00388"></a>00388 }
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00391"></a><a class="code" href="classimapCommand.html#82954d869b6bf83c10b68b76fd4d55d9">00391</a> <a class="code" href="classimapCommand.html#82954d869b6bf83c10b68b76fd4d55d9" title="Create a NAMESPACE command.">imapCommand::clientNamespace</a>()
<a name="l00392"></a>00392 {
<a name="l00393"></a>00393   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a>(<span class="stringliteral">"NAMESPACE"</span>, <span class="stringliteral">""</span>);
<a name="l00394"></a>00394 }
<a name="l00395"></a>00395 
<a name="l00396"></a>00396 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00397"></a><a class="code" href="classimapCommand.html#b72cb98a1f03d61fbc14501b956fc825">00397</a> <a class="code" href="classimapCommand.html#b72cb98a1f03d61fbc14501b956fc825" title="Create a GETQUOTAROOT command.">imapCommand::clientGetQuotaroot</a>( <span class="keyword">const</span> QString&amp; box )
<a name="l00398"></a>00398 {
<a name="l00399"></a>00399   QString <a class="code" href="classimapCommand.html#b76e7c2a8601cd904a9fb08aa28fd931" title="get the parameter">parameter</a> = QString(<span class="stringliteral">"\""</span>) + <a class="code" href="classrfcDecoder.html#0fa802aa63f2ba44e8d08813d42e69d0" title="Convert Unicode path to modified UTF-7 IMAP mailbox.">rfcDecoder::toIMAP</a> (box) + <span class="charliteral">'"'</span>;
<a name="l00400"></a>00400   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (<span class="stringliteral">"GETQUOTAROOT"</span>, parameter);
<a name="l00401"></a>00401 }
<a name="l00402"></a>00402 
<a name="l00403"></a>00403 <a class="code" href="classimapCommand.html" title="encapulate a IMAP command">imapCommand</a> *
<a name="l00404"></a><a class="code" href="classimapCommand.html#c4a036475f0d34588600ea57f281be95">00404</a> <a class="code" href="classimapCommand.html#c4a036475f0d34588600ea57f281be95" title="Create a custom command.">imapCommand::clientCustom</a>( <span class="keyword">const</span> QString&amp; <a class="code" href="classimapCommand.html#0475f2554615137aab1d1663d1330f8c" title="get the command">command</a>, <span class="keyword">const</span> QString&amp; arguments )
<a name="l00405"></a>00405 {
<a name="l00406"></a>00406   <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classimapCommand.html#ea22ea31bc67aebf4662ad61a355f51e" title="Constructor.">imapCommand</a> (command, arguments);
<a name="l00407"></a>00407 }
<a name="l00408"></a>00408 
</pre></div></div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kioslaves/imap4</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classIMAP4Protocol.html">imap4protocol</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../../akregator/html/index.html">akregator</a></li><li>&nbsp;&nbsp;<a href="../../../akregator/src/html/index.html">src</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../akregator/src/librss/html/index.html">librss</a></li><li><a href="../../../certmanager/html/index.html">certmanager</a></li><li>&nbsp;&nbsp;<a href="../../../certmanager/lib/html/index.html">lib</a></li><li><a href="../../../kaddressbook/html/index.html">kaddressbook</a></li><li><a href="../../../kalarm/html/index.html">kalarm</a></li><li>&nbsp;&nbsp;<a href="../../../kalarm/lib/html/index.html">lib</a></li><li><a href="../../../kandy/html/index.html">kandy</a></li><li><a href="../../../karm/html/index.html">karm</a></li><li><a href="../../../kdgantt/html/index.html">kdgantt</a></li><li><a href="../../../kgantt/html/index.html">kgantt</a></li><li><a href="../../../kioslaves/html/index.html">kioslaves</a></li><li>&nbsp;&nbsp;<a href="../../../kioslaves/imap4/html/index.html">imap4</a></li><li>&nbsp;&nbsp;<a href="../../../kioslaves/mbox/html/index.html">mbox</a></li><li><a href="../../../kitchensync/html/index.html">kitchensync</a></li><li><a href="../../../kmail/html/index.html">kmail</a></li><li><a href="../../../knotes/html/index.html">knotes</a></li><li><a href="../../../konsolekalendar/html/index.html">konsolekalendar</a></li><li><a href="../../../kontact/html/index.html">kontact</a></li><li><a href="../../../korganizer/html/index.html">korganizer</a></li><li><a href="../../../kpilot/html/index.html">kpilot</a></li><li>&nbsp;&nbsp;<a href="../../../kpilot/kpilot/html/index.html">kpilot</a></li><li>&nbsp;&nbsp;<a href="../../../kpilot/lib/html/index.html">lib</a></li><li><a href="../../../libemailfunctions/html/index.html">libemailfunctions</a></li><li><a href="../../../libkcal/html/index.html">libkcal</a></li><li><a href="../../../libkdepim/html/index.html">libkdepim</a></li><li><a href="../../../libkholidays/html/index.html">libkholidays</a></li><li><a href="../../../libkmime/html/index.html">libkmime</a></li><li><a href="../../../libkpgp/html/index.html">libkpgp</a></li><li><a href="../../../libkpimidentities/html/index.html">libkpimidentities</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>