#include <kmime_headers.h>
Public Member Functions | |
| GUnstructured (Content *p) | |
| GUnstructured (Content *p, const TQCString &s) | |
| GUnstructured (Content *p, const TQString &s, const TQCString &cs) | |
| virtual void | from7BitString (const TQCString &str) |
| virtual TQCString | as7BitString (bool withHeaderType=true) |
| virtual void | fromUnicodeString (const TQString &str, const TQCString &suggestedCharset) |
| virtual TQString | asUnicodeString () |
| virtual void | clear () |
| virtual bool | isEmpty () |
Public Member Functions inherited from KMime::Headers::Base | |
| 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 | |
Public Types inherited from KMime::Headers::Base | |
| typedef TQPtrList< Base > | List |
Protected Member Functions inherited from KMime::Headers::Base | |
| TQCString | typeIntro () |
Protected Attributes inherited from KMime::Headers::Base | |
| const char * | e_ncCS |
| Content * | p_arent |
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
The ContentDescription class then reads:
Definition at line 216 of file kmime_headers.h.
Constructor & Destructor Documentation
◆ GUnstructured() [1/4]
|
inline |
Definition at line 219 of file kmime_headers.h.
◆ GUnstructured() [2/4]
|
inline |
Definition at line 220 of file kmime_headers.h.
◆ GUnstructured() [3/4]
|
inline |
Definition at line 221 of file kmime_headers.h.
◆ GUnstructured() [4/4]
|
inline |
Definition at line 223 of file kmime_headers.h.
◆ ~GUnstructured()
|
inline |
Definition at line 225 of file kmime_headers.h.
Member Function Documentation
◆ as7BitString()
|
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.
◆ 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.
◆ clear()
|
inlinevirtual |
Delete.
Reimplemented from KMime::Headers::Base.
Reimplemented in KMime::Headers::Generic.
Definition at line 234 of file kmime_headers.h.
◆ from7BitString()
|
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.
◆ fromUnicodeString()
|
virtual |
Parse the given string and set the charset.
Reimplemented from KMime::Headers::Base.
Definition at line 98 of file kmime_headers.cpp.
◆ isEmpty()
|
inlinevirtual |
Do we have data?
Reimplemented from KMime::Headers::Base.
Reimplemented in KMime::Headers::Generic.
Definition at line 235 of file kmime_headers.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from