libkdenetwork Library API Documentation

KMime::Headers::Generics::GStructured Class Reference

This is the base class for all structured header fields.Base class for structured header fields. More...

#include <kmime_headers.h>

Inheritance diagram for KMime::Headers::Generics::GStructured:

Inheritance graph
[legend]
Collaboration diagram for KMime::Headers::Generics::GStructured:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GStructured (Content *p)
 GStructured (Content *p, const QCString &s)
 GStructured (Content *p, const QString &s, const QCString &cs)

Protected Member Functions

bool writeAtom (char *&dcursor, const char *const dend, const QString &input)
bool writeAtom (char *&dcursor, const char *const dend, const QPair< const char *, int > &input)
bool writeToken (char *&dcursor, const char *const dend, const QString &input)
bool writeToken (char *&dcursor, const char *const dend, const QPair< const char *int > &input)
bool writeGenericQuotedString (char *&dcursor, const char *const dend, const QString &input, bool withCRLF=false)
bool writeComment (char *&dcursor, const char *const dend, const QString &input, bool withCRLF=false)
bool writePhrase (char *&dcursor, const char *const dend, const QString &input, bool withCRLF=false)
bool writeDotAtom (char *&dcursor, const char *const dend, const QString &input, bool withCRLF=false)

Detailed Description

This is the base class for all structured header fields.Base class for structured header fields.

It contains parsing methods for all basic token types found in rfc2822.

Parsing

At the basic level, there are tokens & tspecials (rfc2045), atoms & specials, quoted-strings, domain-literals (all rfc822) and encoded-words (rfc2047).

As a special token, we have the comment. It is one of the basic tokens defined in rfc822, but it's parsing relies in part on the basic token parsers (e.g. comments may contain encoded-words). Also, most upper-level parsers (notably those for phrase and dot-atom) choose to ignore any comment when parsing.

Then there are the real composite tokens, which are made up of one or more of the basic tokens (and semantically invisible comments): phrases (rfc822 with rfc2047) and dot-atoms (rfc2822).

This finishes the list of supported token types. Subclasses will provide support for more higher-level tokens, where necessary, using these parsers.

Author:
Marc Mutz <mutz@kde.org>

Definition at line 267 of file kmime_headers.h.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 17 09:52:40 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003