kmail
KMMessagePart Class Reference
#include <kmmsgpart.h>
Detailed Description
Definition at line 31 of file kmmsgpart.h.
Constructor & Destructor Documentation
| KMMessagePart::KMMessagePart | ( | ) |
Definition at line 28 of file kmmsgpart.cpp.
| KMMessagePart::KMMessagePart | ( | QDataStream & | stream | ) |
Definition at line 35 of file kmmsgpart.cpp.
| KMMessagePart::~KMMessagePart | ( | ) | [virtual] |
Definition at line 55 of file kmmsgpart.cpp.
Member Function Documentation
| QByteArray KMMessagePart::additionalCTypeParamStr | ( | void | ) | const [inline] |
Definition at line 132 of file kmmsgpart.h.
| QByteArray KMMessagePart::body | ( | void | ) | const |
| QByteArray KMMessagePart::bodyDecoded | ( | void | ) | const |
Returns body as decoded string.
Assumes that content-transfer-encoding contains the correct encoding. This routine is meant for text strings!
Definition at line 280 of file kmmsgpart.cpp.
| QByteArray KMMessagePart::bodyDecodedBinary | ( | void | ) | const |
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 250 of file kmmsgpart.cpp.
| QString KMMessagePart::bodyToUnicode | ( | const QTextCodec * | codec = 0 |
) | const |
| QByteArray KMMessagePart::charset | ( | ) | const [inline] |
| void KMMessagePart::clear | ( | void | ) |
Reset to text/plain with 7bit cte and clear all other properties.
Definition at line 61 of file kmmsgpart.cpp.
| const QTextCodec * KMMessagePart::codec | ( | ) | const |
| QString KMMessagePart::contentDescription | ( | void | ) | const |
| QByteArray KMMessagePart::contentDescriptionEncoded | ( | ) | const [inline] |
Definition at line 164 of file kmmsgpart.h.
| QByteArray KMMessagePart::contentDisposition | ( | ) | const [inline] |
| QByteArray KMMessagePart::contentId | ( | ) | const [inline] |
| int KMMessagePart::contentTransferEncoding | ( | void | ) | const |
Definition at line 394 of file kmmsgpart.cpp.
| QByteArray KMMessagePart::contentTransferEncodingStr | ( | void | ) | const |
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 387 of file kmmsgpart.cpp.
| int KMMessagePart::cte | ( | void | ) | const [inline] |
Definition at line 157 of file kmmsgpart.h.
| QByteArray KMMessagePart::cteStr | ( | void | ) | const [inline] |
Cte is short for ContentTransferEncoding.
These functions are an alternative to the ones with longer names.
Definition at line 156 of file kmmsgpart.h.
| int KMMessagePart::decodedSize | ( | ) | const |
| void KMMessagePart::duplicate | ( | const KMMessagePart & | msgPart | ) |
Obtains an independent copy (i.e.
without explicitly shared data) of the data contained in msgPart.
Definition at line 84 of file kmmsgpart.cpp.
| QString KMMessagePart::fileName | ( | void | ) | const |
Returns name of filename part of 'Content-Disposition' header field, if present.
Definition at line 438 of file kmmsgpart.cpp.
| QString KMMessagePart::iconName | ( | int | size = KIconLoader::Desktop |
) | const |
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 309 of file kmmsgpart.cpp.
| bool KMMessagePart::isComplete | ( | ) | [inline] |
| bool KMMessagePart::loadHeaders | ( | ) | [inline] |
| bool KMMessagePart::loadPart | ( | ) | [inline] |
Returns true if the part itself (as returned by kioslave) should be loaded.
Definition at line 210 of file kmmsgpart.h.
| void KMMessagePart::magicSetType | ( | bool | autoDecode = true |
) |
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 296 of file kmmsgpart.cpp.
| QString KMMessagePart::name | ( | ) | const [inline] |
| QByteArray KMMessagePart::originalContentTypeStr | ( | void | ) | const [inline] |
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 101 of file kmmsgpart.h.
| QByteArray KMMessagePart::parameterAttribute | ( | void | ) | const |
Get or set a custom content type parameter, consisting of an attribute name and a corresponding value.
Definition at line 367 of file kmmsgpart.cpp.
| QString KMMessagePart::parameterValue | ( | void | ) | const |
Definition at line 373 of file kmmsgpart.cpp.
| KMMessagePart* KMMessagePart::parent | ( | void | ) | [inline] |
| QString KMMessagePart::partSpecifier | ( | ) | const [inline] |
| void KMMessagePart::setAdditionalCTypeParamStr | ( | const QByteArray & | param | ) | [inline] |
Definition at line 136 of file kmmsgpart.h.
| void KMMessagePart::setBody | ( | const QByteArray & | aStr | ) |
Definition at line 102 of file kmmsgpart.cpp.
| void KMMessagePart::setBodyAndGuessCte | ( | const QByteArray & | aBuf, | |
| QList< int > & | allowedCte, | |||
| bool | allow8Bit = false, |
|||
| bool | willBeSigned = false | |||
| ) |
Sets body, encoded in the best fitting content-transfer-encoding, which is determined by character frequency count.
- Parameters:
-
aBuf input buffer allowedCte return: list of allowed cte's allow8Bit whether "8bit" is allowed as cte. willBeSigned whether "7bit"/"8bit" is allowed as cte according to RFC 3156
Definition at line 167 of file kmmsgpart.cpp.
| void KMMessagePart::setBodyEncoded | ( | const QByteArray & | aStr | ) |
Sets body, encoded according to the content-transfer-encoding.
This one is for text strings, the trailing 0 is not used.
Definition at line 161 of file kmmsgpart.cpp.
| void KMMessagePart::setBodyEncodedBinary | ( | const QByteArray & | aStr | ) |
Sets body, encoded according to the content-transfer-encoding.
BEWARE: The entire aStr is used including trailing 0 of text strings!
Definition at line 191 of file kmmsgpart.cpp.
| void KMMessagePart::setBodyFromUnicode | ( | const QString & | str | ) |
Sets this body part's content to str.
str is subject to automatic charset and CTE detection.
Definition at line 113 of file kmmsgpart.cpp.
| void KMMessagePart::setCharset | ( | const QByteArray & | c | ) |
| void KMMessagePart::setContentDescription | ( | const QString & | aStr | ) |
Definition at line 425 of file kmmsgpart.cpp.
| void KMMessagePart::setContentDisposition | ( | const QByteArray & | cd | ) | [inline] |
Definition at line 169 of file kmmsgpart.h.
| void KMMessagePart::setContentId | ( | const QByteArray & | aStr | ) | [inline] |
Definition at line 119 of file kmmsgpart.h.
| void KMMessagePart::setContentTransferEncoding | ( | int | aCte | ) |
Definition at line 408 of file kmmsgpart.cpp.
| void KMMessagePart::setContentTransferEncodingStr | ( | const QByteArray & | aStr | ) |
Definition at line 401 of file kmmsgpart.cpp.
| void KMMessagePart::setCte | ( | int | aCte | ) | [inline] |
Definition at line 159 of file kmmsgpart.h.
| void KMMessagePart::setCteStr | ( | const QByteArray & | aStr | ) | [inline] |
Definition at line 158 of file kmmsgpart.h.
| void KMMessagePart::setLoadHeaders | ( | bool | load | ) | [inline] |
| void KMMessagePart::setLoadPart | ( | bool | load | ) | [inline] |
| void KMMessagePart::setMessageBody | ( | const QByteArray & | aBuf | ) |
Set a full message string as the body of the message part, disallowing anything but 7bit or 8bit encoding.
(RFC 1521 section 7.3)
Definition at line 224 of file kmmsgpart.cpp.
| void KMMessagePart::setName | ( | const QString & | name | ) | [inline] |
Definition at line 182 of file kmmsgpart.h.
| void KMMessagePart::setOriginalContentTypeStr | ( | const QByteArray & | txt | ) | [inline] |
Definition at line 104 of file kmmsgpart.h.
| void KMMessagePart::setParameter | ( | const QByteArray & | attribute, | |
| const QString & | value | |||
| ) |
Definition at line 379 of file kmmsgpart.cpp.
| void KMMessagePart::setParent | ( | KMMessagePart * | part | ) | [inline] |
| void KMMessagePart::setPartSpecifier | ( | const QString & | part | ) | [inline] |
| void KMMessagePart::setSubtype | ( | int | aSubtype | ) |
Definition at line 359 of file kmmsgpart.cpp.
| void KMMessagePart::setSubtypeStr | ( | const QByteArray & | aStr | ) | [inline] |
Definition at line 113 of file kmmsgpart.h.
| void KMMessagePart::setType | ( | int | aType | ) |
Definition at line 345 of file kmmsgpart.cpp.
| void KMMessagePart::setTypeStr | ( | const QByteArray & | aStr | ) | [inline] |
Definition at line 108 of file kmmsgpart.h.
| int KMMessagePart::subtype | ( | ) | const |
Definition at line 353 of file kmmsgpart.cpp.
| QByteArray KMMessagePart::subtypeStr | ( | ) | const [inline] |
| int KMMessagePart::type | ( | ) | const |
Definition at line 339 of file kmmsgpart.cpp.
| QByteArray KMMessagePart::typeStr | ( | ) | const [inline] |
Definition at line 107 of file kmmsgpart.h.
Member Data Documentation
QByteArray KMMessagePart::mAdditionalCTypeParamStr [protected] |
Definition at line 224 of file kmmsgpart.h.
QByteArray KMMessagePart::mBody [protected] |
Definition at line 223 of file kmmsgpart.h.
int KMMessagePart::mBodyDecodedSize [mutable, protected] |
Definition at line 230 of file kmmsgpart.h.
QByteArray KMMessagePart::mCharset [protected] |
Definition at line 228 of file kmmsgpart.h.
QByteArray KMMessagePart::mContentDescription [protected] |
Definition at line 220 of file kmmsgpart.h.
QByteArray KMMessagePart::mContentDisposition [protected] |
Definition at line 221 of file kmmsgpart.h.
QByteArray KMMessagePart::mContentId [protected] |
Definition at line 222 of file kmmsgpart.h.
QByteArray KMMessagePart::mCte [protected] |
Definition at line 219 of file kmmsgpart.h.
bool KMMessagePart::mLoadHeaders [protected] |
Definition at line 232 of file kmmsgpart.h.
bool KMMessagePart::mLoadPart [protected] |
Definition at line 233 of file kmmsgpart.h.
QString KMMessagePart::mName [protected] |
Definition at line 225 of file kmmsgpart.h.
QByteArray KMMessagePart::mOriginalContentTypeStr [protected] |
Definition at line 216 of file kmmsgpart.h.
QByteArray KMMessagePart::mParameterAttribute [protected] |
Definition at line 226 of file kmmsgpart.h.
QString KMMessagePart::mParameterValue [protected] |
Definition at line 227 of file kmmsgpart.h.
KMMessagePart* KMMessagePart::mParent [protected] |
Definition at line 231 of file kmmsgpart.h.
QString KMMessagePart::mPartSpecifier [protected] |
Definition at line 229 of file kmmsgpart.h.
QByteArray KMMessagePart::mSubtype [protected] |
Definition at line 218 of file kmmsgpart.h.
QByteArray KMMessagePart::mType [protected] |
Definition at line 217 of file kmmsgpart.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference