kmail
KMMessagePart Class Reference
List of all members.Detailed Description
Definition at line 34 of file kmmsgpart.h.
Public Member Functions | |
KMMessagePart () | |
KMMessagePart (QDataStream &stream) | |
virtual | ~KMMessagePart () |
void | clear () |
void | duplicate (const KMMessagePart &msgPart) |
QCString | body (void) const |
void | setBody (const QCString &aStr) |
DwString | dwBody () const |
void | setBody (const DwString &aStr) |
void | setBody (const QByteArray &arr) |
void | setBodyFromUnicode (const QString &str) |
QString | bodyToUnicode (const QTextCodec *codec=0) const |
QByteArray | bodyDecodedBinary (void) const |
QCString | bodyDecoded (void) const |
void | setBodyAndGuessCte (const QByteArray &aBuf, QValueList< int > &allowedCte, bool allow8Bit=false, bool willBeSigned=false) |
void | setBodyAndGuessCte (const QCString &aBuf, QValueList< int > &allowedCte, bool allow8Bit=false, bool willBeSigned=false) |
void | setBodyEncodedBinary (const QByteArray &aStr) |
void | setBodyEncoded (const QCString &aStr) |
void | setMessageBody (const QByteArray &aBuf) |
int | decodedSize (void) const |
QCString | originalContentTypeStr (void) const |
void | setOriginalContentTypeStr (const QCString &txt) |
QCString | typeStr () const |
void | setTypeStr (const QCString &aStr) |
int | type () const |
void | setType (int aType) |
QCString | subtypeStr () const |
void | setSubtypeStr (const QCString &aStr) |
int | subtype () const |
void | setSubtype (int aSubtype) |
QCString | contentId () const |
void | setContentId (const QCString &aStr) |
void | magicSetType (bool autoDecode=TRUE) |
QCString | parameterAttribute (void) const |
QString | parameterValue (void) const |
void | setParameter (const QCString &attribute, const QString &value) |
QCString | additionalCTypeParamStr (void) const |
void | setAdditionalCTypeParamStr (const QCString ¶m) |
QString | iconName (int size=KIcon::Desktop) const |
QCString | contentTransferEncodingStr (void) const |
int | contentTransferEncoding (void) const |
void | setContentTransferEncodingStr (const QCString &aStr) |
void | setContentTransferEncoding (int aCte) |
QCString | cteStr (void) const |
int | cte (void) const |
void | setCteStr (const QCString &aStr) |
void | setCte (int aCte) |
QString | contentDescription () const |
QCString | contentDescriptionEncoded () const |
void | setContentDescription (const QString &aStr) |
QCString | contentDisposition () const |
void | setContentDisposition (const QCString &cd) |
QCString | charset () const |
void | setCharset (const QCString &c) |
const QTextCodec * | codec () const |
QString | name () const |
void | setName (const QString &name) |
QString | fileName (void) const |
QString | partSpecifier () const |
void | setPartSpecifier (const QString &part) |
bool | isComplete () |
KMMessagePart * | parent () |
void | setParent (KMMessagePart *part) |
bool | loadHeaders () |
void | setLoadHeaders (bool load) |
bool | loadPart () |
void | setLoadPart (bool load) |
Protected Attributes | |
QCString | mOriginalContentTypeStr |
QCString | mType |
QCString | mSubtype |
QCString | mCte |
QCString | mContentDescription |
QCString | mContentDisposition |
QCString | mContentId |
QByteArray | mBody |
QCString | mAdditionalCTypeParamStr |
QString | mName |
QCString | mParameterAttribute |
QString | mParameterValue |
QCString | mCharset |
QString | mPartSpecifier |
int | mBodyDecodedSize |
KMMessagePart * | mParent |
bool | mLoadHeaders |
bool | mLoadPart |
Member Function Documentation
|
Get or set the message body.
Definition at line 594 of file kmmsgpart.cpp. |
|
Returns body as decoded string. Assumes that content-transfer-encoding contains the correct encoding. This routine is meant for text strings! Definition at line 359 of file kmmsgpart.cpp. |
|
Returns body as decoded string. Assumes that content-transfer-encoding contains the correct encoding. This routine is meant for binary data. No trailing 0 is appended. Definition at line 328 of file kmmsgpart.cpp. |
|
Returns the body part decoded to unicode.
Definition at line 164 of file kmmsgpart.cpp. |
|
Get the message part charset.
Definition at line 190 of file kmmsgpart.h. |
|
Reset to text/plain with 7bit cte and clear all other properties.
Definition at line 63 of file kmmsgpart.cpp. |
|
Get a QTextCodec suitable for this message part.
Definition at line 148 of file kmmsgpart.cpp. |
|
Get or set the 'Content-Description' header field.
Definition at line 535 of file kmmsgpart.cpp. |
|
Get or set the 'Content-Disposition' header field.
Definition at line 186 of file kmmsgpart.h. |
|
Content-Id.
Definition at line 136 of file kmmsgpart.h. |
|
Get or set the 'Content-Transfer-Encoding' header field The member functions that involve enumerated types (ints) will work only for well-known encodings.
Definition at line 504 of file kmmsgpart.cpp. |
|
Cte is short for ContentTransferEncoding. These functions are an alternative to the ones with longer names. Definition at line 174 of file kmmsgpart.h. |
|
Returns decoded length of body.
Definition at line 95 of file kmmsgpart.cpp. |
|
Obtains an independant copy (i.e. without explicitely shared data) of the data contained in msgPart. Definition at line 86 of file kmmsgpart.cpp. |
|
Returns name of filename part of 'Content-Disposition' header field, if present.
Definition at line 552 of file kmmsgpart.cpp. |
|
Tries to find a good icon for the 'Content-Type' by scanning the installed mimelnk files. Returns the found icon. If no matching icon is found, the one for application/octet-stream is returned. Definition at line 432 of file kmmsgpart.cpp. |
|
If this part is complete (contains a body).
Definition at line 213 of file kmmsgpart.h. |
|
Returns true if the headers should be loaded.
Definition at line 222 of file kmmsgpart.h. |
|
Returns true if the part itself (as returned by kioslave) should be loaded.
Definition at line 228 of file kmmsgpart.h. |
|
Set the 'Content-Type' by mime-magic from the contents of the body. If autoDecode is TRUE the decoded body will be used for mime type determination (this does not change the body itself). Definition at line 417 of file kmmsgpart.cpp. |
|
Get or set name parameter.
Definition at line 199 of file kmmsgpart.h. |
|
Get or set the 'Content-Type' header field The member functions that involve enumerated types (ints) will work only for well-known types or subtypes.
Definition at line 120 of file kmmsgpart.h. |
|
Get or set a custom content type parameter, consisting of an attribute name and a corresponding value.
Definition at line 484 of file kmmsgpart.cpp. |
|
Returns the parent part.
Definition at line 216 of file kmmsgpart.h. |
|
Returns the part number.
Definition at line 207 of file kmmsgpart.h. |
|
Same for text.
Definition at line 245 of file kmmsgpart.cpp. |
|
Sets body, encoded in the best fitting content-transfer-encoding, which is determined by character frequency count.
|
|
Sets body, encoded according to the content-transfer-encoding. This one is for text strings, the trailing 0 is not used. For speed reasons, prefer setBodyEncodedBinary. When possible (the QCString isn't used afterwards), change setBodyEncoded(myQCString) into: setBodyEncodedBinary(byteArrayFromQCStringNoDetach(myQCString)); Definition at line 185 of file kmmsgpart.cpp. |
|
Sets body, encoded according to the content-transfer-encoding. BEWARE: The entire aStr is used including trailing 0 of text strings! This version is faster than setBodyEncoded, no duplication necessary. |
|
Sets this body part's content to
Definition at line 137 of file kmmsgpart.cpp. |
|
Set the message part charset.
Definition at line 173 of file kmmsgpart.cpp. |
|
Set to true if the headers should be loaded.
Definition at line 225 of file kmmsgpart.h. |
|
Set to true if the part itself should be loaded.
Definition at line 231 of file kmmsgpart.h. |
|
Set a full message string as the body of the message part, disallowing anything but 7bit or 8bit encoding. (RFC 1521 section 7.3) |
|
Set the parent of this part.
Definition at line 219 of file kmmsgpart.h. |
|
Sets the part number.
Definition at line 210 of file kmmsgpart.h. |
|
Subtype.
Definition at line 130 of file kmmsgpart.h. |
The documentation for this class was generated from the following files: