libkmime

KMime::Content Class Reference

#include <kmime_content.h>

Inheritance diagram for KMime::Content:

KMime::Base KMime::Message KMime::NewsArticle List of all members.

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::ContentList

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::GenericgetNextHeader (QCString &head)
virtual Headers::BasegetHeaderByType (const char *type)
virtual void setHeader (Headers::Base *h)
virtual bool removeHeader (const char *type)
bool hasHeader (const char *type)
Headers::ContentTypecontentType (bool create=true)
Headers::CTEncodingcontentTransferEncoding (bool create=true)
Headers::CDispositioncontentDisposition (bool create=true)
Headers::CDescriptioncontentDescription (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)
ContenttextContent ()
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
Listc_ontents
Headers::Base::Listh_eaders
const char * d_efaultCS
bool f_orceDefaultCS

The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys