diff options
Diffstat (limited to 'doc/html/showrecordelem_8cpp-source.html')
-rw-r--r-- | doc/html/showrecordelem_8cpp-source.html | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/doc/html/showrecordelem_8cpp-source.html b/doc/html/showrecordelem_8cpp-source.html index da795be..6e4329c 100644 --- a/doc/html/showrecordelem_8cpp-source.html +++ b/doc/html/showrecordelem_8cpp-source.html @@ -51,7 +51,7 @@ <a name="l00034"></a>00034 <a class="code" href="classShowRecordElem.html#cf1207160bae1cd017c282b808e44e02">m_pFilter</a> = NULL; <a name="l00035"></a>00035 } <a name="l00036"></a>00036 -<a name="l00037"></a><a class="code" href="classShowRecordElem.html#7a29155aba2fc36f16986b1abed9ceda">00037</a> <a class="code" href="classShowRecordElem.html#aa3cd64818bfb990d5e37720cd29546c">ShowRecordElem::ShowRecordElem</a>( <span class="keywordtype">int</span> number, QString& uid, <span class="keywordtype">bool</span> isNew ) +<a name="l00037"></a><a class="code" href="classShowRecordElem.html#7a29155aba2fc36f16986b1abed9ceda">00037</a> <a class="code" href="classShowRecordElem.html#aa3cd64818bfb990d5e37720cd29546c">ShowRecordElem::ShowRecordElem</a>( <span class="keywordtype">int</span> number, TQString& uid, <span class="keywordtype">bool</span> isNew ) <a name="l00038"></a>00038 { <a name="l00039"></a>00039 <span class="comment">//set default values</span> <a name="l00040"></a>00040 <a class="code" href="classShowRecordElem.html#260019ad5471ede61b2a1958b8c31375">m_from</a> = <span class="stringliteral">"???"</span>; @@ -67,15 +67,15 @@ <a name="l00050"></a>00050 } <a name="l00051"></a>00051 <a name="l00052"></a>00052 -<a name="l00053"></a><a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">00053</a> QCString <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">ShowRecordElem::scanHeader</a>( <span class="keyword">const</span> QString& item )<span class="keyword"> const</span> +<a name="l00053"></a><a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">00053</a> TQCString <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">ShowRecordElem::scanHeader</a>( <span class="keyword">const</span> TQString& item )<span class="keyword"> const</span> <a name="l00054"></a>00054 <span class="keyword"></span>{ -<a name="l00055"></a>00055 QCString headerline( <span class="stringliteral">""</span> ); <span class="comment">//found header line</span> +<a name="l00055"></a>00055 TQCString headerline( <span class="stringliteral">""</span> ); <span class="comment">//found header line</span> <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="comment">//get e.g. the "From:" line, starting with cr,lf,"From:" and ending</span> <a name="l00058"></a>00058 <span class="comment">//with a carriage return</span> <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="comment">//build the search string</span> -<a name="l00061"></a>00061 QString searchstring( QString( <span class="stringliteral">"\r\n%1:"</span> ).arg( item ) ); +<a name="l00061"></a>00061 TQString searchstring( TQString( <span class="stringliteral">"\r\n%1:"</span> ).arg( item ) ); <a name="l00062"></a>00062 <a name="l00063"></a>00063 <span class="comment">//searching...</span> <a name="l00064"></a>00064 <span class="keywordtype">int</span> pos1 = <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a>.find( searchstring, 0, FALSE ); @@ -91,32 +91,32 @@ <a name="l00074"></a>00074 <span class="keywordflow">return</span> headerline; <a name="l00075"></a>00075 } <a name="l00076"></a>00076 -<a name="l00077"></a><a class="code" href="classShowRecordElem.html#28e7072cd68f18e1e07176b9c1bd5f72">00077</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#28e7072cd68f18e1e07176b9c1bd5f72">ShowRecordElem::setHeader</a>( <span class="keyword">const</span> QString& header ) +<a name="l00077"></a><a class="code" href="classShowRecordElem.html#28e7072cd68f18e1e07176b9c1bd5f72">00077</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#28e7072cd68f18e1e07176b9c1bd5f72">ShowRecordElem::setHeader</a>( <span class="keyword">const</span> TQString& header ) <a name="l00078"></a>00078 { <a name="l00079"></a>00079 <span class="comment">//store given header</span> <a name="l00080"></a>00080 <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a> = header.ascii(); <a name="l00081"></a>00081 <a name="l00082"></a>00082 <span class="comment">//extract sender and store it</span> -<a name="l00083"></a>00083 QCString <a class="code" href="classShowRecordElem.html#a4d48b3072adb4f87f56ed2b5e35dbba">from</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"From"</span> ); +<a name="l00083"></a>00083 TQCString <a class="code" href="classShowRecordElem.html#a4d48b3072adb4f87f56ed2b5e35dbba">from</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"From"</span> ); <a name="l00084"></a>00084 from = from.simplifyWhiteSpace(); <a name="l00085"></a>00085 <a class="code" href="classShowRecordElem.html#373e98f7a94fd659ff1174ef7346de08">setFrom</a>( from ); <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="comment">//extract addressee and store it</span> -<a name="l00088"></a>00088 QCString <a class="code" href="classShowRecordElem.html#759a16f3424defc71b4cfd762b156fd1">to</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"To"</span> ); +<a name="l00088"></a>00088 TQCString <a class="code" href="classShowRecordElem.html#759a16f3424defc71b4cfd762b156fd1">to</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"To"</span> ); <a name="l00089"></a>00089 to = to.simplifyWhiteSpace(); <a name="l00090"></a>00090 <a class="code" href="classShowRecordElem.html#fe4b012dfc137770f35879ea2264ba19">setTo</a> (to); <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="comment">//extract subject and store it</span> -<a name="l00093"></a>00093 QCString <a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">subject</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"Subject"</span> ); +<a name="l00093"></a>00093 TQCString <a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">subject</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"Subject"</span> ); <a name="l00094"></a>00094 subject = subject.simplifyWhiteSpace(); <a name="l00095"></a>00095 <a class="code" href="classShowRecordElem.html#bad7c7440195e0284b42c79d281bfbf2">setSubject</a>( subject ); <a name="l00096"></a>00096 <a name="l00097"></a>00097 <span class="comment">//extract date and store it</span> -<a name="l00098"></a>00098 QCString <a class="code" href="classShowRecordElem.html#412ad2a7452c1f5390f2679f1d443292">date</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"Date"</span> ); +<a name="l00098"></a>00098 TQCString <a class="code" href="classShowRecordElem.html#412ad2a7452c1f5390f2679f1d443292">date</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"Date"</span> ); <a name="l00099"></a>00099 <a class="code" href="classShowRecordElem.html#7fe7272db1f8f38f6fa404611acf7b8d">setDate</a>( date ); <a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="comment">//extract content type</span> -<a name="l00102"></a>00102 QCString <a class="code" href="classShowRecordElem.html#8d655afdb7350fd4a27b551da7a8a797">content</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"Content-Type"</span> ); +<a name="l00102"></a>00102 TQCString <a class="code" href="classShowRecordElem.html#8d655afdb7350fd4a27b551da7a8a797">content</a> = <a class="code" href="classShowRecordElem.html#8070b0cbba2b2281a78bfdae3334a981">scanHeader</a>( <span class="stringliteral">"Content-Type"</span> ); <a name="l00103"></a>00103 content = content.simplifyWhiteSpace (); <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="comment">//remove the stuff after the content type; see RFC 2045</span> @@ -130,7 +130,7 @@ <a name="l00113"></a>00113 <a class="code" href="classShowRecordElem.html#8ab7746aad762c2c2e0fe80c4a496f9a">setContent</a> (content); <a name="l00114"></a>00114 } <a name="l00115"></a>00115 -<a name="l00116"></a><a class="code" href="classShowRecordElem.html#7fe7272db1f8f38f6fa404611acf7b8d">00116</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#7fe7272db1f8f38f6fa404611acf7b8d">ShowRecordElem::setDate</a>( <span class="keyword">const</span> QCString& date ) +<a name="l00116"></a><a class="code" href="classShowRecordElem.html#7fe7272db1f8f38f6fa404611acf7b8d">00116</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#7fe7272db1f8f38f6fa404611acf7b8d">ShowRecordElem::setDate</a>( <span class="keyword">const</span> TQCString& date ) <a name="l00117"></a>00117 { <a name="l00118"></a>00118 DwDateTime dwDate; <span class="comment">//this class represents an RFC-822 date-time;</span> <a name="l00119"></a>00119 <span class="comment">//see mimelib/datetime.h</span> @@ -141,37 +141,37 @@ <a name="l00124"></a>00124 <a class="code" href="classShowRecordElem.html#b3f665656a06d88cea46345bcb1a51a9">m_unixDate</a>.setTime_t( dwDate.AsUnixTime() ); <a name="l00125"></a>00125 } <a name="l00126"></a>00126 -<a name="l00127"></a><a class="code" href="classShowRecordElem.html#a4d48b3072adb4f87f56ed2b5e35dbba">00127</a> QString <a class="code" href="classShowRecordElem.html#a4d48b3072adb4f87f56ed2b5e35dbba">ShowRecordElem::from</a>()<span class="keyword"> const</span> +<a name="l00127"></a><a class="code" href="classShowRecordElem.html#a4d48b3072adb4f87f56ed2b5e35dbba">00127</a> TQString <a class="code" href="classShowRecordElem.html#a4d48b3072adb4f87f56ed2b5e35dbba">ShowRecordElem::from</a>()<span class="keyword"> const</span> <a name="l00128"></a>00128 <span class="keyword"></span>{ <a name="l00129"></a>00129 <span class="keywordflow">return</span> <a class="code" href="namespaceCodecs.html#a0ef7c083708a464b1f1357ba5470cde">Codecs::decodeRFC2047</a>( <a class="code" href="classShowRecordElem.html#260019ad5471ede61b2a1958b8c31375">m_from</a> ); <a name="l00130"></a>00130 } <a name="l00131"></a>00131 -<a name="l00132"></a><a class="code" href="classShowRecordElem.html#759a16f3424defc71b4cfd762b156fd1">00132</a> QString <a class="code" href="classShowRecordElem.html#759a16f3424defc71b4cfd762b156fd1">ShowRecordElem::to</a>()<span class="keyword"> const</span> +<a name="l00132"></a><a class="code" href="classShowRecordElem.html#759a16f3424defc71b4cfd762b156fd1">00132</a> TQString <a class="code" href="classShowRecordElem.html#759a16f3424defc71b4cfd762b156fd1">ShowRecordElem::to</a>()<span class="keyword"> const</span> <a name="l00133"></a>00133 <span class="keyword"></span>{ <a name="l00134"></a>00134 <span class="keywordflow">return</span> <a class="code" href="namespaceCodecs.html#a0ef7c083708a464b1f1357ba5470cde">Codecs::decodeRFC2047</a>( <a class="code" href="classShowRecordElem.html#02de09b7b36dfcce893a1e79ff8ba34c">m_to</a> ); <a name="l00135"></a>00135 } <a name="l00136"></a>00136 -<a name="l00137"></a><a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">00137</a> QString <a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">ShowRecordElem::subject</a>()<span class="keyword"> const</span> +<a name="l00137"></a><a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">00137</a> TQString <a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">ShowRecordElem::subject</a>()<span class="keyword"> const</span> <a name="l00138"></a>00138 <span class="keyword"></span>{ <a name="l00139"></a>00139 <span class="keywordflow">return</span> <a class="code" href="namespaceCodecs.html#a0ef7c083708a464b1f1357ba5470cde">Codecs::decodeRFC2047</a>( <a class="code" href="classShowRecordElem.html#1c83a6d029a73795076161efd3842893">m_subject</a> ); <a name="l00140"></a>00140 } <a name="l00141"></a>00141 -<a name="l00142"></a><a class="code" href="classShowRecordElem.html#412ad2a7452c1f5390f2679f1d443292">00142</a> QString <a class="code" href="classShowRecordElem.html#412ad2a7452c1f5390f2679f1d443292">ShowRecordElem::date</a>()<span class="keyword"> const</span> +<a name="l00142"></a><a class="code" href="classShowRecordElem.html#412ad2a7452c1f5390f2679f1d443292">00142</a> TQString <a class="code" href="classShowRecordElem.html#412ad2a7452c1f5390f2679f1d443292">ShowRecordElem::date</a>()<span class="keyword"> const</span> <a name="l00143"></a>00143 <span class="keyword"></span>{ -<a name="l00144"></a>00144 <span class="keywordflow">return</span> KGlobal::locale()->formatDateTime( <a class="code" href="classShowRecordElem.html#b3f665656a06d88cea46345bcb1a51a9">m_unixDate</a>, <span class="keyword">true</span>, <span class="keyword">true</span> ); +<a name="l00144"></a>00144 <span class="keywordflow">return</span> TDEGlobal::locale()->formatDateTime( <a class="code" href="classShowRecordElem.html#b3f665656a06d88cea46345bcb1a51a9">m_unixDate</a>, <span class="keyword">true</span>, <span class="keyword">true</span> ); <a name="l00145"></a>00145 } <a name="l00146"></a>00146 -<a name="l00147"></a><a class="code" href="classShowRecordElem.html#0e554cd8f1e67b3e448054e8c6fdc91c">00147</a> QString <a class="code" href="classShowRecordElem.html#0e554cd8f1e67b3e448054e8c6fdc91c">ShowRecordElem::strUnixTime</a>()<span class="keyword"> const</span> +<a name="l00147"></a><a class="code" href="classShowRecordElem.html#0e554cd8f1e67b3e448054e8c6fdc91c">00147</a> TQString <a class="code" href="classShowRecordElem.html#0e554cd8f1e67b3e448054e8c6fdc91c">ShowRecordElem::strUnixTime</a>()<span class="keyword"> const</span> <a name="l00148"></a>00148 <span class="keyword"></span>{ -<a name="l00149"></a>00149 <span class="keywordflow">return</span> <a class="code" href="classShowRecordElem.html#b3f665656a06d88cea46345bcb1a51a9">m_unixDate</a>.toString( Qt::ISODate ); +<a name="l00149"></a>00149 <span class="keywordflow">return</span> <a class="code" href="classShowRecordElem.html#b3f665656a06d88cea46345bcb1a51a9">m_unixDate</a>.toString( TQt::ISODate ); <a name="l00150"></a>00150 } <a name="l00151"></a>00151 -<a name="l00152"></a><a class="code" href="classShowRecordElem.html#f5e3c42a0be5b06f414b5936d6a64056">00152</a> QString <a class="code" href="classShowRecordElem.html#f5e3c42a0be5b06f414b5936d6a64056">ShowRecordElem::strSize</a>()<span class="keyword"> const</span> +<a name="l00152"></a><a class="code" href="classShowRecordElem.html#f5e3c42a0be5b06f414b5936d6a64056">00152</a> TQString <a class="code" href="classShowRecordElem.html#f5e3c42a0be5b06f414b5936d6a64056">ShowRecordElem::strSize</a>()<span class="keyword"> const</span> <a name="l00153"></a>00153 <span class="keyword"></span>{ -<a name="l00154"></a>00154 <span class="keywordflow">return</span> QString( <span class="stringliteral">"%1"</span> ).arg( <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a>, 8 ); +<a name="l00154"></a>00154 <span class="keywordflow">return</span> TQString( <span class="stringliteral">"%1"</span> ).arg( <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a>, 8 ); <a name="l00155"></a>00155 } <a name="l00156"></a>00156 -<a name="l00157"></a><a class="code" href="classShowRecordElem.html#f00398057086a7fbee1205c5d0f605a2">00157</a> QString <a class="code" href="classShowRecordElem.html#f00398057086a7fbee1205c5d0f605a2">ShowRecordElem::state</a>()<span class="keyword"> const</span> +<a name="l00157"></a><a class="code" href="classShowRecordElem.html#f00398057086a7fbee1205c5d0f605a2">00157</a> TQString <a class="code" href="classShowRecordElem.html#f00398057086a7fbee1205c5d0f605a2">ShowRecordElem::state</a>()<span class="keyword"> const</span> <a name="l00158"></a>00158 <span class="keyword"></span>{ <a name="l00159"></a>00159 <span class="keywordflow">if</span>( <a class="code" href="classShowRecordElem.html#f9f2112f8e2b1c3dfef0286581a892b4">m_new</a> ) <a name="l00160"></a>00160 <span class="keywordflow">return</span> i18n( <span class="stringliteral">"new"</span> ); @@ -179,21 +179,21 @@ <a name="l00162"></a>00162 <span class="keywordflow">return</span> i18n( <span class="stringliteral">"old"</span> ); <a name="l00163"></a>00163 } <a name="l00164"></a>00164 -<a name="l00165"></a><a class="code" href="classShowRecordElem.html#fcabf6ba9c5b68ae2923bb70bf9f45b0">00165</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#fcabf6ba9c5b68ae2923bb70bf9f45b0">ShowRecordElem::saveOptions</a>( QDomDocument& doc, QDomElement& parent ) +<a name="l00165"></a><a class="code" href="classShowRecordElem.html#fcabf6ba9c5b68ae2923bb70bf9f45b0">00165</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#fcabf6ba9c5b68ae2923bb70bf9f45b0">ShowRecordElem::saveOptions</a>( TQDomDocument& doc, TQDomElement& parent ) <a name="l00166"></a>00166 { <a name="l00167"></a>00167 <span class="comment">//build item tag of this mail( with mail number)</span> -<a name="l00168"></a>00168 QString hdr = QString( ITEM_MESSAGE ); +<a name="l00168"></a>00168 TQString hdr = TQString( ITEM_MESSAGE ); <a name="l00169"></a>00169 hdr.append( <span class="stringliteral">"%1"</span> ); <a name="l00170"></a>00170 hdr = hdr.arg( <a class="code" href="classShowRecordElem.html#8583bafac2418ddd8c7d881926851f05">m_nNumber</a> ); <a name="l00171"></a>00171 <a name="l00172"></a>00172 <span class="comment">//create a new element and store the mail meta data in it</span> -<a name="l00173"></a>00173 QDomElement elem = doc.createElement( hdr ); +<a name="l00173"></a>00173 TQDomElement elem = doc.createElement( hdr ); <a name="l00174"></a>00174 elem.setAttribute( ATTRIBUTE_MAIL_NUMBER, <a class="code" href="classShowRecordElem.html#8583bafac2418ddd8c7d881926851f05">m_nNumber</a> ); <a name="l00175"></a>00175 elem.setAttribute( ATTRIBUTE_MAIL_SIZE, <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> ); <a name="l00176"></a>00176 elem.setAttribute( ATTRIBUTE_MAIL_UID, <a class="code" href="classShowRecordElem.html#7da2621d1de438c9118fbcead3c23506">m_uid</a> ); <a name="l00177"></a>00177 <a name="l00178"></a>00178 <span class="comment">//create a sub element for the mail header in store the header in it</span> -<a name="l00179"></a>00179 QDomElement subelem = doc.createElement( ITEM_MAIL_HEADER ); +<a name="l00179"></a>00179 TQDomElement subelem = doc.createElement( ITEM_MAIL_HEADER ); <a name="l00180"></a>00180 subelem.appendChild( doc.createTextNode( <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a> ) ); <a name="l00181"></a>00181 <a name="l00182"></a>00182 <span class="comment">//add header element to the mail element</span> @@ -203,7 +203,7 @@ <a name="l00186"></a>00186 parent.appendChild( elem ); <a name="l00187"></a>00187 } <a name="l00188"></a>00188 -<a name="l00189"></a><a class="code" href="classShowRecordElem.html#97952e1293b679abc1891a240bd9e4f1">00189</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#97952e1293b679abc1891a240bd9e4f1">ShowRecordElem::readOptions</a>( QDomElement& elem ) +<a name="l00189"></a><a class="code" href="classShowRecordElem.html#97952e1293b679abc1891a240bd9e4f1">00189</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#97952e1293b679abc1891a240bd9e4f1">ShowRecordElem::readOptions</a>( TQDomElement& elem ) <a name="l00190"></a>00190 { <a name="l00191"></a>00191 <span class="comment">//get number, size and uid</span> <a name="l00192"></a>00192 <a class="code" href="classShowRecordElem.html#1c31fc69dfe9794c6c77970192d455a5">setNumber</a>( elem.attribute( ATTRIBUTE_MAIL_NUMBER ).toInt() ); @@ -211,7 +211,7 @@ <a name="l00194"></a>00194 <a class="code" href="classShowRecordElem.html#6d24c13e7de2fad247fff5549a96767d">setUIDL</a>( elem.attribute( ATTRIBUTE_MAIL_UID ) ); <a name="l00195"></a>00195 <a name="l00196"></a>00196 <span class="comment">//search for the header item and read it</span> -<a name="l00197"></a>00197 QDomElement subelem = elem.namedItem( ITEM_MAIL_HEADER ).toElement(); +<a name="l00197"></a>00197 TQDomElement subelem = elem.namedItem( ITEM_MAIL_HEADER ).toElement(); <a name="l00198"></a>00198 <a class="code" href="classShowRecordElem.html#28e7072cd68f18e1e07176b9c1bd5f72">setHeader</a>( subelem.text() ); <a name="l00199"></a>00199 <a name="l00200"></a>00200 <span class="comment">//the mail is not new</span> @@ -234,37 +234,37 @@ <a name="l00217"></a>00217 } <a name="l00218"></a>00218 } <a name="l00219"></a>00219 -<a name="l00220"></a><a class="code" href="classShowRecordElem.html#373e98f7a94fd659ff1174ef7346de08">00220</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#373e98f7a94fd659ff1174ef7346de08">ShowRecordElem::setFrom</a>( <span class="keyword">const</span> QCString & from ) +<a name="l00220"></a><a class="code" href="classShowRecordElem.html#373e98f7a94fd659ff1174ef7346de08">00220</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#373e98f7a94fd659ff1174ef7346de08">ShowRecordElem::setFrom</a>( <span class="keyword">const</span> TQCString & from ) <a name="l00221"></a>00221 { <a name="l00222"></a>00222 <a class="code" href="classShowRecordElem.html#260019ad5471ede61b2a1958b8c31375">m_from</a> = from; <a name="l00223"></a>00223 } <a name="l00224"></a>00224 -<a name="l00225"></a><a class="code" href="classShowRecordElem.html#fe4b012dfc137770f35879ea2264ba19">00225</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#fe4b012dfc137770f35879ea2264ba19">ShowRecordElem::setTo</a>( <span class="keyword">const</span> QCString & to ) +<a name="l00225"></a><a class="code" href="classShowRecordElem.html#fe4b012dfc137770f35879ea2264ba19">00225</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#fe4b012dfc137770f35879ea2264ba19">ShowRecordElem::setTo</a>( <span class="keyword">const</span> TQCString & to ) <a name="l00226"></a>00226 { <a name="l00227"></a>00227 <a class="code" href="classShowRecordElem.html#02de09b7b36dfcce893a1e79ff8ba34c">m_to</a> = to; <a name="l00228"></a>00228 } <a name="l00229"></a>00229 -<a name="l00230"></a><a class="code" href="classShowRecordElem.html#bad7c7440195e0284b42c79d281bfbf2">00230</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#bad7c7440195e0284b42c79d281bfbf2">ShowRecordElem::setSubject</a>( <span class="keyword">const</span> QCString & subject ) +<a name="l00230"></a><a class="code" href="classShowRecordElem.html#bad7c7440195e0284b42c79d281bfbf2">00230</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#bad7c7440195e0284b42c79d281bfbf2">ShowRecordElem::setSubject</a>( <span class="keyword">const</span> TQCString & subject ) <a name="l00231"></a>00231 { <a name="l00232"></a>00232 <a class="code" href="classShowRecordElem.html#1c83a6d029a73795076161efd3842893">m_subject</a> = subject; <a name="l00233"></a>00233 } <a name="l00234"></a>00234 -<a name="l00235"></a><a class="code" href="classShowRecordElem.html#8ab7746aad762c2c2e0fe80c4a496f9a">00235</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#8ab7746aad762c2c2e0fe80c4a496f9a">ShowRecordElem::setContent</a>( <span class="keyword">const</span> QCString& content ) +<a name="l00235"></a><a class="code" href="classShowRecordElem.html#8ab7746aad762c2c2e0fe80c4a496f9a">00235</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#8ab7746aad762c2c2e0fe80c4a496f9a">ShowRecordElem::setContent</a>( <span class="keyword">const</span> TQCString& content ) <a name="l00236"></a>00236 { <a name="l00237"></a>00237 <a class="code" href="classShowRecordElem.html#c70dec4d7ff63aa1acffcc7229776990">m_content</a> = content; <a name="l00238"></a>00238 } <a name="l00239"></a>00239 -<a name="l00240"></a><a class="code" href="classShowRecordElem.html#dd5d842c1abdd13fa03ac4a3f2f11150">00240</a> QString <a class="code" href="classShowRecordElem.html#dd5d842c1abdd13fa03ac4a3f2f11150">ShowRecordElem::header</a>( )<span class="keyword"> const</span> +<a name="l00240"></a><a class="code" href="classShowRecordElem.html#dd5d842c1abdd13fa03ac4a3f2f11150">00240</a> TQString <a class="code" href="classShowRecordElem.html#dd5d842c1abdd13fa03ac4a3f2f11150">ShowRecordElem::header</a>( )<span class="keyword"> const</span> <a name="l00241"></a>00241 <span class="keyword"></span>{ -<a name="l00242"></a>00242 <span class="keywordflow">return</span> QString( <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a> ); +<a name="l00242"></a>00242 <span class="keywordflow">return</span> TQString( <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a> ); <a name="l00243"></a>00243 } <a name="l00244"></a>00244 -<a name="l00245"></a><a class="code" href="classShowRecordElem.html#6d24c13e7de2fad247fff5549a96767d">00245</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#6d24c13e7de2fad247fff5549a96767d">ShowRecordElem::setUIDL</a>( <span class="keyword">const</span> QString & uid ) +<a name="l00245"></a><a class="code" href="classShowRecordElem.html#6d24c13e7de2fad247fff5549a96767d">00245</a> <span class="keywordtype">void</span> <a class="code" href="classShowRecordElem.html#6d24c13e7de2fad247fff5549a96767d">ShowRecordElem::setUIDL</a>( <span class="keyword">const</span> TQString & uid ) <a name="l00246"></a>00246 { <a name="l00247"></a>00247 <a class="code" href="classShowRecordElem.html#7da2621d1de438c9118fbcead3c23506">m_uid</a> = uid; <a name="l00248"></a>00248 } <a name="l00249"></a>00249 -<a name="l00250"></a><a class="code" href="classShowRecordElem.html#835e045bf24090c4d6a6a9049c60e94c">00250</a> QString <a class="code" href="classShowRecordElem.html#835e045bf24090c4d6a6a9049c60e94c">ShowRecordElem::uidl</a>( )<span class="keyword"> const</span> +<a name="l00250"></a><a class="code" href="classShowRecordElem.html#835e045bf24090c4d6a6a9049c60e94c">00250</a> TQString <a class="code" href="classShowRecordElem.html#835e045bf24090c4d6a6a9049c60e94c">ShowRecordElem::uidl</a>( )<span class="keyword"> const</span> <a name="l00251"></a>00251 <span class="keyword"></span>{ <a name="l00252"></a>00252 <span class="keywordflow">return</span> <a class="code" href="classShowRecordElem.html#7da2621d1de438c9118fbcead3c23506">m_uid</a>; <a name="l00253"></a>00253 } @@ -299,7 +299,7 @@ <a name="l00282"></a>00282 <span class="keywordflow">return</span> <a class="code" href="classShowRecordElem.html#8583bafac2418ddd8c7d881926851f05">m_nNumber</a>; <a name="l00283"></a>00283 } <a name="l00284"></a>00284 -<a name="l00285"></a><a class="code" href="classShowRecordElem.html#8d655afdb7350fd4a27b551da7a8a797">00285</a> QString <a class="code" href="classShowRecordElem.html#8d655afdb7350fd4a27b551da7a8a797">ShowRecordElem::content</a>( )<span class="keyword"> const</span> +<a name="l00285"></a><a class="code" href="classShowRecordElem.html#8d655afdb7350fd4a27b551da7a8a797">00285</a> TQString <a class="code" href="classShowRecordElem.html#8d655afdb7350fd4a27b551da7a8a797">ShowRecordElem::content</a>( )<span class="keyword"> const</span> <a name="l00286"></a>00286 <span class="keyword"></span>{ <a name="l00287"></a>00287 <span class="keywordflow">return</span> <a class="code" href="classShowRecordElem.html#c70dec4d7ff63aa1acffcc7229776990">m_content</a>; <a name="l00288"></a>00288 } @@ -327,38 +327,38 @@ <a name="l00310"></a>00310 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00311"></a>00311 } <a name="l00312"></a>00312 -<a name="l00313"></a><a class="code" href="classShowRecordElem.html#233ccd75f668ec868ec726120d8c71d9">00313</a> QString <a class="code" href="classShowRecordElem.html#233ccd75f668ec868ec726120d8c71d9">ShowRecordElem::strSizePrefix</a>( )<span class="keyword"> const</span> +<a name="l00313"></a><a class="code" href="classShowRecordElem.html#233ccd75f668ec868ec726120d8c71d9">00313</a> TQString <a class="code" href="classShowRecordElem.html#233ccd75f668ec868ec726120d8c71d9">ShowRecordElem::strSizePrefix</a>( )<span class="keyword"> const</span> <a name="l00314"></a>00314 <span class="keyword"></span>{ -<a name="l00315"></a>00315 QString <a class="code" href="classShowRecordElem.html#4b4077ca5d47226ccb44b6d8373a4fbd">size</a>; +<a name="l00315"></a>00315 TQString <a class="code" href="classShowRecordElem.html#4b4077ca5d47226ccb44b6d8373a4fbd">size</a>; <a name="l00316"></a>00316 <a name="l00317"></a>00317 <span class="keywordflow">if</span>( <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> >= 1024 * 1024 ) <a name="l00318"></a>00318 { <a name="l00319"></a>00319 <span class="comment">//prefix is mega</span> -<a name="l00320"></a>00320 size = QString( <span class="stringliteral">"%L1M"</span> ).arg( ( (<span class="keywordtype">double</span>)<a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> / ( 1024 * 1024 ) ), 0, <span class="charliteral">'f'</span>, 1 ); +<a name="l00320"></a>00320 size = TQString( <span class="stringliteral">"%L1M"</span> ).arg( ( (<span class="keywordtype">double</span>)<a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> / ( 1024 * 1024 ) ), 0, <span class="charliteral">'f'</span>, 1 ); <a name="l00321"></a>00321 } <a name="l00322"></a>00322 <span class="keywordflow">else</span> <span class="keywordflow">if</span>( <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> >= 1024 ) <a name="l00323"></a>00323 { <a name="l00324"></a>00324 <span class="comment">//prefix is kilo</span> -<a name="l00325"></a>00325 size = QString( <span class="stringliteral">"%L1K"</span> ).arg( ( (<span class="keywordtype">double</span>)<a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> / 1024 ), 0, <span class="charliteral">'f'</span>, 1 ); +<a name="l00325"></a>00325 size = TQString( <span class="stringliteral">"%L1K"</span> ).arg( ( (<span class="keywordtype">double</span>)<a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> / 1024 ), 0, <span class="charliteral">'f'</span>, 1 ); <a name="l00326"></a>00326 } <a name="l00327"></a>00327 <span class="keywordflow">else</span> <a name="l00328"></a>00328 <span class="comment">//no prefix</span> -<a name="l00329"></a>00329 size = QString( <span class="stringliteral">"%L1"</span> ).arg( <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> ); +<a name="l00329"></a>00329 size = TQString( <span class="stringliteral">"%L1"</span> ).arg( <a class="code" href="classShowRecordElem.html#3ef7da0fb8e84e7e672888aa349de622">m_size</a> ); <a name="l00330"></a>00330 <a name="l00331"></a>00331 <span class="keywordflow">return</span> size; <a name="l00332"></a>00332 } <a name="l00333"></a>00333 -<a name="l00334"></a><a class="code" href="classShowRecordElem.html#27af244fc090ac05fabde1becb7bf60d">00334</a> QString <a class="code" href="classShowRecordElem.html#27af244fc090ac05fabde1becb7bf60d">ShowRecordElem::decodeMailBody</a>( QByteArray body, <span class="keywordtype">bool</span> preferHTML )<span class="keyword"> const</span> +<a name="l00334"></a><a class="code" href="classShowRecordElem.html#27af244fc090ac05fabde1becb7bf60d">00334</a> TQString <a class="code" href="classShowRecordElem.html#27af244fc090ac05fabde1becb7bf60d">ShowRecordElem::decodeMailBody</a>( TQByteArray body, <span class="keywordtype">bool</span> preferHTML )<span class="keyword"> const</span> <a name="l00335"></a>00335 <span class="keyword"></span>{ -<a name="l00336"></a>00336 QString charset; <span class="comment">//charset of the content</span> -<a name="l00337"></a>00337 QString encoding; <span class="comment">//content transfer encoding</span> +<a name="l00336"></a>00336 TQString charset; <span class="comment">//charset of the content</span> +<a name="l00337"></a>00337 TQString encoding; <span class="comment">//content transfer encoding</span> <a name="l00338"></a>00338 -<a name="l00339"></a>00339 <span class="comment">//cast given body to a QCString</span> -<a name="l00340"></a>00340 <span class="comment">//class QCString needs a null terminated char array to create</span> +<a name="l00339"></a>00339 <span class="comment">//cast given body to a TQCString</span> +<a name="l00340"></a>00340 <span class="comment">//class TQCString needs a null terminated char array to create</span> <a name="l00341"></a>00341 <span class="comment">//an object. Therefore we append an null byte to the given mail body</span> <a name="l00342"></a>00342 body.resize( body.size() + 1 ); <a name="l00343"></a>00343 body[ body.size() - 1 ] = <span class="charliteral">'\0'</span>; -<a name="l00344"></a>00344 QCString strBody( (<span class="keywordtype">char</span> *)body.data() ); +<a name="l00344"></a>00344 TQCString strBody( (<span class="keywordtype">char</span> *)body.data() ); <a name="l00345"></a>00345 <a name="l00346"></a>00346 <span class="comment">//normalize line ends; remove all \r characters</span> <a name="l00347"></a>00347 <span class="keywordflow">for</span>( uint i = 0; i < strBody.size(); i++ ) @@ -368,7 +368,7 @@ <a name="l00351"></a>00351 <span class="comment">//get boundary that is separating the parts of a multipart message</span> <a name="l00352"></a>00352 <span class="comment">//if the header doesn't contain a boundary attribute, this messsage</span> <a name="l00353"></a>00353 <span class="comment">//has just one part</span> -<a name="l00354"></a>00354 QString boundary = <a class="code" href="classShowRecordElem.html#9c49db9d3ce2495c477c783dd5e5da7d">getBoundary</a>(); +<a name="l00354"></a>00354 TQString boundary = <a class="code" href="classShowRecordElem.html#9c49db9d3ce2495c477c783dd5e5da7d">getBoundary</a>(); <a name="l00355"></a>00355 <a name="l00356"></a>00356 <span class="comment">//process body subject to it is a multipart messsage or not</span> <a name="l00357"></a>00357 <span class="keywordflow">if</span>( boundary == <span class="stringliteral">""</span> ) @@ -511,12 +511,12 @@ <a name="l00494"></a>00494 strBody = KCodecs::quotedPrintableDecode( strBody ); <a name="l00495"></a>00495 } <a name="l00496"></a>00496 -<a name="l00497"></a>00497 <span class="keywordflow">return</span> QString( strBody ); +<a name="l00497"></a>00497 <span class="keywordflow">return</span> TQString( strBody ); <a name="l00498"></a>00498 } <a name="l00499"></a>00499 -<a name="l00500"></a><a class="code" href="classShowRecordElem.html#9c49db9d3ce2495c477c783dd5e5da7d">00500</a> QString <a class="code" href="classShowRecordElem.html#9c49db9d3ce2495c477c783dd5e5da7d">ShowRecordElem::getBoundary</a>( )<span class="keyword"> const</span> +<a name="l00500"></a><a class="code" href="classShowRecordElem.html#9c49db9d3ce2495c477c783dd5e5da7d">00500</a> TQString <a class="code" href="classShowRecordElem.html#9c49db9d3ce2495c477c783dd5e5da7d">ShowRecordElem::getBoundary</a>( )<span class="keyword"> const</span> <a name="l00501"></a>00501 <span class="keyword"></span>{ -<a name="l00502"></a>00502 QString boundary; +<a name="l00502"></a>00502 TQString boundary; <a name="l00503"></a>00503 <a name="l00504"></a>00504 <span class="comment">//check, whether it is a multipart message</span> <a name="l00505"></a>00505 <span class="keywordflow">if</span>( <a class="code" href="classShowRecordElem.html#c70dec4d7ff63aa1acffcc7229776990">m_content</a>.contains( <span class="stringliteral">"multipart"</span>, <span class="keyword">false</span> ) ) @@ -543,9 +543,9 @@ <a name="l00526"></a>00526 <span class="keywordflow">return</span> boundary; <a name="l00527"></a>00527 } <a name="l00528"></a>00528 -<a name="l00529"></a><a class="code" href="classShowRecordElem.html#4919b572763cc228320420059e29b0a7">00529</a> QString <a class="code" href="classShowRecordElem.html#4919b572763cc228320420059e29b0a7">ShowRecordElem::getCharset</a>( )<span class="keyword"> const</span> +<a name="l00529"></a><a class="code" href="classShowRecordElem.html#4919b572763cc228320420059e29b0a7">00529</a> TQString <a class="code" href="classShowRecordElem.html#4919b572763cc228320420059e29b0a7">ShowRecordElem::getCharset</a>( )<span class="keyword"> const</span> <a name="l00530"></a>00530 <span class="keyword"></span>{ -<a name="l00531"></a>00531 QString charset; +<a name="l00531"></a>00531 TQString charset; <a name="l00532"></a>00532 <a name="l00533"></a>00533 <span class="comment">//get the position of the first occurance of "charset="</span> <a name="l00534"></a>00534 <span class="keywordtype">int</span> posCharset = <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a>.find( <span class="stringliteral">"charset="</span>, 0, <span class="keyword">false</span> ); @@ -569,12 +569,12 @@ <a name="l00552"></a>00552 charset = charset.left( posSemicolon ); <a name="l00553"></a>00553 } <a name="l00554"></a>00554 -<a name="l00555"></a>00555 <span class="keywordflow">return</span> QString( charset ); +<a name="l00555"></a>00555 <span class="keywordflow">return</span> TQString( charset ); <a name="l00556"></a>00556 } <a name="l00557"></a>00557 -<a name="l00558"></a><a class="code" href="classShowRecordElem.html#9f0dcc62d28fbcec89b0af33c7e0c446">00558</a> QString <a class="code" href="classShowRecordElem.html#9f0dcc62d28fbcec89b0af33c7e0c446">ShowRecordElem::getTransferEncoding</a>( )<span class="keyword"> const</span> +<a name="l00558"></a><a class="code" href="classShowRecordElem.html#9f0dcc62d28fbcec89b0af33c7e0c446">00558</a> TQString <a class="code" href="classShowRecordElem.html#9f0dcc62d28fbcec89b0af33c7e0c446">ShowRecordElem::getTransferEncoding</a>( )<span class="keyword"> const</span> <a name="l00559"></a>00559 <span class="keyword"></span>{ -<a name="l00560"></a>00560 QString encoding; +<a name="l00560"></a>00560 TQString encoding; <a name="l00561"></a>00561 <a name="l00562"></a>00562 <span class="comment">//get the position of the first occurance of "charset="</span> <a name="l00563"></a>00563 <span class="keywordtype">int</span> posEncoding = <a class="code" href="classShowRecordElem.html#ca732c6667cb0424aab679785d24256a">m_header</a>.find( <span class="stringliteral">"Content-Transfer-Encoding:"</span>, 0, <span class="keyword">false</span> ); @@ -596,22 +596,22 @@ <a name="l00579"></a>00579 encoding.remove( <span class="charliteral">'"'</span> ); <a name="l00580"></a>00580 } <a name="l00581"></a>00581 -<a name="l00582"></a>00582 <span class="keywordflow">return</span> QString( encoding ); +<a name="l00582"></a>00582 <span class="keywordflow">return</span> TQString( encoding ); <a name="l00583"></a>00583 <a name="l00584"></a>00584 } <a name="l00585"></a>00585 -<a name="l00586"></a><a class="code" href="classShowRecordElem.html#62792e6386e65ac0050f2e02963254b0">00586</a> <span class="keywordtype">int</span> <a class="code" href="classShowRecordElem.html#62792e6386e65ac0050f2e02963254b0">ShowRecordElem::showHeader</a>( QString& account ) +<a name="l00586"></a><a class="code" href="classShowRecordElem.html#62792e6386e65ac0050f2e02963254b0">00586</a> <span class="keywordtype">int</span> <a class="code" href="classShowRecordElem.html#62792e6386e65ac0050f2e02963254b0">ShowRecordElem::showHeader</a>( TQString& account ) <a name="l00587"></a>00587 { <a name="l00588"></a>00588 <span class="comment">//show header</span> -<a name="l00589"></a>00589 QString tsubject = <a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">subject</a>(); -<a name="l00590"></a>00590 QString tmailheader = <a class="code" href="classShowRecordElem.html#dd5d842c1abdd13fa03ac4a3f2f11150">header</a>(); +<a name="l00589"></a>00589 TQString tsubject = <a class="code" href="classShowRecordElem.html#b3b6657b842bbd5e4759fe7f55534416">subject</a>(); +<a name="l00590"></a>00590 TQString tmailheader = <a class="code" href="classShowRecordElem.html#dd5d842c1abdd13fa03ac4a3f2f11150">header</a>(); <a name="l00591"></a>00591 <a name="l00592"></a>00592 <span class="comment">//create and open the window</span> <a name="l00593"></a>00593 <a class="code" href="classShowHeaderDialog.html">ShowHeaderDialog</a> dlg( kapp->mainWidget(), account, tsubject, tmailheader ); <a name="l00594"></a>00594 <span class="keywordtype">int</span> ret = dlg.exec(); <a name="l00595"></a>00595 <a name="l00596"></a>00596 <span class="comment">//returns the matching value</span> -<a name="l00597"></a>00597 <span class="keywordflow">return</span> ret == QDialog::Accepted ? <a class="code" href="classShowRecordElem.html#2b5bdb3ed3f940614135b9c9f1f13eb6">ShowRecordElem::continueShowHeaders</a> : <a class="code" href="classShowRecordElem.html#b6aceead6b70f3e3f5e6af530c5ac1af">ShowRecordElem::cancelShowHeaders</a>; +<a name="l00597"></a>00597 <span class="keywordflow">return</span> ret == TQDialog::Accepted ? <a class="code" href="classShowRecordElem.html#2b5bdb3ed3f940614135b9c9f1f13eb6">ShowRecordElem::continueShowHeaders</a> : <a class="code" href="classShowRecordElem.html#b6aceead6b70f3e3f5e6af530c5ac1af">ShowRecordElem::cancelShowHeaders</a>; <a name="l00598"></a>00598 } <a name="l00599"></a>00599 <a name="l00600"></a>00600 |