libkdenetwork Library API Documentation

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

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

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Generics::GUnstructured:

KMime::Headers::Base KMime::Headers::CDescription KMime::Headers::Generic KMime::Headers::Organization KMime::Headers::Subject List of all members.

Public Member Functions

 GUnstructured (Content *p)
 GUnstructured (Content *p, const QCString &s)
 GUnstructured (Content *p, const QString &s, const QCString &cs)
virtual void from7BitString (const QCString &str)
virtual QCString as7BitString (bool withHeaderType=true)
virtual void fromUnicodeString (const QString &str, const QCString &suggestedCharset)
virtual QString asUnicodeString ()
virtual void clear ()
virtual bool isEmpty ()

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);

Definition at line 214 of file kmime_headers.h.


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.

Definition at line 83 of file kmime_headers.cpp.

References KMime::Headers::Base::defaultCS(), and KMime::Headers::Base::forceCS().

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.

Definition at line 88 of file kmime_headers.cpp.

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.

Definition at line 98 of file kmime_headers.cpp.

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

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

Reimplemented from KMime::Headers::Base.

Definition at line 105 of file kmime_headers.cpp.

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

Delete.

Reimplemented from KMime::Headers::Base.

Reimplemented in KMime::Headers::Generic.

Definition at line 232 of file kmime_headers.h.

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

Do we have data?

Reimplemented from KMime::Headers::Base.

Reimplemented in KMime::Headers::Generic.

Definition at line 233 of file kmime_headers.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:48:51 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003