libkmime

#include <kmime_content.h>

Inheritance diagram for KMime::Content:
KMime::Base

Public Types

typedef TQPtrList< KMime::ContentList
 
- Public Types inherited from KMime::Base
enum  articleType { ATmimeContent , ATremote , ATlocal }
 

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::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 ()
 
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: