libkmime

KMime::Content Class Reference

This class encapsulates a mime-encoded content. More...

#include <kmime_content.h>

Inheritance diagram for KMime::Content:

KMime::Base

List of all members.


Public Types

typedef TQPtrList< KMime::ContentList

Public Member Functions

 Content (const TQCString &h, const TQCString &b)
virtual articleType type ()
bool hasContent ()
void setContent (TQStrList *l)
void setContent (const TQCString &s)
virtual void parse ()
virtual void assemble ()
virtual void clear ()
TQCString head ()
Headers::GenericgetNextHeader (TQCString &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 ()
TQCString body ()
void setBody (const TQCString &str)
TQCString encodedContent (bool useCrLf=false)
TQByteArray decodedContent ()
void decodedText (TQString &s, bool trimText=false, bool removeTrailingNewlines=false)
void decodedText (TQStringList &s, bool trimText=false, bool removeTrailingNewlines=false)
void fromUnicodeString (const TQString &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 (TQTextStream &ts, bool scrambleFromLines=false)
TQCString defaultCharset ()
void setDefaultCharset (const TQCString &cs)
bool forceDefaultCS ()
virtual void setForceDefaultCS (bool b)

Protected Member Functions

TQCString rawHeader (const char *name)
bool decodeText ()
template<class T>
T * getHeaderInstance (T *ptr, bool create)

Protected Attributes

TQCString h_ead
TQCString b_ody
List * c_ontents
Headers::Base::List * h_eaders
const char * d_efaultCS
bool f_orceDefaultCS

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.


The documentation for this class was generated from the following files: