libkmime
KMime::Content Class Reference
#include <kmime_content.h>
Inheritance diagram for KMime::Content:

Detailed Description
This class encapsulates a mime-encoded content.It parses the given data and creates a tree-like structure, that represents the structure of the message
Definition at line 59 of file kmime_content.h.
Public Types | |
typedef QPtrList< KMime::Content > | List |
Public Member Functions | |
Content () | |
Content (const QCString &h, const QCString &b) | |
virtual | ~Content () |
virtual articleType | type () |
bool | hasContent () |
void | setContent (QStrList *l) |
void | setContent (const QCString &s) |
virtual void | parse () |
virtual void | assemble () |
virtual void | clear () |
QCString | head () |
Headers::Generic * | getNextHeader (QCString &head) |
virtual Headers::Base * | getHeaderByType (const char *type) |
virtual void | setHeader (Headers::Base *h) |
virtual bool | removeHeader (const char *type) |
bool | hasHeader (const char *type) |
Headers::ContentType * | contentType (bool create=true) |
Headers::CTEncoding * | contentTransferEncoding (bool create=true) |
Headers::CDisposition * | contentDisposition (bool create=true) |
Headers::CDescription * | contentDescription (bool create=true) |
int | size () |
int | storageSize () |
int | lineCount () |
QCString | body () |
void | setBody (const QCString &str) |
QCString | encodedContent (bool useCrLf=false) |
QByteArray | decodedContent () |
void | decodedText (QString &s, bool trimText=false, bool removeTrailingNewlines=false) |
void | decodedText (QStringList &s, bool trimText=false, bool removeTrailingNewlines=false) |
void | fromUnicodeString (const QString &s) |
Content * | textContent () |
void | attachments (List *dst, bool incAlternatives=false) |
void | addContent (Content *c, bool prepend=false) |
void | removeContent (Content *c, bool del=false) |
void | changeEncoding (Headers::contentEncoding e) |
void | toStream (QTextStream &ts, bool scrambleFromLines=false) |
QCString | defaultCharset () |
void | setDefaultCharset (const QCString &cs) |
bool | forceDefaultCS () |
virtual void | setForceDefaultCS (bool b) |
Protected Member Functions | |
QCString | rawHeader (const char *name) |
bool | decodeText () |
template<class T> | |
T * | getHeaderInstance (T *ptr, bool create) |
Protected Attributes | |
QCString | h_ead |
QCString | b_ody |
List * | c_ontents |
Headers::Base::List * | h_eaders |
const char * | d_efaultCS |
bool | f_orceDefaultCS |
The documentation for this class was generated from the following files: