KContacts::Email

Search for usage in LXR

KContacts::Email Class Reference

#include <email.h>

Public Types

typedef QList< EmailList
 
typedef QFlags< TypeFlagType
 
enum  TypeFlag { Unknown = 0 , Home = 1 , Work = 2 , Other = 4 }
 

Properties

QString email
 
bool isPreferred
 
bool isValid
 
Type type
 

Public Member Functions

 Email ()
 
 Email (const Email &other)
 
Q_INVOKABLE Email (const QString &mail)
 
bool isPreferred () const
 
bool isValid () const
 
QString mail () const
 
bool operator!= (const Email &other) const
 
Emailoperator= (const Email &other)
 
bool operator== (const Email &other) const
 
void setEmail (const QString &mail)
 
void setPreferred (bool preferred)
 
void setType (Type type)
 
QString toString () const
 
Type type () const
 

Detailed Description

Class that holds a Email for a contact.

Since
4.14.5

Definition at line 27 of file email.h.

Member Typedef Documentation

◆ List

Definition at line 50 of file email.h.

◆ Type

Stores a combination of TypeFlag values.

Definition at line 66 of file email.h.

Member Enumeration Documentation

◆ TypeFlag

Email types.

See also
Type
Enumerator
Unknown 

No or unknown email type is set.

Home 

Personal email.

Work 

Work email.

Other 

Other email.

Definition at line 56 of file email.h.

Property Documentation

◆ email

QString KContacts::Email::email
readwrite

Definition at line 35 of file email.h.

◆ isPreferred

bool KContacts::Email::isPreferred
readwrite

Definition at line 38 of file email.h.

◆ isValid

bool KContacts::Email::isValid
read

Definition at line 36 of file email.h.

◆ type

Type KContacts::Email::type
readwrite

Definition at line 37 of file email.h.

Constructor & Destructor Documentation

◆ Email() [1/3]

Email::Email ( )

Creates an empty email object.

Definition at line 35 of file email.cpp.

◆ Email() [2/3]

Email::Email ( const Email & other)

Definition at line 46 of file email.cpp.

◆ Email() [3/3]

Email::Email ( const QString & mail)

Definition at line 40 of file email.cpp.

◆ ~Email()

Email::~Email ( )

Definition at line 51 of file email.cpp.

Member Function Documentation

◆ isPreferred()

bool Email::isPreferred ( ) const

Returns whether this is the preferred email address.

Since
5.12

Definition at line 166 of file email.cpp.

◆ isValid()

bool Email::isValid ( ) const

Definition at line 103 of file email.cpp.

◆ mail()

QString Email::mail ( ) const

Definition at line 98 of file email.cpp.

◆ operator!=()

bool Email::operator!= ( const Email & other) const

Definition at line 60 of file email.cpp.

◆ operator=()

Email & Email::operator= ( const Email & other)

Definition at line 65 of file email.cpp.

◆ operator==()

bool Email::operator== ( const Email & other) const

Definition at line 55 of file email.cpp.

◆ setEmail()

void Email::setEmail ( const QString & mail)

Definition at line 93 of file email.cpp.

◆ setPreferred()

void Email::setPreferred ( bool preferred)

Sets that this is the preferred email address.

Since
5.12

Definition at line 181 of file email.cpp.

◆ setType()

void Email::setType ( Type type)

Sets the email type.

Since
5.12

Definition at line 138 of file email.cpp.

◆ toString()

QString Email::toString ( ) const

Definition at line 74 of file email.cpp.

◆ type()

Email::Type KContacts::Email::type ( ) const

Returns the type of the email.

Since
5.12

Definition at line 119 of file email.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 Sat Dec 21 2024 17:01:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.