<?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>kmail: kmmessage.h Source File (kmail)</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=".">kmail</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>kmail</h2> <!-- Generated by Doxygen 1.5.5 --> <h1>kmmessage.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: C++; c-file-style: "gnu" -*-</span> <a name="l00002"></a>00002 <span class="comment">/* kmmessage.h: Mime Message Class</span> <a name="l00003"></a>00003 <span class="comment"> *</span> <a name="l00004"></a>00004 <span class="comment"> */</span> <a name="l00005"></a>00005 <span class="preprocessor">#ifndef kmmessage_h</span> <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define kmmessage_h</span> <a name="l00007"></a>00007 <span class="preprocessor"></span> <a name="l00010"></a>00010 <span class="comment">// for large file support</span> <a name="l00011"></a>00011 <span class="preprocessor">#include <config.h></span> <a name="l00012"></a>00012 <span class="preprocessor">#include <sys/types.h></span> <a name="l00013"></a>00013 <a name="l00014"></a>00014 <span class="preprocessor">#include <mimelib/string.h></span> <a name="l00015"></a>00015 <span class="preprocessor">#include "kmmsgbase.h"</span> <a name="l00016"></a>00016 <span class="preprocessor">#include "isubject.h"</span> <a name="l00017"></a>00017 <a name="l00018"></a>00018 <span class="preprocessor">#include <kmime_mdn.h></span> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="preprocessor">#include<libemailfunctions/email.h></span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a name="l00023"></a>00023 <span class="keyword">class </span>QValueList; <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="keyword">class </span>QStringList; <a name="l00026"></a>00026 <span class="keyword">class </span>QString; <a name="l00027"></a>00027 <span class="keyword">class </span>QTextCodec; <a name="l00028"></a>00028 <span class="keyword">class </span>QStrList; <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>; <a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classKMFolderIndex.html" title="A FolderStorage with an index for faster access to often used message properties...">KMFolderIndex</a>; <a name="l00032"></a>00032 <span class="keyword">class </span>DwMessage; <a name="l00033"></a>00033 <span class="keyword">class </span>KMMessagePart; <a name="l00034"></a>00034 <span class="keyword">class </span>KMMsgInfo; <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="classKMHeaders.html" title="The widget that shows the contents of folders.">KMHeaders</a>; <a name="l00036"></a>00036 <span class="keyword">class </span>KMForwardDigestCommand; <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="keyword">namespace </span>KMime { <a name="l00039"></a>00039 <span class="keyword">class </span>CharFreq; <a name="l00040"></a>00040 <span class="keyword">namespace </span>Types { <a name="l00041"></a>00041 <span class="keyword">class </span>AddrSpec; <a name="l00042"></a>00042 <span class="keyword">class </span>Address; <a name="l00043"></a>00043 <span class="keyword">typedef</span> QValueList<Address> AddressList; <a name="l00044"></a>00044 <span class="keyword">typedef</span> QValueList<AddrSpec> AddrSpecList; <a name="l00045"></a>00045 } <a name="l00046"></a>00046 } <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="keyword">namespace </span>KMail { <a name="l00049"></a>00049 <span class="keyword">class </span>HeaderStrategy; <a name="l00050"></a>00050 } <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keyword">class </span>DwBodyPart; <a name="l00053"></a>00053 <span class="keyword">class </span>DwMediaType; <a name="l00054"></a>00054 <span class="keyword">class </span>DwHeaders; <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="keyword">class </span>partNode; <a name="l00057"></a>00057 <a name="l00058"></a>00058 <span class="keyword">namespace </span>KMail { <a name="l00059"></a>00059 <span class="keyword">enum</span> ReplyStrategy { ReplySmart = 0, <a name="l00060"></a>00060 ReplyAuthor, <a name="l00061"></a>00061 ReplyList, <a name="l00062"></a>00062 ReplyAll, <a name="l00063"></a>00063 ReplyNone }; <a name="l00064"></a>00064 } <a name="l00065"></a>00065 <a name="l00067"></a><a class="code" href="classKMMessage.html">00067</a> <span class="keyword">class </span><a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>: <span class="keyword">public</span> KMMsgBase, <span class="keyword">public</span> KMail::ISubject <a name="l00068"></a>00068 { <a name="l00069"></a>00069 <span class="keyword">friend</span> class ::KMForwardDigestCommand; <span class="comment">// needed for MIME Digest forward</span> <a name="l00070"></a>00070 <a name="l00071"></a>00071 <span class="keyword">public</span>: <a name="l00072"></a>00072 <span class="comment">// promote some of KMMsgBase's methods to public:</span> <a name="l00073"></a>00073 <span class="keyword">using</span> KMMsgBase::parent; <a name="l00074"></a>00074 <span class="keyword">using</span> KMMsgBase::setParent; <a name="l00075"></a>00075 <span class="keyword">using</span> KMMsgBase::enableUndo; <span class="comment">// KMFolder</span> <a name="l00076"></a>00076 <span class="keyword">using</span> KMMsgBase::setEnableUndo; <span class="comment">// dto.</span> <a name="l00077"></a>00077 <span class="keyword">using</span> KMMsgBase::isRead; <span class="comment">// dto.</span> <a name="l00078"></a>00078 <span class="keyword">using</span> KMMsgBase::isUnread; <span class="comment">// dto.</span> <a name="l00079"></a>00079 <span class="keyword">using</span> KMMsgBase::isNew; <span class="comment">// dto.</span> <a name="l00080"></a>00080 <span class="keyword">using</span> KMMsgBase::isOld; <a name="l00081"></a>00081 <span class="keyword">using</span> KMMsgBase::isWatched; <a name="l00082"></a>00082 <span class="keyword">using</span> KMMsgBase::isIgnored; <a name="l00083"></a>00083 <span class="keyword">using</span> KMMsgBase::setEncryptionStateChar; <span class="comment">// KMAcct*</span> <a name="l00084"></a>00084 <span class="keyword">using</span> KMMsgBase::setSignatureStateChar; <span class="comment">// dto.</span> <a name="l00085"></a>00085 <a name="l00087"></a>00087 <a class="code" href="classKMMessage.html#cdefe60902b88abc22b706bd89aede61" title="Straight forward initialization.">KMMessage</a>(<a class="code" href="classKMFolder.html" title="Mail folder.">KMFolder</a>* parent=0); <a name="l00088"></a>00088 <a name="l00092"></a>00092 <a class="code" href="classKMMessage.html#cdefe60902b88abc22b706bd89aede61" title="Straight forward initialization.">KMMessage</a>(DwMessage*); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <a class="code" href="classKMMessage.html#cdefe60902b88abc22b706bd89aede61" title="Straight forward initialization.">KMMessage</a>(KMMsgInfo& <a class="code" href="classKMMessage.html#8a991889002061d8b1dae4f5decd1679" title="Get the KMMsgInfo object that was set with setMsgInfo().">msgInfo</a>); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a class="code" href="classKMMessage.html#cdefe60902b88abc22b706bd89aede61" title="Straight forward initialization.">KMMessage</a>( <span class="keyword">const</span> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>& other ); <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="preprocessor">#if 0 // currently unused</span> <a name="l00101"></a>00101 <span class="preprocessor"></span> <a name="l00102"></a>00102 <span class="keyword">const</span> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>& operator=( <span class="keyword">const</span> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>& other ) { <a name="l00103"></a>00103 <span class="keywordflow">if</span>( &other == <span class="keyword">this</span> ) <a name="l00104"></a>00104 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00105"></a>00105 assign( other ); <a name="l00106"></a>00106 <span class="keywordflow">return</span> *<span class="keyword">this</span>; <a name="l00107"></a>00107 } <a name="l00108"></a>00108 <span class="preprocessor">#endif</span> <a name="l00109"></a>00109 <span class="preprocessor"></span> <a name="l00111"></a>00111 <span class="keyword">virtual</span> <a class="code" href="classKMMessage.html#7f07fb924168584c441cfff4498753b4" title="Destructor.">~KMMessage</a>(); <a name="l00112"></a>00112 <a name="l00114"></a><a class="code" href="classKMMessage.html#d8a3687b6c8e690a6225b59fdf80eeb8">00114</a> KMMsgBase & <a class="code" href="classKMMessage.html#d8a3687b6c8e690a6225b59fdf80eeb8" title="Get KMMsgBase for this object.">toMsgBase</a>() { <span class="keywordflow">return</span> *<span class="keyword">this</span>; } <a name="l00115"></a>00115 <span class="keyword">const</span> KMMsgBase & <a class="code" href="classKMMessage.html#d8a3687b6c8e690a6225b59fdf80eeb8" title="Get KMMsgBase for this object.">toMsgBase</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *<span class="keyword">this</span>; } <a name="l00116"></a>00116 <a name="l00118"></a>00118 <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#a5ab144ecb19891e6ff87b4e535df3bc" title="Returns TRUE if object is a real message (not KMMsgInfo or KMMsgBase).">isMessage</a>() <span class="keyword">const</span>; <a name="l00119"></a>00119 <a name="l00123"></a>00123 <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#12288e36e978ed165c7f281bd342d805">isUrgent</a>() <span class="keyword">const</span>; <a name="l00124"></a>00124 <a name="l00131"></a>00131 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#50d3a0b18e68f1b4e8d4634debf862e9" title="Specifies an unencrypted copy of this message to be stored in a separate member variable...">setUnencryptedMsg</a>( <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* unencrypted ); <a name="l00132"></a>00132 <a name="l00134"></a><a class="code" href="classKMMessage.html#bdf68a102268cc4ace477f1e735d3830">00134</a> <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#bdf68a102268cc4ace477f1e735d3830" title="Returns TRUE if the message contains an unencrypted copy of itself.">hasUnencryptedMsg</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0 != mUnencryptedMsg; } <a name="l00135"></a>00135 <a name="l00137"></a><a class="code" href="classKMMessage.html#1480991a8190ae7714a45933777504bd">00137</a> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#1480991a8190ae7714a45933777504bd" title="Returns an unencrypted copy of this message or 0 if none exists.">unencryptedMsg</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mUnencryptedMsg; } <a name="l00138"></a>00138 <a name="l00144"></a><a class="code" href="classKMMessage.html#eaa229b79f9dfa565561c47737be45fa">00144</a> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#eaa229b79f9dfa565561c47737be45fa" title="Returns an unencrypted copy of this message or 0 if none exists.">takeUnencryptedMsg</a>() <a name="l00145"></a>00145 { <a name="l00146"></a>00146 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* ret = mUnencryptedMsg; <a name="l00147"></a>00147 mUnencryptedMsg = 0; <a name="l00148"></a>00148 <span class="keywordflow">return</span> ret; <a name="l00149"></a>00149 } <a name="l00150"></a>00150 <a name="l00152"></a><a class="code" href="classKMMessage.html#54f1ea60c46d4cd76efec8fa74ad92e6">00152</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#54f1ea60c46d4cd76efec8fa74ad92e6" title="Mark the message as deleted.">del</a>() { <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>(KMMsgStatusDeleted); } <a name="l00153"></a>00153 <a name="l00155"></a><a class="code" href="classKMMessage.html#224c394158d158e08e17103b5fb38204">00155</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#224c394158d158e08e17103b5fb38204" title="Undelete the message.">undel</a>() { <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>(KMMsgStatusOld); } <a name="l00156"></a>00156 <a name="l00158"></a><a class="code" href="classKMMessage.html#29dbe281ac3746a751821d8edd4b18cf">00158</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#29dbe281ac3746a751821d8edd4b18cf" title="Touch the message - mark it as read.">touch</a>() { <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>(KMMsgStatusOld); } <a name="l00159"></a>00159 <a name="l00163"></a>00163 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#bb0171befe57c922617b37bd58a35002" title="Create a new message that is a reply to this message, filling all required header...">createReply</a>( KMail::ReplyStrategy replyStrategy = KMail::ReplySmart, <a name="l00164"></a>00164 QString selection=QString::null, <span class="keywordtype">bool</span> noQuote=<span class="keyword">false</span>, <a name="l00165"></a>00165 <span class="keywordtype">bool</span> allowDecryption=<span class="keyword">true</span>, <span class="keywordtype">bool</span> selectionIsBody=<span class="keyword">false</span>, <a name="l00166"></a>00166 <span class="keyword">const</span> QString &tmpl = QString::null ); <a name="l00167"></a>00167 <a name="l00175"></a>00175 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#75c36eac5a71cbf40330d7648e19baf9" title="Create a new message that is a redirect to this message, filling all required header...">createRedirect</a>( <span class="keyword">const</span> QString &toStr ); <a name="l00176"></a>00176 <a name="l00178"></a>00178 QCString <a class="code" href="classKMMessage.html#ab3d626b12ab11266a130c25d5f75def" title="Create the forwarded body for the message.">createForwardBody</a>(); <a name="l00179"></a>00179 <a name="l00183"></a>00183 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#86a19707a3ab205ef6272b2acc0181c9" title="Create a new message that is a forward of this message, filling all required header...">createForward</a>( <span class="keyword">const</span> QString &tmpl = QString::null ); <a name="l00184"></a>00184 <a name="l00188"></a>00188 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#6ba60b89f95b9bef64f944ef59118054" title="Create a new message that is a delivery receipt of this message, filling required...">createDeliveryReceipt</a>() <span class="keyword">const</span>; <a name="l00189"></a>00189 <a name="l00203"></a>00203 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* <a class="code" href="classKMMessage.html#74527145a35cc524c4f37b5c16b783e3" title="Create a new message that is a MDN for this message, filling all required fields...">createMDN</a>( KMime::MDN::ActionMode a, <a name="l00204"></a>00204 KMime::MDN::DispositionType d, <a name="l00205"></a>00205 <span class="keywordtype">bool</span> allowGUI=<span class="keyword">false</span>, <a name="l00206"></a>00206 QValueList<KMime::MDN::DispositionModifier> m=QValueList<KMime::MDN::DispositionModifier>() ); <a name="l00207"></a>00207 <a name="l00209"></a>00209 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#7a5df78062e4283cebd3eccba0fcb5ad" title="Remove all headers but the content description ones, and those in the white list...">sanitizeHeaders</a>( <span class="keyword">const</span> QStringList& whiteList = QStringList() ); <a name="l00210"></a>00210 <a name="l00212"></a>00212 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#765ec32909b2bfde6a205c1b76431381" title="Parse the string and create this message from it.">fromDwString</a>(<span class="keyword">const</span> DwString& str, <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>=<span class="keyword">false</span>); <a name="l00213"></a>00213 <span class="keywordtype">void</span> fromString(<span class="keyword">const</span> QCString& str, <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>=<span class="keyword">false</span>); <a name="l00214"></a>00214 <span class="keywordtype">void</span> fromByteArray(<span class="keyword">const</span> QByteArray & ba, <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>=<span class="keyword">false</span>); <a name="l00215"></a>00215 <a name="l00220"></a>00220 <span class="keyword">const</span> DwString& <a class="code" href="classKMMessage.html#49c5b4223492f2d81dcc97bb9462f728" title="Return the entire message contents in the DwString.">asDwString</a>() <span class="keyword">const</span>; <a name="l00221"></a>00221 <span class="keyword">const</span> DwMessage *asDwMessage(); <a name="l00222"></a>00222 <a name="l00230"></a>00230 QCString <a class="code" href="classKMMessage.html#b9b4e74c3446bce61e34201fd1e793d8" title="Return the entire message contents as a string.">asString</a>() <span class="keyword">const</span>; <a name="l00231"></a>00231 <a name="l00236"></a>00236 QByteArray <a class="code" href="classKMMessage.html#22bfa4746658b7b032029c381c746b07" title="Return the message contents with the headers that should not be sent stripped off...">asSendableString</a>() <span class="keyword">const</span>; <a name="l00237"></a>00237 <a name="l00242"></a>00242 QCString <a class="code" href="classKMMessage.html#90d9a07ca47902ce8bb7674286d9aa26" title="Return the message header with the headers that should not be sent stripped off.">headerAsSendableString</a>() <span class="keyword">const</span>; <a name="l00243"></a>00243 <a name="l00247"></a>00247 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#9e40cfc4b8ab3360e2a0ef71fd77b932" title="Remove all private header fields: *Status: and X-KMail-*.">removePrivateHeaderFields</a>(); <a name="l00248"></a>00248 <a name="l00250"></a>00250 DwMediaType& <a class="code" href="classKMMessage.html#576912fbe8869fa5c67c508b16c1a35c" title="Return reference to Content-Type header for direct manipulation.">dwContentType</a>(); <a name="l00251"></a>00251 <a name="l00253"></a>00253 QString <a class="code" href="classKMMessage.html#81a56c11d9920301421152b9e0afc45d" title="Return header as string.">headerAsString</a>() <span class="keyword">const</span>; <a name="l00254"></a>00254 <a name="l00259"></a>00259 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#ace7f8928e65b15f571b847817859b37" title="Returns a decoded body part string to be further processed by function asQuotedString()...">parseTextStringFromDwPart</a>( partNode * root, <a name="l00260"></a>00260 QCString& parsedString, <a name="l00261"></a>00261 <span class="keyword">const</span> QTextCodec*& <a class="code" href="classKMMessage.html#91762b3880f42da72185c59c40b28cac" title="Get a QTextCodec suitable for this message part.">codec</a>, <a name="l00262"></a>00262 <span class="keywordtype">bool</span>& isHTML ) <span class="keyword">const</span>; <a name="l00263"></a>00263 <a name="l00267"></a>00267 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#f3fe6794874214ffa4ad07a3992590e7" title="Initialize header fields.">initHeader</a>(uint identity=0); <a name="l00268"></a>00268 <a name="l00271"></a>00271 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#bf1ee113db641a10046e49c3986e00ca" title="Initialize headers fields according to the identity and the transport header of the...">initFromMessage</a>(<span class="keyword">const</span> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a> *msg, <span class="keywordtype">bool</span> idHeaders = <span class="keyword">true</span>); <a name="l00272"></a>00272 <a name="l00278"></a>00278 uint <a class="code" href="classKMMessage.html#c48977675781b8337b2bee6487070ac4">identityUoid</a>() <span class="keyword">const</span>; <a name="l00279"></a>00279 <a name="l00282"></a>00282 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#af14defee2f25d286fb7019688008280" title="Set the from, to, cc, bcc, encrytion etc headers as specified in the given identity...">applyIdentity</a>( uint <span class="keywordtype">id</span> ); <a name="l00283"></a>00283 <a name="l00286"></a>00286 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#c3593abb0275a61f2206eaf51435d64d" title="Removes empty fields from the header, e.g.">cleanupHeader</a>(); <a name="l00287"></a>00287 <a name="l00293"></a>00293 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#3d877210924a2a0ba380e0ef11ff4e10" title="Set fields that are either automatically set (Message-id) or that do not change from...">setAutomaticFields</a>(<span class="keywordtype">bool</span> isMultipart=<span class="keyword">false</span>); <a name="l00294"></a>00294 <a name="l00296"></a>00296 QString <a class="code" href="classKMMessage.html#dc0c5523e610a960a4d913d7e27ff04a" title="Get or set the &#39;Date&#39; header field.">dateStr</a>() <span class="keyword">const</span>; <a name="l00299"></a>00299 QCString <a class="code" href="classKMMessage.html#571d8a05d72eac05cc0bacffa0fae4c5" title="Returns the message date in asctime format or an empty string if the message lacks...">dateShortStr</a>() <span class="keyword">const</span>; <a name="l00300"></a>00300 QString dateIsoStr() <span class="keyword">const</span>; <a name="l00301"></a>00301 time_t date() <span class="keyword">const</span>; <a name="l00302"></a>00302 <span class="keywordtype">void</span> setDate(<span class="keyword">const</span> QCString& str); <a name="l00303"></a>00303 <span class="keywordtype">void</span> setDate(time_t aUnixTime); <a name="l00304"></a>00304 <a name="l00306"></a>00306 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#2c0f165afcca50d3b7f5a03bc29d42b6" title="Set the &#39;Date&#39; header field to the current date.">setDateToday</a>(); <a name="l00307"></a>00307 <a name="l00309"></a>00309 QString <a class="code" href="classKMMessage.html#87af921446ba2e30316d6207d9394a2b" title="Get or set the &#39;To&#39; header field.">to</a>() <span class="keyword">const</span>; <a name="l00310"></a>00310 <span class="keywordtype">void</span> setTo(<span class="keyword">const</span> QString& aStr); <a name="l00311"></a>00311 QString toStrip() <span class="keyword">const</span>; <a name="l00312"></a>00312 <a name="l00314"></a>00314 QString <a class="code" href="classKMMessage.html#0b6c3e40ef5369159f1f2abead43469e" title="Get or set the &#39;ReplyTo&#39; header field.">replyTo</a>() <span class="keyword">const</span>; <a name="l00315"></a>00315 <span class="keywordtype">void</span> setReplyTo( <span class="keyword">const</span> QString &aStr ); <a name="l00316"></a>00316 <span class="keywordtype">void</span> setReplyTo(<a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>*); <a name="l00317"></a>00317 <a name="l00319"></a>00319 QString <a class="code" href="classKMMessage.html#fd933b2841e1dc6d60432278d4450a2a" title="Get or set the &#39;Cc&#39; header field.">cc</a>() <span class="keyword">const</span>; <a name="l00320"></a>00320 <span class="keywordtype">void</span> setCc( <span class="keyword">const</span> QString &aStr ); <a name="l00321"></a>00321 QString ccStrip() <span class="keyword">const</span>; <a name="l00322"></a>00322 <a name="l00324"></a>00324 QString <a class="code" href="classKMMessage.html#5c7f567c4f71da87ae5b116d84a83450" title="Get or set the &#39;Bcc&#39; header field.">bcc</a>() <span class="keyword">const</span>; <a name="l00325"></a>00325 <span class="keywordtype">void</span> setBcc( <span class="keyword">const</span> QString &aStr ); <a name="l00326"></a>00326 <a name="l00328"></a>00328 QString <a class="code" href="classKMMessage.html#c16dcba46572efe32ad85857847e8cdc" title="Get or set the &#39;Fcc&#39; header field.">fcc</a>() <span class="keyword">const</span>; <a name="l00329"></a>00329 <span class="keywordtype">void</span> setFcc( <span class="keyword">const</span> QString &aStr ); <a name="l00330"></a>00330 <a name="l00332"></a><a class="code" href="classKMMessage.html#527a4d7b97571ff18467e5bcc6acab9a">00332</a> QString <a class="code" href="classKMMessage.html#527a4d7b97571ff18467e5bcc6acab9a" title="Get or set the &#39;Drafts&#39; folder.">drafts</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDrafts; } <a name="l00333"></a>00333 <span class="keywordtype">void</span> setDrafts( <span class="keyword">const</span> QString &aStr ); <a name="l00334"></a>00334 <a name="l00336"></a><a class="code" href="classKMMessage.html#544e24e65dae9fcf8a6008791327ecb2">00336</a> QString <a class="code" href="classKMMessage.html#544e24e65dae9fcf8a6008791327ecb2" title="Get or set the &#39;Templates&#39; folder.">templates</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTemplates; } <a name="l00337"></a>00337 <span class="keywordtype">void</span> setTemplates( <span class="keyword">const</span> QString &aStr ); <a name="l00338"></a>00338 <a name="l00340"></a>00340 QString <a class="code" href="classKMMessage.html#8c90e62a192cb4a42b53458d82697cbe" title="Get or set the &#39;From&#39; header field.">from</a>() <span class="keyword">const</span>; <a name="l00341"></a>00341 <span class="keywordtype">void</span> setFrom(<span class="keyword">const</span> QString& aStr); <a name="l00342"></a>00342 QString fromStrip() <span class="keyword">const</span>; <a name="l00343"></a>00343 <a name="l00346"></a>00346 QString <a class="code" href="classKMMessage.html#27edbb00d94ce8115413f2ddb2b4f10b">sender</a>() <span class="keyword">const</span>; <a name="l00347"></a>00347 <a name="l00351"></a>00351 QString <a class="code" href="classKMMessage.html#cdc3f23d572d421b649a4767cf52cdc9" title="Get or set the &#39;Who&#39; header field.">who</a>() <span class="keyword">const</span>; <a name="l00352"></a>00352 <a name="l00354"></a>00354 QString <a class="code" href="classKMMessage.html#8f39a479d6704ce51bcdb1de1fc28bda" title="Get or set the &#39;Subject&#39; header field.">subject</a>() <span class="keyword">const</span>; <a name="l00355"></a>00355 <span class="keywordtype">void</span> setSubject(<span class="keyword">const</span> QString& aStr); <a name="l00356"></a>00356 <a name="l00358"></a><a class="code" href="classKMMessage.html#d053243b4a525a962f30db6cc8e04e75">00358</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#d053243b4a525a962f30db6cc8e04e75" title="Calculate strippedSubject.">initStrippedSubjectMD5</a>() {}; <a name="l00359"></a>00359 <a name="l00361"></a>00361 QString <a class="code" href="classKMMessage.html#e27529e64217576af43e7fc21f6e956f" title="Get or set the &#39;X-Mark&#39; header field.">xmark</a>() <span class="keyword">const</span>; <a name="l00362"></a>00362 <span class="keywordtype">void</span> setXMark(<span class="keyword">const</span> QString& aStr); <a name="l00363"></a>00363 <a name="l00365"></a>00365 QString <a class="code" href="classKMMessage.html#49e63645961bc9ea4521c8dc2a098e77" title="Get or set the &#39;In-Reply-To&#39; header field.">replyToId</a>() <span class="keyword">const</span>; <a name="l00366"></a>00366 <span class="keywordtype">void</span> setReplyToId(<span class="keyword">const</span> QString& aStr); <a name="l00367"></a>00367 QString replyToIdMD5() <span class="keyword">const</span>; <a name="l00368"></a>00368 <a name="l00383"></a>00383 QString <a class="code" href="classKMMessage.html#8eb153b46d0542d4b11c2b612e4fbf00" title="Get the second to last id from the References header field.">replyToAuxIdMD5</a>() <span class="keyword">const</span>; <a name="l00384"></a>00384 <a name="l00389"></a>00389 QString <a class="code" href="classKMMessage.html#a4b7d25328ff81e373ecc0877323edda" title="Get a hash of the subject with all prefixes such as Re: removed.">strippedSubjectMD5</a>() <span class="keyword">const</span>; <a name="l00390"></a>00390 <a name="l00401"></a>00401 <span class="keyword">static</span> KPIM::EmailParseResult <a class="code" href="classKMMessage.html#cd6773fa82df3495c2b8bbf80bbcb4be" title="Validate a list of email addresses, and also allow aliases and distribution lists...">isValidEmailAddressList</a>( <span class="keyword">const</span> QString& aStr, <a name="l00402"></a>00402 QString& brokenAddress ); <a name="l00403"></a>00403 <a name="l00408"></a>00408 QString <a class="code" href="classKMMessage.html#de0080762e813b85350766a7701925e1" title="Get a hash of the subject.">subjectMD5</a>() <span class="keyword">const</span>; <a name="l00409"></a>00409 <a name="l00411"></a>00411 <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#3dbe2662033a7b845415755e72cc8af2" title="Is the subject prefixed by Re: or similar?">subjectIsPrefixed</a>() <span class="keyword">const</span>; <a name="l00412"></a>00412 <a name="l00414"></a>00414 QString <a class="code" href="classKMMessage.html#ec7262aeb49504396dfaa65fa4be94a1" title="Get or set the &#39;Message-Id&#39; header field.">msgId</a>() <span class="keyword">const</span>; <a name="l00415"></a>00415 <span class="keywordtype">void</span> setMsgId(<span class="keyword">const</span> QString& aStr); <a name="l00416"></a>00416 QString msgIdMD5() <span class="keyword">const</span>; <a name="l00417"></a>00417 <a name="l00419"></a>00419 QString <a class="code" href="classKMMessage.html#8446e25e7669f1a1da81b3913fb762c8" title="Get or set the references for this message.">references</a>() <span class="keyword">const</span>; <a name="l00420"></a>00420 <span class="keywordtype">void</span> setReferences(<span class="keyword">const</span> QCString& aStr); <a name="l00421"></a>00421 <a name="l00423"></a>00423 QCString <a class="code" href="classKMMessage.html#0d8727663192f06834b97ffd7eca6570" title="Returns the message ID, useful for followups.">id</a>() <span class="keyword">const</span>; <a name="l00424"></a>00424 <a name="l00429"></a>00429 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#a4eacb849513e37fc225b7dafe3be263" title="Sets the message serial number.">setMsgSerNum</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> newMsgSerNum = 0); <a name="l00430"></a>00430 <a name="l00435"></a>00435 QString <a class="code" href="classKMMessage.html#082d31ece170fb19cd5402a34a3f6727" title="Returns the value of a header field with the given name.">headerField</a>(<span class="keyword">const</span> QCString& name) <span class="keyword">const</span>; <a name="l00436"></a>00436 <a name="l00437"></a>00437 <span class="keyword">enum</span> HeaderFieldType { Unstructured, Structured, Address }; <a name="l00438"></a>00438 <a name="l00443"></a>00443 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#de227ca74ea9bca2412ddfc63b4025c6" title="Set the header field with the given name to the given value.">setHeaderField</a>( <span class="keyword">const</span> QCString& name, <span class="keyword">const</span> QString& value, <a name="l00444"></a>00444 HeaderFieldType type = Unstructured, <a name="l00445"></a>00445 <span class="keywordtype">bool</span> prepend = <span class="keyword">false</span> ); <a name="l00446"></a>00446 <a name="l00448"></a>00448 QStringList <a class="code" href="classKMMessage.html#f83509f2f6a758a9db87d5158f1e0321" title="Returns a list of the values of all header fields with the given name.">headerFields</a>( <span class="keyword">const</span> QCString& name ) <span class="keyword">const</span>; <a name="l00449"></a>00449 <a name="l00454"></a>00454 QCString <a class="code" href="classKMMessage.html#7fdcc69aab16473b8031e02e0505763d" title="Returns the raw value of a header field with the given name.">rawHeaderField</a>( <span class="keyword">const</span> QCString & name ) <span class="keyword">const</span>; <a name="l00455"></a>00455 <a name="l00459"></a>00459 QValueList<QCString> <a class="code" href="classKMMessage.html#73e25a3ad922e433998d25236dd7adbc" title="Returns a list of the raw values of all header fields with the given name.">rawHeaderFields</a>( <span class="keyword">const</span> QCString & field ) <span class="keyword">const</span>; <a name="l00460"></a>00460 <a name="l00462"></a>00462 <span class="keyword">static</span> KMime::Types::AddressList <a class="code" href="classKMMessage.html#8379ac4237b3f5094a6db07cfce7a830" title="Splits the given address list into separate addresses.">splitAddrField</a>( <span class="keyword">const</span> QCString & str ); <a name="l00463"></a>00463 <a name="l00467"></a>00467 KMime::Types::AddressList <a class="code" href="classKMMessage.html#0eb814689485d6696a3937c0242cbaaa" title="Returns header address list as string list.">headerAddrField</a>(<span class="keyword">const</span> QCString& name) <span class="keyword">const</span>; <a name="l00468"></a>00468 KMime::Types::AddrSpecList extractAddrSpecs( <span class="keyword">const</span> QCString & headerNames ) <span class="keyword">const</span>; <a name="l00469"></a>00469 <a name="l00471"></a>00471 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#d01b9784ec819c2aa44e916098e76f78" title="Remove header field with given name.">removeHeaderField</a>(<span class="keyword">const</span> QCString& name); <a name="l00472"></a>00472 <a name="l00474"></a>00474 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#97fca22e84873efcba5593c61cd57528" title="Remove all header fields with given name.">removeHeaderFields</a>(<span class="keyword">const</span> QCString& name); <a name="l00475"></a>00475 <a name="l00479"></a>00479 QCString <a class="code" href="classKMMessage.html#15644ca49b0cfa3d3a65d9ab3412accd" title="Get or set the &#39;Content-Type&#39; header field The member functions that involve...">typeStr</a>() <span class="keyword">const</span>; <a name="l00480"></a>00480 <span class="keywordtype">int</span> type() <span class="keyword">const</span>; <a name="l00481"></a>00481 <span class="keywordtype">void</span> setTypeStr(<span class="keyword">const</span> QCString& aStr); <a name="l00482"></a>00482 <span class="keywordtype">void</span> setType(<span class="keywordtype">int</span> aType); <a name="l00484"></a>00484 QCString <a class="code" href="classKMMessage.html#e2dfa921f919dbaf97269c8ee4b4aa07" title="Subtype.">subtypeStr</a>() <span class="keyword">const</span>; <a name="l00485"></a>00485 <span class="keywordtype">int</span> subtype() <span class="keyword">const</span>; <a name="l00486"></a>00486 <span class="keywordtype">void</span> setSubtypeStr(<span class="keyword">const</span> QCString& aStr); <a name="l00487"></a>00487 <span class="keywordtype">void</span> setSubtype(<span class="keywordtype">int</span> aSubtype); <a name="l00489"></a>00489 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#39decc3c3bf5ad3adb77d0ea66235416" title="add or change a parameter of a DwMediaType field">setDwMediaTypeParam</a>( DwMediaType &mType, <a name="l00490"></a>00490 <span class="keyword">const</span> QCString& attr, <a name="l00491"></a>00491 <span class="keyword">const</span> QCString& val ); <a name="l00493"></a>00493 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#8e90f98312878b54680d11e0d332c006" title="add or change a parameter of the Content-Type field">setContentTypeParam</a>(<span class="keyword">const</span> QCString& attr, <span class="keyword">const</span> QCString& val); <a name="l00494"></a>00494 <a name="l00498"></a>00498 DwHeaders& <a class="code" href="classKMMessage.html#7dd06ebd026305292fd380c9acb283b6" title="get the DwHeaders (make sure to call setNeedsAssembly() function after directly modyfying...">headers</a>() <span class="keyword">const</span>; <a name="l00499"></a>00499 <a name="l00504"></a>00504 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#4e359dbe2c3eab4c558bba7431d14ba5" title="tell the message that internal data were changed (must be called after directly modifying...">setNeedsAssembly</a>(); <a name="l00505"></a>00505 <a name="l00509"></a>00509 QCString <a class="code" href="classKMMessage.html#9c0645c915f65d9b91d7ed1c1ddbf288" title="Get or set the &#39;Content-Transfer-Encoding&#39; header field The member functions...">contentTransferEncodingStr</a>() <span class="keyword">const</span>; <a name="l00510"></a>00510 <span class="keywordtype">int</span> contentTransferEncoding() <span class="keyword">const</span>; <a name="l00511"></a>00511 <span class="keywordtype">void</span> setContentTransferEncodingStr(<span class="keyword">const</span> QCString& aStr); <a name="l00512"></a>00512 <span class="keywordtype">void</span> setContentTransferEncoding(<span class="keywordtype">int</span> aCte); <a name="l00513"></a>00513 <a name="l00516"></a><a class="code" href="classKMMessage.html#619ff7d8119e9e93749efccdf49e6077">00516</a> QCString <a class="code" href="classKMMessage.html#619ff7d8119e9e93749efccdf49e6077" title="Cte is short for ContentTransferEncoding.">cteStr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classKMMessage.html#9c0645c915f65d9b91d7ed1c1ddbf288" title="Get or set the &#39;Content-Transfer-Encoding&#39; header field The member functions...">contentTransferEncodingStr</a>(); } <a name="l00517"></a>00517 <span class="keywordtype">int</span> cte()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> contentTransferEncoding(); } <a name="l00518"></a>00518 <span class="keywordtype">void</span> setCteStr(<span class="keyword">const</span> QCString& aStr) { setContentTransferEncodingStr(aStr); } <a name="l00519"></a>00519 <span class="keywordtype">void</span> setCte(<span class="keywordtype">int</span> aCte) { setContentTransferEncoding(aCte); } <a name="l00520"></a>00520 <a name="l00524"></a>00524 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#c8f76f105744b6ab2eeca2e551606716" title="Sets this body part&#39;s content to str.">setBodyFromUnicode</a>( <span class="keyword">const</span> QString & str ); <a name="l00525"></a>00525 <a name="l00528"></a>00528 QString <a class="code" href="classKMMessage.html#178d0a93482282bad41cfa9031c93e5a" title="Returns the body part decoded to unicode.">bodyToUnicode</a>(<span class="keyword">const</span> QTextCodec* <a class="code" href="classKMMessage.html#91762b3880f42da72185c59c40b28cac" title="Get a QTextCodec suitable for this message part.">codec</a>=0) <span class="keyword">const</span>; <a name="l00529"></a>00529 <a name="l00531"></a>00531 QCString <a class="code" href="classKMMessage.html#00680f46ef6e512a0febc53fa671c6a9" title="Get the message body.">body</a>() <span class="keyword">const</span>; <a name="l00532"></a>00532 <a name="l00534"></a>00534 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#1b9c4db08086c94986f00d0c708a01e7" title="Set the message body.">setBody</a>(<span class="keyword">const</span> QCString& aStr); <a name="l00535"></a>00535 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#1b9c4db08086c94986f00d0c708a01e7" title="Set the message body.">setBody</a>(<span class="keyword">const</span> DwString& aStr); <a name="l00536"></a>00536 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#1b9c4db08086c94986f00d0c708a01e7" title="Set the message body.">setBody</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* aStr); <span class="comment">// avoid ambiguous calls</span> <a name="l00537"></a>00537 <a name="l00539"></a>00539 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#f10f1992dfda5c1838a0e7208ab2fe37" title="Hack to enable structured body parts to be set as flat text.">setMultiPartBody</a>( <span class="keyword">const</span> QCString & aStr ); <a name="l00540"></a>00540 <a name="l00544"></a>00544 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#7e6ee8707a192b15c0394b69dcc10fb8" title="Set the message body, encoding it according to the current content transfer encoding...">setBodyEncoded</a>(<span class="keyword">const</span> QCString& aStr); <a name="l00545"></a>00545 <span class="keywordtype">void</span> setBodyEncodedBinary(<span class="keyword">const</span> QByteArray& aStr); <a name="l00546"></a>00546 <a name="l00550"></a>00550 <span class="keyword">static</span> QValueList<int> <a class="code" href="classKMMessage.html#769fc55cf40e35ab10cd9eed5b40f306" title="Returns a list of content-transfer-encodings that can be used with the given result...">determineAllowedCtes</a>( <span class="keyword">const</span> KMime::CharFreq& cf, <a name="l00551"></a>00551 <span class="keywordtype">bool</span> allow8Bit, <a name="l00552"></a>00552 <span class="keywordtype">bool</span> willBeSigned ); <a name="l00553"></a>00553 <a name="l00563"></a>00563 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#ef11573b865ace4d6886b9f8a48e6303" title="Sets body, encoded in the best fitting content-transfer-encoding, which is determined...">setBodyAndGuessCte</a>( <span class="keyword">const</span> QByteArray& aBuf, <a name="l00564"></a>00564 QValueList<int>& allowedCte, <a name="l00565"></a>00565 <span class="keywordtype">bool</span> allow8Bit = <span class="keyword">false</span>, <a name="l00566"></a>00566 <span class="keywordtype">bool</span> willBeSigned = <span class="keyword">false</span> ); <a name="l00567"></a>00567 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#ef11573b865ace4d6886b9f8a48e6303" title="Sets body, encoded in the best fitting content-transfer-encoding, which is determined...">setBodyAndGuessCte</a>( <span class="keyword">const</span> QCString& aBuf, <a name="l00568"></a>00568 QValueList<int>& allowedCte, <a name="l00569"></a>00569 <span class="keywordtype">bool</span> allow8Bit = <span class="keyword">false</span>, <a name="l00570"></a>00570 <span class="keywordtype">bool</span> willBeSigned = <span class="keyword">false</span> ); <a name="l00571"></a>00571 <a name="l00575"></a>00575 QCString <a class="code" href="classKMMessage.html#e4e5fdc4bbafb1397801381b91313e91" title="Returns a decoded version of the body from the current content transfer encoding...">bodyDecoded</a>() <span class="keyword">const</span>; <a name="l00576"></a>00576 QByteArray bodyDecodedBinary() <span class="keyword">const</span>; <a name="l00577"></a>00577 <a name="l00580"></a>00580 <span class="keywordtype">int</span> <a class="code" href="classKMMessage.html#bf2ef4edbfad52a94367b31e248345e8" title="Number of body parts the message has.">numBodyParts</a>() <span class="keyword">const</span>; <a name="l00581"></a>00581 <a name="l00584"></a>00584 DwBodyPart * <a class="code" href="classKMMessage.html#115edb44d72866530342c81142e419da" title="Return the first DwBodyPart matching a given Content-Type or zero, if no found.">findDwBodyPart</a>( <span class="keywordtype">int</span> type, <span class="keywordtype">int</span> subtype ) <span class="keyword">const</span>; <a name="l00585"></a>00585 <a name="l00588"></a>00588 DwBodyPart * <a class="code" href="classKMMessage.html#115edb44d72866530342c81142e419da" title="Return the first DwBodyPart matching a given Content-Type or zero, if no found.">findDwBodyPart</a>( <span class="keyword">const</span> QCString& type, <span class="keyword">const</span> QCString& subtype ) <span class="keyword">const</span>; <a name="l00589"></a>00589 <a name="l00592"></a>00592 DwBodyPart* <a class="code" href="classKMMessage.html#115edb44d72866530342c81142e419da" title="Return the first DwBodyPart matching a given Content-Type or zero, if no found.">findDwBodyPart</a>( DwBodyPart* part, <span class="keyword">const</span> QString & partSpecifier ); <a name="l00593"></a>00593 <a name="l00596"></a>00596 DwBodyPart * <a class="code" href="classKMMessage.html#d29d08c00132080dd384caa3861a872f" title="Get the DwBodyPart at position in aIdx.">dwBodyPart</a>( <span class="keywordtype">int</span> aIdx ) <span class="keyword">const</span>; <a name="l00597"></a>00597 <a name="l00600"></a>00600 <span class="keywordtype">int</span> <a class="code" href="classKMMessage.html#afb12852bf19f862832331f5d01670a1" title="Get the number of the given DwBodyPart.">partNumber</a>( DwBodyPart * aDwBodyPart ) <span class="keyword">const</span>; <a name="l00601"></a>00601 <a name="l00604"></a>00604 DwBodyPart * <a class="code" href="classKMMessage.html#f7412a18d6089e1055bfe50283671714" title="Get the 1st DwBodyPart.">getFirstDwBodyPart</a>() <span class="keyword">const</span>; <a name="l00605"></a>00605 DwMessage * getTopLevelPart()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMsg; } <a name="l00606"></a>00606 <a name="l00610"></a>00610 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#2b942616accf9ac39e19351ce2bba17d" title="Fill the KMMessagePart structure for a given DwBodyPart.">bodyPart</a>(DwBodyPart* aDwBodyPart, KMMessagePart* aPart, <a name="l00611"></a>00611 <span class="keywordtype">bool</span> withBody = <span class="keyword">true</span> ); <a name="l00612"></a>00612 <a name="l00616"></a>00616 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#2b942616accf9ac39e19351ce2bba17d" title="Fill the KMMessagePart structure for a given DwBodyPart.">bodyPart</a>(<span class="keywordtype">int</span> aIdx, KMMessagePart* aPart) <span class="keyword">const</span>; <a name="l00617"></a>00617 <a name="l00619"></a>00619 DwBodyPart* <a class="code" href="classKMMessage.html#fd780c436fe7879034871767c6dc1f18" title="Compose a DwBodyPart (needed for adding a part to the message).">createDWBodyPart</a>(<span class="keyword">const</span> KMMessagePart* aPart); <a name="l00620"></a>00620 <a name="l00622"></a>00622 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#74c1405916368420c33e1542107b6f82" title="Append a DwBodyPart to the message.">addDwBodyPart</a>(DwBodyPart * aDwPart); <a name="l00623"></a>00623 <a name="l00625"></a>00625 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#98f53dd0092cd4b6a8a07efef0526217" title="Append a body part to the message.">addBodyPart</a>(<span class="keyword">const</span> KMMessagePart* aPart); <a name="l00626"></a>00626 <a name="l00628"></a>00628 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#fc64c26a395d55c6ca96c00051f72c63" title="Delete all body parts.">deleteBodyParts</a>(); <a name="l00629"></a>00629 <a name="l00631"></a>00631 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#1858f691f77ad3420ae34e575b9ef2e5" title="Removes the given body part.">removeBodyPart</a>( DwBodyPart * dwPart ); <a name="l00632"></a>00632 <a name="l00635"></a>00635 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#636d7b4660f0a85c74423104fa4645ac" title="Set &quot;Status&quot; and &quot;X-Status&quot; fields of the message from the internal...">setStatusFields</a>(); <a name="l00636"></a>00636 <a name="l00641"></a>00641 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#66d82f92b132f0d6b2fc619befd5986f" title="Generates the Message-Id.">generateMessageId</a>( <span class="keyword">const</span> QString& addr ); <a name="l00642"></a>00642 <a name="l00648"></a>00648 <span class="keyword">static</span> QCString <a class="code" href="classKMMessage.html#a508a4076d4b63a5c4b2c48906b354bb" title="Convert &#39;&lt;&#39; into &quot;&amp;lt;&quot; resp.">html2source</a>( <span class="keyword">const</span> QCString & src ); <a name="l00649"></a>00649 <a name="l00652"></a>00652 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#ba85fd5c4264aeec336a5992e20e4568" title="Encodes an email address as mailto URL.">encodeMailtoUrl</a>( <span class="keyword">const</span> QString& str ); <a name="l00653"></a>00653 <a name="l00656"></a>00656 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#e8dca5f50d21a63908d4026e2683ac60" title="Decodes a mailto URL.">decodeMailtoUrl</a>( <span class="keyword">const</span> QString& url ); <a name="l00657"></a>00657 <a name="l00664"></a>00664 <span class="keyword">static</span> QCString <a class="code" href="classKMMessage.html#72d3f7adf212e7eee71213796a13d616" title="This function generates a displayable string from a list of email addresses.">stripEmailAddr</a>(<span class="keyword">const</span> QCString& emailAddr); <a name="l00665"></a>00665 <a name="l00668"></a>00668 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#72d3f7adf212e7eee71213796a13d616" title="This function generates a displayable string from a list of email addresses.">stripEmailAddr</a>(<span class="keyword">const</span> QString& emailAddr); <a name="l00669"></a>00669 <a name="l00675"></a>00675 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#204f475a310143d5d6cf0aa8a7df55a5" title="Quotes the following characters which have a special meaning in HTML: &#39;&lt;&#39;...">quoteHtmlChars</a>( <span class="keyword">const</span> QString& str, <a name="l00676"></a>00676 <span class="keywordtype">bool</span> removeLineBreaks = <span class="keyword">false</span> ); <a name="l00677"></a>00677 <a name="l00682"></a>00682 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#2ee04049f02681c0c2ae393d87e2367c" title="Converts the email address(es) to (a) nice HTML mailto: anchor(s).">emailAddrAsAnchor</a>(<span class="keyword">const</span> QString& emailAddr, <a name="l00683"></a>00683 <span class="keywordtype">bool</span> stripped=<span class="keyword">true</span>, <span class="keyword">const</span> QString& cssStyle = QString::null, <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#03dc17ebd4de0cad4977d28040ed16fd" title="Links this message to aMsg, setting link type to aStatus.">link</a> = <span class="keyword">true</span>); <a name="l00684"></a>00684 <a name="l00688"></a>00688 <span class="keyword">static</span> QStringList <a class="code" href="classKMMessage.html#9f7653629787483e4e812562381b07d2" title="Strips an address from an address list.">stripAddressFromAddressList</a>( <span class="keyword">const</span> QString& address, <a name="l00689"></a>00689 <span class="keyword">const</span> QStringList& addresses ); <a name="l00690"></a>00690 <a name="l00694"></a>00694 <span class="keyword">static</span> QStringList <a class="code" href="classKMMessage.html#e4f03358c3283c037353a3683876f781" title="Strips all the user&#39;s addresses from an address list.">stripMyAddressesFromAddressList</a>( <span class="keyword">const</span> QStringList& list ); <a name="l00695"></a>00695 <a name="l00698"></a>00698 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#c334bfce5b6d1dafe916a42e2cf8a2e2" title="Returns true if the given address is contained in the given address list.">addressIsInAddressList</a>( <span class="keyword">const</span> QString& address, <a name="l00699"></a>00699 <span class="keyword">const</span> QStringList& addresses ); <a name="l00700"></a>00700 <a name="l00704"></a>00704 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#638e3713e6bb080480270c2d48f01da9" title="Expands aliases (distribution lists and nick names) and appends a domain part to...">expandAliases</a>( <span class="keyword">const</span> QString& recipients ); <a name="l00705"></a>00705 <a name="l00709"></a>00709 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#c2127e3f52950962ab6fd4436927456e" title="Uses the hostname as domain part and tries to determine the real name from the entries...">guessEmailAddressFromLoginName</a>( <span class="keyword">const</span> QString& userName ); <a name="l00710"></a>00710 <a name="l00717"></a>00717 <span class="keyword">static</span> QString <a class="code" href="classKMMessage.html#d0933db089e196f333e4bfeb52b67ea3" title="Given argument msg add quoting characters and relayout for max width maxLength.">smartQuote</a>( <span class="keyword">const</span> QString &msg, <span class="keywordtype">int</span> maxLineLength ); <a name="l00718"></a>00718 <a name="l00720"></a>00720 <span class="keyword">static</span> QCString <a class="code" href="classKMMessage.html#436a2495f670d732413d0f857e04c982" title="Get the default message charset.">defaultCharset</a>(); <a name="l00721"></a>00721 <a name="l00723"></a>00723 <span class="keyword">static</span> <span class="keyword">const</span> QStringList &<a class="code" href="classKMMessage.html#41e2c0836f490db2edf4983899a07591" title="Get a list of preferred message charsets.">preferredCharsets</a>(); <a name="l00724"></a>00724 <a name="l00726"></a>00726 QString <a class="code" href="classKMMessage.html#c3324fb4b60066c9ae2d295421d76870" title="Replaces every occurrence of &quot;${foo}&quot; in s with headerField(&quot;foo&quot;)...">replaceHeadersInString</a>( <span class="keyword">const</span> QString & s ) <span class="keyword">const</span>; <a name="l00727"></a>00727 <a name="l00729"></a>00729 QCString <a class="code" href="classKMMessage.html#5bfe73d1c397910fedfa770f6d869a57" title="Get the message charset.">charset</a>() <span class="keyword">const</span>; <a name="l00730"></a>00730 <a name="l00732"></a>00732 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#6c6413b3690538964ac810f4c6755a5b" title="Set the message charset.">setCharset</a>(<span class="keyword">const</span> QCString& aStr); <a name="l00733"></a>00733 <a name="l00735"></a>00735 <span class="keyword">const</span> QTextCodec * <a class="code" href="classKMMessage.html#91762b3880f42da72185c59c40b28cac" title="Get a QTextCodec suitable for this message part.">codec</a>() <span class="keyword">const</span>; <a name="l00736"></a>00736 <a name="l00738"></a><a class="code" href="classKMMessage.html#4b2765e87e4fb52c57a62953c5f43f2c">00738</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#4b2765e87e4fb52c57a62953c5f43f2c" title="Set the charset the user selected for the message to display.">setOverrideCodec</a>( <span class="keyword">const</span> QTextCodec* <a class="code" href="classKMMessage.html#91762b3880f42da72185c59c40b28cac" title="Get a QTextCodec suitable for this message part.">codec</a> ) { mOverrideCodec = codec; } <a name="l00739"></a>00739 <a name="l00741"></a><a class="code" href="classKMMessage.html#5640e9e58aaa1ef87103d5d114c90c2f">00741</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#5640e9e58aaa1ef87103d5d114c90c2f" title="Allow decoding of HTML for quoting.">setDecodeHTML</a>(<span class="keywordtype">bool</span> aDecodeHTML) <a name="l00742"></a>00742 { mDecodeHTML = aDecodeHTML; } <a name="l00743"></a>00743 <a name="l00746"></a>00746 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#4a6963f180c82bf446483d9ad5247e56" title="Reads config settings from group &quot;KMMessage&quot; and sets all internal variables...">readConfig</a>(); <a name="l00747"></a>00747 <a name="l00751"></a>00751 QCString <a class="code" href="classKMMessage.html#bc854b6e0a96fe46b7d7fa3bdd809ac9" title="Creates reference string for reply to messages.">getRefStr</a>() <span class="keyword">const</span>; <a name="l00752"></a>00752 <a name="l00754"></a><a class="code" href="classKMMessage.html#b92426b79e300b70619d76bc972958cc">00754</a> off_t <a class="code" href="classKMMessage.html#b92426b79e300b70619d76bc972958cc" title="Get/set offset in mail folder.">folderOffset</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mFolderOffset; } <a name="l00755"></a>00755 <span class="keywordtype">void</span> setFolderOffset(off_t offs) { <span class="keywordflow">if</span>(mFolderOffset != offs) { mFolderOffset=offs; setDirty(<span class="keyword">true</span>); } } <a name="l00756"></a>00756 <a name="l00758"></a><a class="code" href="classKMMessage.html#78b22cd6d22bfee54cf5b96826267c5c">00758</a> QString <a class="code" href="classKMMessage.html#78b22cd6d22bfee54cf5b96826267c5c" title="Get/set filename in mail folder.">fileName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mFileName; } <a name="l00759"></a>00759 <span class="keywordtype">void</span> setFileName(<span class="keyword">const</span> QString& file) { <span class="keywordflow">if</span>(mFileName != file) { mFileName=file; setDirty(<span class="keyword">true</span>); } } <a name="l00760"></a>00760 <a name="l00764"></a><a class="code" href="classKMMessage.html#27b4c156cb4d11cf896eed46732d1f48">00764</a> <span class="keywordtype">size_t</span> <a class="code" href="classKMMessage.html#27b4c156cb4d11cf896eed46732d1f48" title="Get/set size of message in the folder including the whole header in bytes.">msgSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMsgSize; } <a name="l00765"></a>00765 <span class="keywordtype">void</span> setMsgSize(<span class="keywordtype">size_t</span> sz) { <span class="keywordflow">if</span>(mMsgSize != sz) { mMsgSize = sz; setDirty(<span class="keyword">true</span>); } } <a name="l00766"></a>00766 <a name="l00769"></a><a class="code" href="classKMMessage.html#e12cc6c761cf32061cdcc66a5b22465a">00769</a> <span class="keywordtype">size_t</span> <a class="code" href="classKMMessage.html#e12cc6c761cf32061cdcc66a5b22465a" title="Unlike the above function this works also, if the message is not in a folder.">msgLength</a>()<span class="keyword"> const</span> <a name="l00770"></a>00770 <span class="keyword"> </span>{ <span class="keywordflow">return</span> (mMsgLength) ? mMsgLength : mMsgSize; } <a name="l00771"></a>00771 <span class="keywordtype">void</span> setMsgLength(<span class="keywordtype">size_t</span> sz) { mMsgLength = sz; } <a name="l00772"></a>00772 <a name="l00774"></a>00774 <span class="keywordtype">size_t</span> <a class="code" href="classKMMessage.html#a2c7bb7de2908ff534a6c34d8538dffa" title="Get/set size on server.">msgSizeServer</a>() <span class="keyword">const</span>; <a name="l00775"></a>00775 <span class="keywordtype">void</span> setMsgSizeServer(<span class="keywordtype">size_t</span> sz); <a name="l00776"></a>00776 <a name="l00778"></a>00778 ulong <a class="code" href="classKMMessage.html#faaaea3bf64efcdbeceafbe146e1addf" title="Get/set UID.">UID</a>() <span class="keyword">const</span>; <a name="l00779"></a>00779 <span class="keywordtype">void</span> setUID(ulong uid); <a name="l00780"></a>00780 <a name="l00782"></a><a class="code" href="classKMMessage.html#c54ef69572e620a3dcc0301aefca913e">00782</a> KMMsgStatus <a class="code" href="classKMMessage.html#c54ef69572e620a3dcc0301aefca913e" title="Status of the message.">status</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mStatus; } <a name="l00784"></a>00784 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>(<span class="keyword">const</span> KMMsgStatus <a class="code" href="classKMMessage.html#c54ef69572e620a3dcc0301aefca913e" title="Status of the message.">status</a>, <span class="keywordtype">int</span> idx = -1); <a name="l00785"></a>00785 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#508dba38dc91893691edddaab30e274d" title="Set status and mark dirty.">setStatus</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* s1, <span class="keyword">const</span> <span class="keywordtype">char</span>* s2=0) { KMMsgBase::setStatus(s1, s2); } <a name="l00786"></a>00786 <a name="l00788"></a>00788 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#deaf253ad2f0d86779d5991f13731d08" title="Set encryption status of the message.">setEncryptionState</a>(<span class="keyword">const</span> KMMsgEncryptionState, <span class="keywordtype">int</span> idx = -1); <a name="l00789"></a>00789 <a name="l00791"></a>00791 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#916feb2c4a8aa3be0edc11424ba32227" title="Set signature status of the message.">setSignatureState</a>(<span class="keyword">const</span> KMMsgSignatureState, <span class="keywordtype">int</span> idx = -1); <a name="l00792"></a>00792 <a name="l00793"></a>00793 <span class="keywordtype">void</span> setMDNSentState( KMMsgMDNSentState <a class="code" href="classKMMessage.html#c54ef69572e620a3dcc0301aefca913e" title="Status of the message.">status</a>, <span class="keywordtype">int</span> idx=-1 ); <a name="l00794"></a>00794 <a name="l00796"></a><a class="code" href="classKMMessage.html#5d5ac51a43a80ddbe67f5fbad87520f7">00796</a> KMMsgEncryptionState <a class="code" href="classKMMessage.html#5d5ac51a43a80ddbe67f5fbad87520f7" title="Encryption status of the message.">encryptionState</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mEncryptionState; } <a name="l00797"></a>00797 <a name="l00799"></a><a class="code" href="classKMMessage.html#3335c731775366975294d7f7e18bbb2c">00799</a> KMMsgSignatureState <a class="code" href="classKMMessage.html#3335c731775366975294d7f7e18bbb2c" title="Signature status of the message.">signatureState</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSignatureState; } <a name="l00800"></a>00800 <a name="l00801"></a>00801 KMMsgMDNSentState mdnSentState()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMDNSentState; } <a name="l00802"></a>00802 <a name="l00804"></a>00804 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#03dc17ebd4de0cad4977d28040ed16fd" title="Links this message to aMsg, setting link type to aStatus.">link</a>(<span class="keyword">const</span> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a> *aMsg, KMMsgStatus aStatus); <a name="l00807"></a>00807 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#5380fb35e0c3fcf2af8d7d79e1ca713b" title="Returns the information for the Nth link into retMsg and retStatus.">getLink</a>(<span class="keywordtype">int</span> n, ulong *retMsgSerNum, KMMsgStatus *retStatus) <span class="keyword">const</span>; <a name="l00808"></a>00808 <a name="l00810"></a>00810 QString <a class="code" href="classKMMessage.html#24747aa80d1e0694b47045faef4fc383" title="Convert wildcards into normal string.">formatString</a>(<span class="keyword">const</span> QString&) <span class="keyword">const</span>; <a name="l00811"></a>00811 <a name="l00813"></a>00813 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#dc868a1959d86232d695991a4b5f2393" title="Sets the body of the specified part.">updateBodyPart</a>(<span class="keyword">const</span> QString partSpecifier, <span class="keyword">const</span> QByteArray & data); <a name="l00814"></a>00814 <a name="l00816"></a><a class="code" href="classKMMessage.html#fed39f06bd1f4c0ca51af899d7350b3a">00816</a> DwBodyPart* <a class="code" href="classKMMessage.html#fed39f06bd1f4c0ca51af899d7350b3a" title="Returns the last DwBodyPart that was updated.">lastUpdatedPart</a>() { <span class="keywordflow">return</span> mLastUpdated; } <a name="l00817"></a>00817 <a name="l00819"></a><a class="code" href="classKMMessage.html#03cc096943ae864dd06ad23b05122777">00819</a> <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#03cc096943ae864dd06ad23b05122777" title="Return true if the complete message is available without referring to the backing...">isComplete</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mComplete; } <a name="l00821"></a><a class="code" href="classKMMessage.html#abd4c5528d72e909766b5aff2bb4ac68">00821</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#abd4c5528d72e909766b5aff2bb4ac68" title="Set if the message is a complete message.">setComplete</a>( <span class="keywordtype">bool</span> v ) { mComplete = v; } <a name="l00822"></a>00822 <a name="l00824"></a><a class="code" href="classKMMessage.html#d32312c0e44c459d84e0469b8f10d631">00824</a> <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#d32312c0e44c459d84e0469b8f10d631" title="Return if the message is ready to be shown.">readyToShow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mReadyToShow; } <a name="l00826"></a><a class="code" href="classKMMessage.html#2312a56537b9b6ceefa0c2b4b17c387f">00826</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#2312a56537b9b6ceefa0c2b4b17c387f" title="Set if the message is ready to be shown.">setReadyToShow</a>( <span class="keywordtype">bool</span> v ) { mReadyToShow = v; } <a name="l00827"></a>00827 <a name="l00828"></a>00828 <span class="keywordtype">void</span> updateAttachmentState(DwBodyPart * part = 0); <a name="l00829"></a>00829 <a name="l00831"></a>00831 <span class="keywordtype">bool</span> <a class="code" href="classKMMessage.html#e1adf17b8b22a8343ed60da3c12ecdb7" title="Return, if the message should not be deleted.">transferInProgress</a>() <span class="keyword">const</span>; <a name="l00833"></a>00833 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#32cc9d6f53648fd997efcc4f9d043197" title="Set that the message shall not be deleted because it is still required.">setTransferInProgress</a>(<span class="keywordtype">bool</span> value, <span class="keywordtype">bool</span> force = <span class="keyword">false</span>); <a name="l00834"></a>00834 <a name="l00839"></a>00839 QCString <a class="code" href="classKMMessage.html#fa8e5a3da9c8c364ccbf80773b01c424" title="Returns an mbox message separator line for this message, i.e.">mboxMessageSeparator</a>(); <a name="l00840"></a>00840 <a name="l00856"></a>00856 QString <a class="code" href="classKMMessage.html#d7702f7d5f9a01b436581701ffcea154" title="Returns message body with quoting header and indented by the given indentation string...">asQuotedString</a>( <span class="keyword">const</span> QString & headerStr, <a name="l00857"></a>00857 <span class="keyword">const</span> QString & indentStr, <a name="l00858"></a>00858 <span class="keyword">const</span> QString & selection=QString::null, <a name="l00859"></a>00859 <span class="keywordtype">bool</span> aStripSignature=<span class="keyword">true</span>, <a name="l00860"></a>00860 <span class="keywordtype">bool</span> allowDecryption=<span class="keyword">true</span>) <span class="keyword">const</span>; <a name="l00861"></a>00861 <a name="l00864"></a>00864 QString <a class="code" href="classKMMessage.html#8fe0431152d4847465b9342b4cfb3a4f" title="Return the textual content of the message as plain text, converting HTML to plain...">asPlainText</a>( <span class="keywordtype">bool</span> stripSignature, <span class="keywordtype">bool</span> allowDecryption ) <span class="keyword">const</span>; <a name="l00865"></a>00865 <a name="l00867"></a><a class="code" href="classKMMessage.html#c386e07f1bfdd889c35462607a25aa7d">00867</a> <span class="keywordtype">int</span> <a class="code" href="classKMMessage.html#c386e07f1bfdd889c35462607a25aa7d" title="Get stored cursor position.">getCursorPos</a>() { <span class="keywordflow">return</span> mCursorPos; }; <a name="l00869"></a><a class="code" href="classKMMessage.html#fdb9cb1b55e360bef203a4787e712392">00869</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#fdb9cb1b55e360bef203a4787e712392" title="Set cursor position as offset from message start.">setCursorPos</a>(<span class="keywordtype">int</span> pos) { mCursorPos = pos; }; <a name="l00870"></a>00870 <a name="l00872"></a><a class="code" href="classKMMessage.html#8a991889002061d8b1dae4f5decd1679">00872</a> KMMsgInfo* <a class="code" href="classKMMessage.html#8a991889002061d8b1dae4f5decd1679" title="Get the KMMsgInfo object that was set with setMsgInfo().">msgInfo</a>() { <span class="keywordflow">return</span> mMsgInfo; } <a name="l00874"></a><a class="code" href="classKMMessage.html#eac0f2532de12814bdc6f528745fee5f">00874</a> <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#eac0f2532de12814bdc6f528745fee5f" title="Set the KMMsgInfo object corresponding to this message.">setMsgInfo</a>( KMMsgInfo* msgInfo ) { mMsgInfo = msgInfo; } <a name="l00875"></a>00875 <a name="l00876"></a>00876 <span class="comment">/* This is set in kmreaderwin if a message is being parsed to avoid</span> <a name="l00877"></a>00877 <span class="comment"> other parts of kmail (e.g. kmheaders) destroying the message.</span> <a name="l00878"></a>00878 <span class="comment"> Parsing can take longer and can be async (in case of gpg mails) */</span> <a name="l00879"></a>00879 <span class="keywordtype">bool</span> isBeingParsed()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mIsParsed; } <a name="l00880"></a>00880 <span class="keywordtype">void</span> setIsBeingParsed( <span class="keywordtype">bool</span> t ) { mIsParsed = t; } <a name="l00881"></a>00881 <a name="l00883"></a>00883 <span class="keywordtype">void</span> <a class="code" href="classKMMessage.html#af3691036914696923482190c3fcba11" title="Delete this message as soon as it no longer in use.">deleteWhenUnused</a>(); <a name="l00884"></a>00884 <a name="l00885"></a>00885 <span class="keyword">private</span>: <a name="l00886"></a>00886 <a name="l00888"></a>00888 <span class="keywordtype">void</span> init( DwMessage* aMsg = 0 ); <a name="l00890"></a>00890 <span class="keywordtype">void</span> assign( <span class="keyword">const</span> <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>& other ); <a name="l00891"></a>00891 <a name="l00892"></a>00892 QString mDrafts; <a name="l00893"></a>00893 QString mTemplates; <a name="l00894"></a>00894 <span class="keyword">mutable</span> DwMessage* mMsg; <a name="l00895"></a>00895 <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mNeedsAssembly :1; <a name="l00896"></a>00896 <span class="keywordtype">bool</span> mDecodeHTML :1; <a name="l00897"></a>00897 <span class="keywordtype">bool</span> mReadyToShow :1; <a name="l00898"></a>00898 <span class="keywordtype">bool</span> mComplete :1; <a name="l00899"></a>00899 <span class="keywordtype">bool</span> mIsParsed : 1; <a name="l00900"></a>00900 <span class="keyword">static</span> <span class="keyword">const</span> KMail::HeaderStrategy * sHeaderStrategy; <a name="l00901"></a>00901 <span class="keyword">static</span> QString sForwardStr; <a name="l00902"></a>00902 <span class="keyword">const</span> QTextCodec * mOverrideCodec; <a name="l00903"></a>00903 <a name="l00904"></a>00904 QString mFileName; <a name="l00905"></a>00905 off_t mFolderOffset; <a name="l00906"></a>00906 <span class="keywordtype">size_t</span> mMsgSize, mMsgLength; <a name="l00907"></a>00907 time_t mDate; <a name="l00908"></a>00908 KMMsgEncryptionState mEncryptionState; <a name="l00909"></a>00909 KMMsgSignatureState mSignatureState; <a name="l00910"></a>00910 KMMsgMDNSentState mMDNSentState; <a name="l00911"></a>00911 <a class="code" href="classKMMessage.html" title="This is a Mime Message.">KMMessage</a>* mUnencryptedMsg; <a name="l00912"></a>00912 DwBodyPart* mLastUpdated; <a name="l00913"></a>00913 <span class="keywordtype">int</span> mCursorPos; <a name="l00914"></a>00914 KMMsgInfo* mMsgInfo; <span class="comment">// used to remember the KMMsgInfo object this KMMessage replaced in the KMMsgList</span> <a name="l00915"></a>00915 <span class="keyword">static</span> QValueList<KMMessage*> sPendingDeletes; <a name="l00916"></a>00916 }; <a name="l00917"></a>00917 <a name="l00918"></a>00918 <a name="l00919"></a>00919 <span class="preprocessor">#endif </span><span class="comment">/*kmmessage_h*/</span> </pre></div></div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kmail</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</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="namespacemembers.html">Namespace Members</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="classAccountUpdater.html">accountupdater</option>, <option value="classAttachmentModifyCommand.html">attachmentmodifycommand</option>, <option value="classFolderStorage.html">folderstorage</option>, <option value="classKCursorSaver.html">kcursorsaver</option>, <option value="classKleo_1_1KeyResolver.html">kleo::keyresolver</option>, <option value="classKListViewIndexedSearchLine.html">klistviewindexedsearchline</option>, <option value="classKMAcctFolder.html">kmacctfolder</option>, <option value="classKMAcctSelDlg.html">kmacctseldlg</option>, <option value="classKMail_1_1AccountComboBox.html">kmail::accountcombobox</option>, <option value="classKMail_1_1AccountManager.html">kmail::accountmanager</option>, <option value="classKMail_1_1ACLEntryDialog.html">kmail::aclentrydialog</option>, <option value="classKMail_1_1ACLJobs_1_1DeleteACLJob.html">kmail::acljobs::deleteacljob</option>, <option value="classKMail_1_1ACLJobs_1_1GetACLJob.html">kmail::acljobs::getacljob</option>, <option value="classKMail_1_1ACLJobs_1_1GetUserRightsJob.html">kmail::acljobs::getuserrightsjob</option>, <option value="classKMail_1_1ACLJobs_1_1MultiSetACLJob.html">kmail::acljobs::multisetacljob</option>, <option value="classKMail_1_1AnnotationJobs_1_1GetAnnotationJob.html">kmail::annotationjobs::getannotationjob</option>, <option value="classKMail_1_1AnnotationJobs_1_1MultiGetAnnotationJob.html">kmail::annotationjobs::multigetannotationjob</option>, <option value="classKMail_1_1AnnotationJobs_1_1MultiSetAnnotationJob.html">kmail::annotationjobs::multisetannotationjob</option>, <option value="classKMail_1_1AnnotationJobs_1_1MultiUrlGetAnnotationJob.html">kmail::annotationjobs::multiurlgetannotationjob</option>, <option value="classKMail_1_1AntiSpamConfig.html">kmail::antispamconfig</option>, <option value="classKMail_1_1AntiSpamWizard.html">kmail::antispamwizard</option>, <option value="classKMail_1_1AntiSpamWizard_1_1ConfigReader.html">kmail::antispamwizard::configreader</option>, <option value="classKMail_1_1AntiSpamWizard_1_1SpamToolConfig.html">kmail::antispamwizard::spamtoolconfig</option>, <option value="classKMail_1_1Callback.html">kmail::callback</option>, <option value="classKMail_1_1CopyFolderJob.html">kmail::copyfolderjob</option>, <option value="classKMail_1_1DictionaryComboBox.html">kmail::dictionarycombobox</option>, <option value="classKMail_1_1EditorWatcher.html">kmail::editorwatcher</option>, <option value="classKMail_1_1FilterImporterExporter.html">kmail::filterimporterexporter</option>, <option value="classKMail_1_1FilterLog.html">kmail::filterlog</option>, <option value="classKMail_1_1FilterLogDialog.html">kmail::filterlogdialog</option>, <option value="classKMail_1_1FolderDiaACLTab.html">kmail::folderdiaacltab</option>, <option value="classKMail_1_1FolderDiaGeneralTab.html">kmail::folderdiageneraltab</option>, <option value="classKMail_1_1FolderDiaQuotaTab.html">kmail::folderdiaquotatab</option>, <option value="classKMail_1_1FolderDiaTab.html">kmail::folderdiatab</option>, <option value="classKMail_1_1FolderDiaTemplatesTab.html">kmail::folderdiatemplatestab</option>, <option value="classKMail_1_1FolderRequester.html">kmail::folderrequester</option>, <option value="classKMail_1_1HeaderItem.html">kmail::headeritem</option>, <option value="classKMail_1_1HeaderStyle.html">kmail::headerstyle</option>, <option value="classKMail_1_1HtmlStatusBar.html">kmail::htmlstatusbar</option>, <option value="classKMail_1_1HtmlWriter.html">kmail::htmlwriter</option>, <option value="classKMail_1_1IdentityDrag.html">kmail::identitydrag</option>, <option value="classKMail_1_1IdentityListView.html">kmail::identitylistview</option>, <option value="classKMail_1_1IdentityListViewItem.html">kmail::identitylistviewitem</option>, <option value="classKMail_1_1Interface_1_1BodyPart.html">kmail::interface::bodypart</option>, <option value="classKMail_1_1Interface_1_1BodyPartFormatterPlugin.html">kmail::interface::bodypartformatterplugin</option>, <option value="classKMail_1_1Interface_1_1BodyPartMemento.html">kmail::interface::bodypartmemento</option>, <option value="classKMail_1_1Interface_1_1BodyPartURLHandler.html">kmail::interface::bodyparturlhandler</option>, <option value="classKMail_1_1Interface_1_1Observable.html">kmail::interface::observable</option>, <option value="classKMail_1_1Interface_1_1Observer.html">kmail::interface::observer</option>, <option value="classKMail_1_1JobScheduler.html">kmail::jobscheduler</option>, <option value="classKMail_1_1ListJob.html">kmail::listjob</option>, <option value="classKMail_1_1MaildirCompactionJob.html">kmail::maildircompactionjob</option>, <option value="classKMail_1_1MailingList.html">kmail::mailinglist</option>, <option value="classKMail_1_1MboxCompactionJob.html">kmail::mboxcompactionjob</option>, <option value="classKMail_1_1MessageActions.html">kmail::messageactions</option>, <option value="classKMail_1_1MessageCopyHelper.html">kmail::messagecopyhelper</option>, <option value="classKMail_1_1PartNodeBodyPart.html">kmail::partnodebodypart</option>, <option value="classKMail_1_1PopAccount.html">kmail::popaccount</option>, <option value="classKMail_1_1QuotaJobs_1_1GetQuotarootJob.html">kmail::quotajobs::getquotarootjob</option>, <option value="classKMail_1_1QuotaJobs_1_1GetStorageQuotaJob.html">kmail::quotajobs::getstoragequotajob</option>, <option value="classKMail_1_1RedirectDialog.html">kmail::redirectdialog</option>, <option value="classKMail_1_1RenameJob.html">kmail::renamejob</option>, <option value="classKMail_1_1RuleWidgetHandler.html">kmail::rulewidgethandler</option>, <option value="classKMail_1_1RuleWidgetHandlerManager.html">kmail::rulewidgethandlermanager</option>, <option value="classKMail_1_1ScheduledCompactionTask.html">kmail::scheduledcompactiontask</option>, <option value="classKMail_1_1ScheduledExpireTask.html">kmail::scheduledexpiretask</option>, <option value="classKMail_1_1ScheduledJob.html">kmail::scheduledjob</option>, <option value="classKMail_1_1ScheduledTask.html">kmail::scheduledtask</option>, <option value="classKMail_1_1SearchJob.html">kmail::searchjob</option>, <option value="classKMail_1_1SearchWindow.html">kmail::searchwindow</option>, <option value="classKMail_1_1SecondaryWindow.html">kmail::secondarywindow</option>, <option value="classKMail_1_1SieveDebugDialog.html">kmail::sievedebugdialog</option>, <option value="classKMail_1_1SortCacheItem.html">kmail::sortcacheitem</option>, <option value="classKMail_1_1SpamHeaderAnalyzer.html">kmail::spamheaderanalyzer</option>, <option value="classKMail_1_1SpamScore.html">kmail::spamscore</option>, <option value="classKMail_1_1TeeHtmlWriter.html">kmail::teehtmlwriter</option>, <option value="classKMail_1_1TransportManager.html">kmail::transportmanager</option>, <option value="classKMail_1_1UndoInfo.html">kmail::undoinfo</option>, <option value="classKMail_1_1URLHandler.html">kmail::urlhandler</option>, <option value="classKMail_1_1URLHandlerManager.html">kmail::urlhandlermanager</option>, <option value="classKMail_1_1Util_1_1LaterDeleter.html">kmail::util::laterdeleter</option>, <option value="classKMailICalIfaceImpl.html">kmailicalifaceimpl</option>, <option value="classKMailIface.html">kmailiface</option>, <option value="classKMDict.html">kmdict</option>, <option value="classKMDictItem.html">kmdictitem</option>, <option value="classKMFilterAction.html">kmfilteraction</option>, <option value="classKMFilterActionDict.html">kmfilteractiondict</option>, <option value="classKMFilterActionWidget.html">kmfilteractionwidget</option>, <option value="classKMFilterActionWithAddress.html">kmfilteractionwithaddress</option>, <option value="classKMFilterActionWithFolder.html">kmfilteractionwithfolder</option>, <option value="classKMFilterActionWithNone.html">kmfilteractionwithnone</option>, <option value="classKMFilterActionWithString.html">kmfilteractionwithstring</option>, <option value="classKMFilterActionWithStringList.html">kmfilteractionwithstringlist</option>, <option value="classKMFilterActionWithUOID.html">kmfilteractionwithuoid</option>, <option value="classKMFilterActionWithUrl.html">kmfilteractionwithurl</option>, <option value="classKMFilterDlg.html">kmfilterdlg</option>, <option value="classKMFilterListBox.html">kmfilterlistbox</option>, <option value="classKMFolder.html">kmfolder</option>, <option value="classKMFolderDialog.html">kmfolderdialog</option>, <option value="classKMFolderDir.html">kmfolderdir</option>, <option value="classKMFolderIndex.html">kmfolderindex</option>, <option value="classKMFolderOpener.html">kmfolderopener</option>, <option value="classKMHeaders.html">kmheaders</option>, <option value="classKMKernel.html">kmkernel</option>, <option value="classKMMenuCommand.html">kmmenucommand</option>, <option value="classKMMessage.html">kmmessage</option>, <option value="classKMMsgDict.html">kmmsgdict</option>, <option value="classKMMsgList.html">kmmsglist</option>, <option value="classKMMsgPartDialog.html">kmmsgpartdialog</option>, <option value="classKMMsgPartDialogCompat.html">kmmsgpartdialogcompat</option>, <option value="classKMPopHeadersView.html">kmpopheadersview</option>, <option value="classKMReaderWin.html">kmreaderwin</option>, <option value="classKMSearchPattern.html">kmsearchpattern</option>, <option value="classKMSearchPatternEdit.html">kmsearchpatternedit</option>, <option value="classKMSearchRule.html">kmsearchrule</option>, <option value="classKMSearchRuleNumerical.html">kmsearchrulenumerical</option>, <option value="classKMSearchRuleStatus.html">kmsearchrulestatus</option>, <option value="classKMSearchRuleString.html">kmsearchrulestring</option>, <option value="classKMSearchRuleWidget.html">kmsearchrulewidget</option>, <option value="classKMSystemTray.html">kmsystemtray</option>, <option value="classMailComposerIface.html">mailcomposeriface</option>, <option value="classScalix_1_1FolderAttributeParser.html">scalix::folderattributeparser</option>, <option value="classSnippetConfig.html">snippetconfig</option>, <option value="classSnippetGroup.html">snippetgroup</option>, <option value="classSnippetItem.html">snippetitem</option>, <option value="classSnippetSettings.html">snippetsettings</option>, <option value="classSnippetWidget.html">snippetwidget</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> <a href="../../akregator/src/html/index.html">src</a></li><li> <a href="../../akregator/src/librss/html/index.html">librss</a></li><li><a href="../../certmanager/html/index.html">certmanager</a></li><li> <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> <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> <a href="../../kioslaves/imap4/html/index.html">imap4</a></li><li> <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> <a href="../../kpilot/kpilot/html/index.html">kpilot</a></li><li> <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="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">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>