#include <kmime_headers.h>

Public Member Functions | |
GStructured (Content *p) | |
GStructured (Content *p, const TQCString &s) | |
GStructured (Content *p, const TQString &s, const TQCString &cs) | |
![]() | |
Base () | |
Base (KMime::Content *parent) | |
virtual | ~Base () |
KMime::Content * | parent () |
void | setParent (KMime::Content *p) |
virtual void | from7BitString (const TQCString &) |
virtual TQCString | as7BitString (bool=true) |
TQCString | rfc2047Charset () |
void | setRFC2047Charset (const TQCString &cs) |
TQCString | defaultCS () |
bool | forceCS () |
virtual void | fromUnicodeString (const TQString &, const TQCString &) |
virtual TQString | asUnicodeString () |
virtual void | clear () |
virtual bool | isEmpty () |
virtual const char * | type () |
bool | is (const char *t) |
bool | isMimeHeader () |
bool | isXHeader () |
Additional Inherited Members | |
![]() | |
typedef TQPtrList< Base > | List |
![]() | |
TQCString | typeIntro () |
![]() | |
const char * | e_ncCS |
Content * | p_arent |
Detailed Description
This is the base class for all 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.
Base class for structured header fields.
Definition at line 269 of file kmime_headers.h.
Constructor & Destructor Documentation
◆ GStructured() [1/4]
|
inline |
Definition at line 271 of file kmime_headers.h.
◆ GStructured() [2/4]
|
inline |
Definition at line 272 of file kmime_headers.h.
◆ GStructured() [3/4]
|
inline |
Definition at line 273 of file kmime_headers.h.
◆ GStructured() [4/4]
|
inline |
Definition at line 275 of file kmime_headers.h.
◆ ~GStructured()
|
inline |
Definition at line 277 of file kmime_headers.h.
The documentation for this class was generated from the following file: