KMime::Headers::Generic
KMime::Headers::Generic Class Reference
#include <headers.h>
Inheritance diagram for KMime::Headers::Generic:
Public Member Functions | |
Generic (const char *t, qsizetype len=-1) | |
bool | isEmpty () const override |
void | setType (const char *type, qsizetype len=-1) |
const char * | type () const override |
Public Member Functions inherited from KMime::Headers::Generics::Unstructured | |
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) |
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
Represents an arbitrary header, that can contain any header-field.
Adds a type over Unstructured.
- See also
- Unstructured
Constructor & Destructor Documentation
◆ Generic() [1/2]
KMime::Headers::Generic::Generic | ( | ) |
Definition at line 1173 of file headers.cpp.
◆ Generic() [2/2]
KMime::Headers::Generic::Generic | ( | const char * | t, |
qsizetype | len = -1 ) |
Definition at line 1177 of file headers.cpp.
◆ ~Generic()
|
override |
Definition at line 1182 of file headers.cpp.
Member Function Documentation
◆ isEmpty()
|
nodiscardoverridevirtual |
Checks if this header contains any data.
Implements KMime::Headers::Base.
Definition at line 1189 of file headers.cpp.
◆ setType()
void KMime::Headers::Generic::setType | ( | const char * | type, |
qsizetype | len = -1 ) |
Definition at line 1199 of file headers.cpp.
◆ type()
|
nodiscardoverridevirtual |
Returns the type of this header (e.g.
"From").
Reimplemented from KMime::Headers::Base.
Definition at line 1194 of file headers.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:46:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:46:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.