#include <kmime_headers.h>
Public Types | |
typedef TQPtrList< Base > | List |
Public Member Functions | |
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 () |
Protected Member Functions | |
TQCString | typeIntro () |
Protected Attributes | |
const char * | e_ncCS |
Content * | p_arent |
Detailed Description
Baseclass of all header-classes.
It represents a header-field as described in RFC-822.
Definition at line 111 of file kmime_headers.h.
Constructor & Destructor Documentation
◆ Base() [1/2]
|
inline |
Create an empty header.
Definition at line 117 of file kmime_headers.h.
◆ Base() [2/2]
|
inline |
Create an empty header with a parent-content.
Definition at line 120 of file kmime_headers.h.
◆ ~Base()
|
inlinevirtual |
Destructor.
Definition at line 123 of file kmime_headers.h.
Member Function Documentation
◆ as7BitString()
|
inlinevirtual |
Return the encoded header.
The parameter specifies whether the header-type should be included.
Reimplemented in KMime::Headers::Generics::GUnstructured, KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, and KMime::Headers::Control.
Definition at line 138 of file kmime_headers.h.
◆ asUnicodeString()
|
inlinevirtual |
Return the decoded content of the header without the header-type.
Reimplemented in KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, KMime::Headers::Control, and KMime::Headers::Generics::GUnstructured.
Definition at line 157 of file kmime_headers.h.
◆ clear()
|
inlinevirtual |
Delete.
Reimplemented in KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, KMime::Headers::Control, KMime::Headers::Generic, and KMime::Headers::Generics::GUnstructured.
Definition at line 160 of file kmime_headers.h.
◆ defaultCS()
TQCString Base::defaultCS | ( | ) |
Return the default charset.
Definition at line 71 of file kmime_headers.cpp.
◆ forceCS()
bool Base::forceCS | ( | ) |
Return if the default charset is mandatory.
Definition at line 65 of file kmime_headers.cpp.
◆ from7BitString()
|
inlinevirtual |
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 in KMime::Headers::Generics::GUnstructured, KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, and KMime::Headers::Control.
Definition at line 134 of file kmime_headers.h.
◆ fromUnicodeString()
|
inlinevirtual |
Parse the given string and set the charset.
Reimplemented in KMime::Headers::Generics::GUnstructured, KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, and KMime::Headers::Control.
Definition at line 153 of file kmime_headers.h.
◆ is()
|
inline |
Check if this header is of type t.
Definition at line 169 of file kmime_headers.h.
◆ isEmpty()
|
inlinevirtual |
Do we have data?
Reimplemented in KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::Newsgroups, KMime::Headers::Date, KMime::Headers::Control, KMime::Headers::Generic, and KMime::Headers::Generics::GUnstructured.
Definition at line 163 of file kmime_headers.h.
◆ isMimeHeader()
|
inline |
Check if this header is a MIME header.
Definition at line 172 of file kmime_headers.h.
◆ isXHeader()
|
inline |
Check if this header is a X-Header.
Definition at line 175 of file kmime_headers.h.
◆ parent()
|
inline |
Return the parent of this header.
Definition at line 126 of file kmime_headers.h.
◆ rfc2047Charset()
TQCString Base::rfc2047Charset | ( | ) |
Return the charset that is used for RFC2047-encoding.
Definition at line 50 of file kmime_headers.cpp.
◆ setParent()
|
inline |
Set the parent for this header.
Definition at line 129 of file kmime_headers.h.
◆ setRFC2047Charset()
void Base::setRFC2047Charset | ( | const TQCString & | cs | ) |
Set the charset for RFC2047-encoding.
Definition at line 59 of file kmime_headers.cpp.
◆ type()
|
inlinevirtual |
Return the type of this header (e.g.
"From")
Reimplemented in KMime::Headers::UserAgent, KMime::Headers::Lines, KMime::Headers::FollowUpTo, KMime::Headers::Newsgroups, KMime::Headers::Date, KMime::Headers::Control, KMime::Headers::Organization, KMime::Headers::Subject, and KMime::Headers::Generic.
Definition at line 166 of file kmime_headers.h.
The documentation for this class was generated from the following files: