KDE PIM / Developers / API Docs / libkmime

KMime::Headers::Generics::GUnstructured Class Reference

Abstract base class for unstructured header fields (e.g. More...

#include <kmime_headers.h>

Inherits KMime::Headers::Base.

Inherited by KMime::Headers::Generic, KMime::Headers::Organization, and KMime::Headers::Subject.

List of all members.

Public Member Functions


Detailed Description

Abstract base class for unstructured header fields (e.g.

"Subject", "Comment", "Content-description").

Features: Decodes the header according to RFC2047, incl. RFC2231 extensions to encoded-words.

Subclasses need only re-implement const char* type().

A macro to automate this is named

    MK_TRIVIAL_GUnstructured_SUBCLASS(classname,headername);

The ContentDescription class then reads:

    MK_TRIVIAL_GUnstructured_SUBCLASS(ContentDescription,Content-Description);


Member Function Documentation

void KMime::Headers::Generics::GUnstructured::from7BitString const QCString &  str  )  [virtual]
 

Parse the given string.

Take care of RFC2047-encoded strings. A default charset is given. If the last parameter is true the default charset is used in any case

Reimplemented from KMime::Headers::Base.

QCString KMime::Headers::Generics::GUnstructured::as7BitString bool  withHeaderType = true  )  [virtual]
 

Return the encoded header.

The parameter specifies whether the header-type should be included.

Reimplemented from KMime::Headers::Base.

void KMime::Headers::Generics::GUnstructured::fromUnicodeString const QString &  str,
const QCString &  suggestedCharset
[virtual]
 

Parse the given string and set the charset.

Reimplemented from KMime::Headers::Base.

QString KMime::Headers::Generics::GUnstructured::asUnicodeString  )  [virtual]
 

Return the decoded content of the header without the header-type.

Reimplemented from KMime::Headers::Base.

virtual void KMime::Headers::Generics::GUnstructured::clear  )  [inline, virtual]
 

Delete.

Reimplemented from KMime::Headers::Base.

Reimplemented in KMime::Headers::Generic.

virtual bool KMime::Headers::Generics::GUnstructured::isEmpty  )  [inline, virtual]
 

Do we have data?

Reimplemented from KMime::Headers::Base.

Reimplemented in KMime::Headers::Generic.


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