KMime::Types::Mailbox
KMime::Types::Mailbox Class Reference
#include <types.h>
Public Types | |
typedef QList< Mailbox > | List |
enum | Quoting { QuoteNever , QuoteWhenNecessary , QuoteAlways } |
Public Member Functions | |
QByteArray | address () const |
AddrSpec | addrSpec () const |
QByteArray | as7BitString (const QByteArray &encCharset) const |
void | from7BitString (QByteArrayView s) |
void | fromUnicodeString (QStringView s) |
bool | hasAddress () const |
bool | hasName () const |
QString | name () const |
QString | prettyAddress (Quoting quoting=QuoteNever) const |
void | setAddress (const AddrSpec &addr) |
void | setAddress (const QByteArray &addr) |
void | setName (const QString &name) |
void | setNameFrom7Bit (const QByteArray &name, const QByteArray &defaultCharset=QByteArray()) |
Static Public Member Functions | |
static QList< Mailbox > | listFrom7BitString (QByteArrayView s) |
static QList< Mailbox > | listFromUnicodeString (QStringView s) |
static QString | listToUnicodeString (const QList< Mailbox > &mailboxes) |
Detailed Description
Represents an (email address, display name) pair according RFC 2822, section 3.4.
Member Typedef Documentation
◆ List
Member Enumeration Documentation
◆ Quoting
Describes how display names should be quoted.
- Since
- 4.5
Member Function Documentation
◆ address()
|
nodiscard |
◆ addrSpec()
|
nodiscard |
◆ as7BitString()
|
nodiscard |
◆ from7BitString()
void KMime::Types::Mailbox::from7BitString | ( | QByteArrayView | s | ) |
◆ fromUnicodeString()
void KMime::Types::Mailbox::fromUnicodeString | ( | QStringView | s | ) |
◆ hasAddress()
|
nodiscard |
◆ hasName()
|
nodiscard |
◆ listFrom7BitString()
|
staticnodiscard |
◆ listFromUnicodeString()
|
staticnodiscard |
◆ listToUnicodeString()
◆ name()
|
nodiscard |
◆ prettyAddress()
|
nodiscard |
◆ setAddress() [1/2]
void KMime::Types::Mailbox::setAddress | ( | const AddrSpec & | addr | ) |
◆ setAddress() [2/2]
void KMime::Types::Mailbox::setAddress | ( | const QByteArray & | addr | ) |
◆ setName()
void KMime::Types::Mailbox::setName | ( | const QString & | name | ) |
◆ setNameFrom7Bit()
void KMime::Types::Mailbox::setNameFrom7Bit | ( | const QByteArray & | name, |
const QByteArray & | defaultCharset = QByteArray() ) |
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 6 2024 12:11:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.