KGAPI2::People::EmailAddress
#include <emailaddress.h>
Public Member Functions | |
EmailAddress () | |
EmailAddress (const EmailAddress &) | |
EmailAddress (EmailAddress &&) noexcept | |
~EmailAddress () | |
QString | displayName () const |
QString | formattedType () const |
FieldMetadata | metadata () const |
bool | operator!= (const EmailAddress &) const |
EmailAddress & | operator= (const EmailAddress &) |
EmailAddress & | operator= (EmailAddress &&) noexcept |
bool | operator== (const EmailAddress &) const |
void | setDisplayName (const QString &value) |
void | setMetadata (const FieldMetadata &value) |
void | setType (const QString &value) |
void | setValue (const QString &value) |
QJsonValue | toJSON () const |
KContacts::Email | toKContactsEmail () const |
QString | type () const |
QString | value () const |
Static Public Member Functions | |
static EmailAddress | fromJSON (const QJsonObject &obj) |
static QList< EmailAddress > | fromJSONArray (const QJsonArray &data) |
static EmailAddress | fromKContactsEmail (const KContacts::Email &email) |
static QList< EmailAddress > | fromKContactsEmailList (const QList< KContacts::Email > &emailList) |
Detailed Description
Constructor & Destructor Documentation
◆ EmailAddress()
|
explicit |
Constructs a new EmailAddress.
Definition at line 54 of file emailaddress.cpp.
◆ ~EmailAddress()
|
default |
Destructor.
Member Function Documentation
◆ displayName()
|
nodiscard |
The display name of the email.
Definition at line 102 of file emailaddress.cpp.
◆ formattedType()
|
nodiscard |
Output only.
The type of the email address translated and formatted in the viewer's account locale or the Accept-Language
HTTP header locale.
Definition at line 111 of file emailaddress.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 116 of file emailaddress.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 132 of file emailaddress.cpp.
◆ fromKContactsEmail()
|
staticnodiscard |
Definition at line 177 of file emailaddress.cpp.
◆ fromKContactsEmailList()
|
staticnodiscard |
Definition at line 198 of file emailaddress.cpp.
◆ metadata()
|
nodiscard |
Metadata about the email address.
Definition at line 84 of file emailaddress.cpp.
◆ operator!=()
bool KGAPI2::People::EmailAddress::operator!= | ( | const EmailAddress & | other | ) | const |
Definition at line 70 of file emailaddress.cpp.
◆ operator==()
bool KGAPI2::People::EmailAddress::operator== | ( | const EmailAddress & | other | ) | const |
Definition at line 65 of file emailaddress.cpp.
◆ setDisplayName()
void KGAPI2::People::EmailAddress::setDisplayName | ( | const QString & | value | ) |
Sets value of the displayName property.
Definition at line 107 of file emailaddress.cpp.
◆ setMetadata()
void KGAPI2::People::EmailAddress::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 89 of file emailaddress.cpp.
◆ setType()
void KGAPI2::People::EmailAddress::setType | ( | const QString & | value | ) |
Sets value of the type property.
Definition at line 98 of file emailaddress.cpp.
◆ setValue()
void KGAPI2::People::EmailAddress::setValue | ( | const QString & | value | ) |
Sets value of the value property.
Definition at line 80 of file emailaddress.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 147 of file emailaddress.cpp.
◆ toKContactsEmail()
|
nodiscard |
Definition at line 159 of file emailaddress.cpp.
◆ type()
|
nodiscard |
The type of the email address.
The type can be custom or one of these predefined values: * home
* work
* other
Definition at line 93 of file emailaddress.cpp.
◆ value()
|
nodiscard |
The email address.
Definition at line 75 of file emailaddress.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:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.