#include <bodypart.h>
|
enum | Display { None
, AsIcon
, Inline
} |
|
interface of message body parts.
Definition at line 75 of file bodypart.h.
◆ asBinary()
virtual TQByteArray KMail::Interface::BodyPart::asBinary |
( |
| ) |
const |
|
pure virtual |
- Returns
- the decoded (CTE undone) content of the body part, or a null array if this body part instance is of type text.
Implemented in KMail::PartNodeBodyPart.
◆ asText()
virtual TQString KMail::Interface::BodyPart::asText |
( |
| ) |
const |
|
pure virtual |
- Returns
- the decoded (CTE, canonicalisation, and charset encoding undone) text contained in the body part, or TQString(), it the body part is not of type "text".
Implemented in KMail::PartNodeBodyPart.
◆ contentDescription()
virtual TQString KMail::Interface::BodyPart::contentDescription |
( |
| ) |
const |
|
pure virtual |
- Returns
- the content of the content-description header field, or TQString() if that header is not present in this body part. RFC 2047 encoding is decoded first.
Implemented in KMail::PartNodeBodyPart.
◆ contentDispositionParameter()
virtual TQString KMail::Interface::BodyPart::contentDispositionParameter |
( |
const char * |
parameter | ) |
const |
|
pure virtual |
- Returns
- the value of the content-disposition header field parameter with name parameter, or TQString() if that parameter is not present in the body's content-disposition header field. RFC 2231 encoding is removed first.
The notes made for contentTypeParameter() above apply here as well.
Implemented in KMail::PartNodeBodyPart.
◆ contentTypeParameter()
virtual TQString KMail::Interface::BodyPart::contentTypeParameter |
( |
const char * |
parameter | ) |
const |
|
pure virtual |
- Returns
- the value of the content-type header field parameter with name parameter, or TQString(), if that that parameter is not present in the body's content-type header field. RFC 2231 encoding is removed first.
Note that this method will suppress queries to certain standard parameters (most notably "charset") to keep plugins decent.
Note2 that this method preserves the case of the parameter value returned. So, if the parameter you want to use defines the value to be case-insensitive (such as the smime-type parameter), you need to make sure you do the casemap yourself before comparing to a reference value.
Implemented in KMail::PartNodeBodyPart.
◆ defaultDisplay()
virtual Display KMail::Interface::BodyPart::defaultDisplay |
( |
| ) |
const |
|
pure virtual |
◆ hasCompleteBody()
virtual bool KMail::Interface::BodyPart::hasCompleteBody |
( |
| ) |
const |
|
pure virtual |
- Returns
- whether this part already has it's complete body fetched e.g. from an IMAP server.
Implemented in KMail::PartNodeBodyPart.
◆ makeLink()
virtual TQString KMail::Interface::BodyPart::makeLink |
( |
const TQString & |
path | ) |
const |
|
pure virtual |
◆ memento()
◆ setBodyPartMemento()
virtual void KMail::Interface::BodyPart::setBodyPartMemento |
( |
BodyPartMemento * |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: