KContacts::Email
KContacts::Email Class Reference
#include <email.h>
Public Types | |
typedef QVector< Email > | List |
typedef QFlags< TypeFlag > | Type |
enum | TypeFlag { Unknown = 0, Home = 1, Work = 2, Other = 4 } |
Properties | |
QString | |
bool | isPreferred |
bool | isValid |
Type | type |
Public Member Functions | |
Email () | |
Email (const Email &other) | |
Email (const QString &mail) | |
bool | isPreferred () const |
bool | isValid () const |
QString | mail () const |
bool | operator!= (const Email &other) const |
Email & | operator= (const Email &other) |
bool | operator== (const Email &other) const |
QMap< QString, QStringList > | parameters () const |
void | setEmail (const QString &mail) |
void | setParameters (const QMap< QString, QStringList > ¶ms) |
void | setPreferred (bool preferred) |
void | setType (Type type) |
QString | toString () const |
Type | type () const |
Friends | |
KCONTACTS_EXPORT QDataStream & | operator<< (QDataStream &, const Email &) |
KCONTACTS_EXPORT QDataStream & | operator>> (QDataStream &, Email &) |
Detailed Description
Member Typedef Documentation
typedef QFlags< TypeFlag > KContacts::Email::Type |
Member Enumeration Documentation
Constructor & Destructor Documentation
Member Function Documentation
bool KContacts::Email::isPreferred | ( | ) | const |
Returns whether this is the preferred email address.
- Since
- 5.12
void Email::setPreferred | ( | bool | preferred | ) |
void Email::setType | ( | Type | type | ) |
Type KContacts::Email::type | ( | ) | const |
Returns the type of the email.
- Since
- 5.12
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:56:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:56:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.