kioslave/imap4
25 #include "mimehdrline.h"
28 #include <kimap/rfccodecs.h>
29 using namespace KIMAP;
42 virtual void outputHeader (
mimeIO &);
43 virtual void outputPart (
mimeIO &);
52 bool parseHeader (
mimeIO &);
76 return _contentDescription;
80 _contentDescription = _str;
85 return _contentDisposition;
89 _contentDisposition = _str;
94 return _contentEncoding;
98 _contentEncoding = _str;
119 unsigned long getLength ()
121 return contentLength;
123 void setLength (
unsigned long _len)
125 contentLength = _len;
128 const QString & getPartSpecifier ()
130 return partSpecifier;
132 void setPartSpecifier (
const QString & _str)
134 partSpecifier = _str;
141 mimeContent = aContent;
150 return preMultipartBody + postMultipartBody;
154 return preMultipartBody;
158 preMultipartBody = inBody;
163 return postMultipartBody;
167 postMultipartBody = inBody;
168 contentLength = inBody.
length ();
173 return nestedMessage;
175 void setNestedMessage (
mimeHeader * inPart,
bool destroy =
true)
177 if ( nestedMessage && destroy ) {
178 delete nestedMessage;
180 nestedMessage = inPart;
186 nestedParts.append( inPart );
194 void clearNestedParts ()
200 void clearTypeParameters ()
206 void clearDispositionParameters ()
208 dispositionList.clear ();
214 #ifdef KMAIL_COMPATIBLE
217 return contentLength;
221 return nestedParts.count();
226 ( *ret ) = nestedParts.at( which );
228 return nestedParts.at( which );
235 return QString( contentType.left( contentType.find(
'/' ) ) );
237 void setTypeStr (
const QString & _str)
243 return QString( contentType.right( contentType.length() - contentType.find(
'/' ) - 1 ) );
245 void setSubtypeStr (
const QString & _str)
251 return QString( getEncoding() );
253 void setCteStr (
const QString & _str)
259 return QString( _contentDisposition );
263 return QString( postMultipartBody );
267 return getTypeParm(
"charset" );
271 void setBodyEncodedBinary (
const QByteArray &);
275 return QString( getTypeParm(
"name" ) );
277 void setName (
const QString & _str)
279 setTypeParm(
"name", _str );
283 return QString( getDispositionParm(
"filename" ) );
287 return QString( RfcCodecs::decodeRFC2047String( _contentDescription ) );
289 void setContentDescription (
const QString & _str)
291 _contentDescription = RfcCodecs::encodeRFC2047String( _str ).toLatin1();
298 QString magicSetType (
bool aAutoDecode =
true);
307 void setContentDisposition (
const QString & _str)
330 unsigned int contentLength;
QByteArray toLatin1() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:08 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.