KMime::Headers::Generics::Unstructured
#include <headers.h>
Public Member Functions | |
QByteArray | as7BitString (bool withHeaderType=true) const override |
QString | asUnicodeString () const override |
void | from7BitString (QByteArrayView s) override |
void | fromUnicodeString (const QString &s) override |
void | fromUnicodeString (const QString &s, const QByteArray &b) |
bool | isEmpty () const override |
Public Member Functions inherited from KMime::Headers::Base | |
Base () | |
virtual | ~Base () |
void | fromUnicodeString (const QString &s, const QByteArray &b) |
bool | is (QByteArrayView t) const |
QByteArray | rfc2047Charset () const |
void | setRFC2047Charset (const QByteArray &cs) |
virtual const char * | type () const |
Additional Inherited Members | |
Public Types inherited from KMime::Headers::Base | |
typedef QList< KMime::Headers::Base * > | List |
Protected Member Functions inherited from KMime::Headers::Base | |
QByteArray | typeIntro () const |
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()
.
Constructor & Destructor Documentation
◆ Unstructured()
KMime::Headers::Generics::Unstructured::Unstructured | ( | ) |
Definition at line 145 of file headers.cpp.
◆ ~Unstructured()
|
override |
Definition at line 149 of file headers.cpp.
Member Function Documentation
◆ as7BitString()
|
nodiscardoverridevirtual |
Returns the encoded header.
- Parameters
-
withHeaderType Specifies whether the header-type should be included.
Implements KMime::Headers::Base.
Definition at line 162 of file headers.cpp.
◆ asUnicodeString()
|
nodiscardoverridevirtual |
Returns the decoded content of the header without the header-type.
- Note
- The return value of this method should only be used when showing an address to the user. It is not guaranteed that fromUnicodeString( asUnicodeString(), ... ) will return the original string.
Implements KMime::Headers::Base.
Definition at line 180 of file headers.cpp.
◆ from7BitString()
|
overridevirtual |
Parses the given string.
Take care of RFC2047-encoded strings.
- Parameters
-
s The encoded header data.
Implements KMime::Headers::Base.
Definition at line 156 of file headers.cpp.
◆ fromUnicodeString() [1/2]
|
overridevirtual |
Parses the given Unicode representation of the header content.
- Parameters
-
s The header data as Unicode string.
Implements KMime::Headers::Base.
Definition at line 174 of file headers.cpp.
◆ fromUnicodeString() [2/2]
|
inline |
◆ isEmpty()
|
nodiscardoverridevirtual |
Checks if this header contains any data.
Implements KMime::Headers::Base.
Definition at line 185 of file headers.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.