KContacts::Addressee Class

class KContacts::Addressee

Address book entry. More...

Header: #include <KContacts/Addressee>
CMake: find_package(KF6 REQUIRED COMPONENTS Contacts)
target_link_libraries(mytarget PRIVATE KF6::Contacts)
In QML: addressee

Public Types

Properties

Public Functions

Addressee()
Addressee(const KContacts::Addressee &other)
~Addressee()
(since 5.88) void addEmail(const KContacts::Email &email)
QString additionalName() const
KContacts::Address address(KContacts::Address::Type type) const
KContacts::Address::List addresses() const
KContacts::Address::List addresses(KContacts::Address::Type type) const
(since 5.12) QDate anniversary() const
QString assembledName() const
(since 5.12) QString assistantsName() const
QDateTime birthday() const
bool birthdayHasTime() const
(since 5.12) QUrl blogFeed() const
KContacts::CalendarUrl::List calendarUrlList() const
QStringList categories() const
bool changed() const
KContacts::ClientPidMap::List clientPidMapList() const
QString custom(const QString &app, const QString &name) const
QStringList customs() const
QString department() const
KContacts::Email::List emailList() const
QStringList emails() const
KContacts::Picture::List extraLogoList() const
KContacts::NickName::List extraNickNameList() const
KContacts::Org::List extraOrganizationList() const
KContacts::Picture::List extraPhotoList() const
KContacts::Role::List extraRoleList() const
KContacts::Sound::List extraSoundList() const
KContacts::Title::List extraTitleList() const
KContacts::ResourceLocatorUrl::List extraUrlList() const
QString familyName() const
KContacts::FieldGroup::List fieldGroupList() const
KContacts::Address findAddress(const QString &id) const
KContacts::Key findKey(const QString &id) const
KContacts::PhoneNumber findPhoneNumber(const QString &id) const
QString formattedName() const
QString fullEmail(const QString &email = QString()) const
KContacts::Gender gender() const
KContacts::Geo geo() const
QString givenName() const
bool hasCategory(const QString &category) const
KContacts::Impp::List imppList() const
void insertAddress(const KContacts::Address &address)
void insertCalendarUrl(const KContacts::CalendarUrl &calendarUrl)
void insertCategory(const QString &category)
void insertClientPidMap(const KContacts::ClientPidMap &clientpidmap)
void insertCustom(const QString &app, const QString &name, const QString &value)
void insertExtraLogo(const KContacts::Picture &logo)
void insertExtraNickName(const KContacts::NickName &nickName)
void insertExtraOrganization(const KContacts::Org &organization)
void insertExtraPhoto(const KContacts::Picture &picture)
void insertExtraRole(const KContacts::Role &role)
void insertExtraSound(const KContacts::Sound &sound)
void insertExtraTitle(const KContacts::Title &title)
void insertExtraUrl(const KContacts::ResourceLocatorUrl &url)
void insertFieldGroup(const KContacts::FieldGroup &fieldGroup)
void insertImpp(const KContacts::Impp &impp)
void insertKey(const KContacts::Key &key)
void insertLang(const KContacts::Lang &language)
void insertMember(const QString &member)
void insertPhoneNumber(const KContacts::PhoneNumber &phoneNumber)
void insertRelationship(const KContacts::Related &related)
void insertSourceUrl(const QUrl &url)
bool isEmpty() const
KContacts::Key key(KContacts::Key::Type type, const QString &customTypeString = QString()) const
KContacts::Key::List keys() const
KContacts::Key::List keys(KContacts::Key::Type type, const QString &customTypeString = QString()) const
QString kind() const
KContacts::Lang::List langs() const
KContacts::Picture logo() const
QString mailer() const
(since 5.12) QString managersName() const
QStringList members() const
QString name() const
QString nickName() const
QString note() const
(since 5.12) QString office() const
QString organization() const
KContacts::PhoneNumber phoneNumber(KContacts::PhoneNumber::Type type) const
KContacts::PhoneNumber::List phoneNumbers() const
KContacts::PhoneNumber::List phoneNumbers(KContacts::PhoneNumber::Type type) const
KContacts::Picture photo() const
QString preferredEmail() const
QString prefix() const
QString productId() const
(since 5.12) QString profession() const
QString realName() const
KContacts::Related::List relationships() const
void removeAddress(const KContacts::Address &address)
void removeCategory(const QString &category)
void removeCustom(const QString &app, const QString &name)
void removeEmail(const QString &email)
void removeKey(const KContacts::Key &key)
void removeLang(const QString &language)
void removePhoneNumber(const KContacts::PhoneNumber &phoneNumber)
QDateTime revision() const
QString role() const
KContacts::Secrecy secrecy() const
void setAdditionalName(const QString &additionalName)
(since 5.100) void setAddresses(const KContacts::Address::List &addresses)
(since 5.12) void setAnniversary(const QDate &anniversary)
(since 5.12) void setAssistantsName(const QString &assistantsName)
void setBirthday(const QDate &birthday)
(since 5.4) void setBirthday(const QDateTime &birthday, bool withTime = true)
(since 5.12) void setBlogFeed(const QUrl &blogFeed)
void setCategories(const QStringList &category)
void setChanged(bool value)
void setClientPidMapList(const KContacts::ClientPidMap::List &clientpidmaplist)
void setCustoms(const QStringList &customs)
void setDepartment(const QString &department)
void setEmailList(const KContacts::Email::List &list)
void setEmails(const QStringList &list)
void setExtraLogoList(const KContacts::Picture::List &logoList)
void setExtraNickNameList(const KContacts::NickName::List &nickNameList)
void setExtraOrganizationList(const KContacts::Org::List &orgList)
void setExtraPhotoList(const KContacts::Picture::List &pictureList)
void setExtraRoleList(const KContacts::Role::List &roleList)
void setExtraSoundList(const KContacts::Sound::List &soundList)
void setExtraTitleList(const KContacts::Title::List &urltitle)
void setExtraUrlList(const KContacts::ResourceLocatorUrl::List &urlList)
void setFamilyName(const QString &familyName)
void setFieldGroupList(const KContacts::FieldGroup::List &fieldGroupList)
void setFormattedName(const QString &formattedName)
void setGender(const KContacts::Gender &gender)
void setGeo(const KContacts::Geo &geo)
void setGivenName(const QString &givenName)
void setImppList(const KContacts::Impp::List &imppList)
void setKeys(const KContacts::Key::List &keys)
void setKind(const QString &kind)
void setLangs(const KContacts::Lang::List &langs)
void setLogo(const KContacts::Picture &logo)
void setMailer(const QString &mailer)
(since 5.12) void setManagersName(const QString &managersName)
void setMembers(const QStringList &c)
void setName(const QString &name)
void setNameFromString(const QString &s)
void setNickName(const KContacts::NickName &nickName)
void setNickName(const QString &nickName)
void setNote(const QString &note)
(since 5.12) void setOffice(const QString &office)
void setOrganization(const KContacts::Org &organization)
void setOrganization(const QString &organization)
void setPhoneNumbers(const KContacts::PhoneNumber::List &phoneNumbers)
void setPhoto(const KContacts::Picture &photo)
void setPrefix(const QString &prefix)
void setProductId(const QString &productId)
(since 5.12) void setProfession(const QString &profession)
void setRelationships(const KContacts::Related::List &c)
void setRevision(const QDateTime &revision)
void setRole(const KContacts::Role &role)
void setRole(const QString &role)
void setSecrecy(const KContacts::Secrecy &secrecy)
void setSortString(const QString &sortString)
void setSound(const KContacts::Sound &sound)
void setSourcesUrlList(const QList<QUrl> &urlList)
(since 5.12) void setSpousesName(const QString &spousesName)
void setSuffix(const QString &suffix)
void setTimeZone(const KContacts::TimeZone &timeZone)
void setTitle(const KContacts::Title &title)
void setTitle(const QString &title)
void setUid(const QString &uid)
void setUrl(const KContacts::ResourceLocatorUrl &url)
void setUrl(const QUrl &url)
QString sortString() const
KContacts::Sound sound() const
QList<QUrl> sourcesUrlList() const
(since 5.12) QString spousesName() const
QString suffix() const
KContacts::TimeZone timeZone() const
QString title() const
QString toString() const
QString uid() const
KContacts::ResourceLocatorUrl url() const
bool operator!=(const KContacts::Addressee &other) const
KContacts::Addressee &operator=(const KContacts::Addressee &other)
bool operator==(const KContacts::Addressee &other) const

Static Public Members

QString additionalNameLabel()
QString birthdayLabel()
QString businessAddressCountryLabel()
QString businessAddressLabelLabel()
QString businessAddressLocalityLabel()
QString businessAddressPostOfficeBoxLabel()
QString businessAddressPostalCodeLabel()
QString businessAddressRegionLabel()
QString businessAddressStreetLabel()
QString businessFaxLabel()
QString businessPhoneLabel()
QString carPhoneLabel()
QString departmentLabel()
QString emailLabel()
QString familyNameLabel()
QString formattedNameLabel()
QString geoLabel()
QString givenNameLabel()
QString homeAddressCountryLabel()
QString homeAddressLabelLabel()
QString homeAddressLocalityLabel()
QString homeAddressPostOfficeBoxLabel()
QString homeAddressPostalCodeLabel()
QString homeAddressRegionLabel()
QString homeAddressStreetLabel()
QString homeFaxLabel()
QString homePhoneLabel()
QString isdnLabel()
QString logoLabel()
QString mailerLabel()
QString mimeType()
QString mobilePhoneLabel()
QString nameLabel()
QString nickNameLabel()
QString noteLabel()
QString organizationLabel()
QString pagerLabel()
void parseEmailAddress(const QString &rawEmail, QString &fullName, QString &email)
QString photoLabel()
QString prefixLabel()
QString productIdLabel()
QString revisionLabel()
QString roleLabel()
QString secrecyLabel()
QString sortStringLabel()
QString soundLabel()
QString suffixLabel()
QString timeZoneLabel()
QString titleLabel()
QString uidLabel()
QString urlLabel()
QDataStream &operator<<(QDataStream &, const KContacts::Addressee &)
QDataStream &operator>>(QDataStream &, KContacts::Addressee &)

Detailed Description

This class represents an entry in the address book.

The data of this class is implicitly shared. You can pass this class by value.

If you need the name of a field for presenting it to the user you should use the functions ending in Label(). They return a translated string which can be used as label for the corresponding field.

About the name fields:

givenName() is the first name and familyName() the last name. In some countries the family name comes first, that's the reason for the naming. formattedName() is the full name with the correct formatting. It is used as an override, when the correct formatting can't be generated from the other name fields automatically.

realName() returns a fully formatted name(). It uses formattedName, if set, otherwise it constructs the name from the name fields. As fallback, if nothing else is set it uses name().

name() is the NAME type of RFC2426. It can be used as internal name for the data entry, but shouldn't be used for displaying the data to the user.

Member Type Documentation

Addressee::List

A list of addressee objects

Property Documentation

additionalName : QString

Access functions:

QString additionalName() const
void setAdditionalName(const QString &additionalName)

addresses : QList<KContacts::Address>

Access functions:

KContacts::Address::List addresses() const
KContacts::Address::List addresses(KContacts::Address::Type type) const
void setAddresses(const KContacts::Address::List &addresses)

anniversary : QDate

Access functions:

QDate anniversary() const
void setAnniversary(const QDate &anniversary)

[read-only] assembledName : const QString

Access functions:

QString assembledName() const

assistantsName : QString

Access functions:

QString assistantsName() const
void setAssistantsName(const QString &assistantsName)

birthday : const QDateTime

Access functions:

QDateTime birthday() const

[read-only] birthdayHasTime : const bool

Access functions:

bool birthdayHasTime() const

blogFeed : QUrl

Access functions:

QUrl blogFeed() const
void setBlogFeed(const QUrl &blogFeed)

categories : QStringList

Access functions:

QStringList categories() const
void setCategories(const QStringList &category)

changed : bool

Access functions:

bool changed() const
void setChanged(bool value)

[read-only] customs : const QStringList

Access functions:

QStringList customs() const

department : QString

Access functions:

QString department() const
void setDepartment(const QString &department)

emails : QList<KContacts::Email>

Access functions:

KContacts::Email::List emailList() const
void setEmailList(const KContacts::Email::List &list)

extraUrls : QList<KContacts::ResourceLocatorUrl>

Access functions:

KContacts::ResourceLocatorUrl::List extraUrlList() const
void setExtraUrlList(const KContacts::ResourceLocatorUrl::List &urlList)

familyName : QString

Access functions:

QString familyName() const
void setFamilyName(const QString &familyName)

formattedName : QString

Access functions:

QString formattedName() const
void setFormattedName(const QString &formattedName)

geo : KContacts::Geo

Access functions:

KContacts::Geo geo() const
void setGeo(const KContacts::Geo &geo)

givenName : QString

Access functions:

QString givenName() const
void setGivenName(const QString &givenName)

impps : QList<KContacts::Impp>

Access functions:

KContacts::Impp::List imppList() const
void setImppList(const KContacts::Impp::List &imppList)

[read-only] isEmpty : const bool

Access functions:

bool isEmpty() const

mailer : QString

Access functions:

QString mailer() const
void setMailer(const QString &mailer)

managersName : QString

Access functions:

QString managersName() const
void setManagersName(const QString &managersName)

name : QString

Access functions:

QString name() const
void setName(const QString &name)

[read-only] nickName : const QString

Access functions:

QString nickName() const

note : QString

Access functions:

QString note() const
void setNote(const QString &note)

office : QString

Access functions:

QString office() const
void setOffice(const QString &office)

[read-only] organization : const QString

Access functions:

QString organization() const

phoneNumbers : QList<KContacts::PhoneNumber>

Access functions:

KContacts::PhoneNumber::List phoneNumbers() const
KContacts::PhoneNumber::List phoneNumbers(KContacts::PhoneNumber::Type type) const
void setPhoneNumbers(const KContacts::PhoneNumber::List &phoneNumbers)

photo : KContacts::Picture

Access functions:

KContacts::Picture photo() const
void setPhoto(const KContacts::Picture &photo)

[read-only] preferredEmail : const QString

Access functions:

QString preferredEmail() const

prefix : QString

Access functions:

QString prefix() const
void setPrefix(const QString &prefix)

productId : QString

Access functions:

QString productId() const
void setProductId(const QString &productId)

profession : QString

Access functions:

QString profession() const
void setProfession(const QString &profession)

[read-only] realName : const QString

Access functions:

QString realName() const

[read-only] revision : const QDateTime

Access functions:

QDateTime revision() const

[read-only] role : const QString

Access functions:

QString role() const

sortString : QString

Access functions:

QString sortString() const
void setSortString(const QString &sortString)

spousesName : QString

Access functions:

QString spousesName() const
void setSpousesName(const QString &spousesName)

suffix : QString

Access functions:

QString suffix() const
void setSuffix(const QString &suffix)

[read-only] title : const QString

Access functions:

QString title() const

uid : QString

Access functions:

QString uid() const
void setUid(const QString &uid)

url : KContacts::ResourceLocatorUrl

Access functions:

KContacts::ResourceLocatorUrl url() const
void setUrl(const KContacts::ResourceLocatorUrl &url)
void setUrl(const QUrl &url)

Member Function Documentation

Addressee::Addressee()

Construct an empty address book entry.

Addressee::Addressee(const KContacts::Addressee &other)

Copy constructor.

[noexcept] Addressee::~Addressee()

Destroys the address book entry.

[since 5.88] void Addressee::addEmail(const KContacts::Email &email)

Adds an email address. If the email address (i.e. email.mail()) already exists in this addressee it won't be duplicated, instead email is assigned to it.

This function was introduced in 5.88.

QString Addressee::additionalName() const

Return additional names.

Note: Getter function for property additionalName.

See also setAdditionalName().

[static] QString Addressee::additionalNameLabel()

Return translated label for additionalName field.

KContacts::Address Addressee::address(KContacts::Address::Type type) const

Return address, which matches the given type.

type The type of address to look for

KContacts::Address::List Addressee::addresses() const

Return list of all addresses.

Note: Getter function for property addresses.

See also setAddresses().

KContacts::Address::List Addressee::addresses(KContacts::Address::Type type) const

Return list of addresses with a special type.

type The type of addresses to look for

Note: Getter function for property addresses.

[since 5.12] QDate Addressee::anniversary() const

Returns the contact's anniversary date.

Note: This is a non-standard extension using the X-Anniversary field.

Note: Getter function for property anniversary.

This function was introduced in 5.12.

See also setAnniversary().

QString Addressee::assembledName() const

Return the name that consists of all name parts.

Note: Getter function for property assembledName.

[since 5.12] QString Addressee::assistantsName() const

Returns the contact's assistant's name.

Note: This is a non-standard extension using the X-AssistantsName field.

Note: Getter function for property assistantsName.

This function was introduced in 5.12.

See also setAssistantsName().

QDateTime Addressee::birthday() const

Return birthday. (If a valid date has been set, birthday().time() will always return a valid QTime!)

Note: Getter function for property birthday.

See also setBirthday().

bool Addressee::birthdayHasTime() const

Returns true if birthday has been set with a time. Returns false otherwise.

Note: Getter function for property birthdayHasTime.

[static] QString Addressee::birthdayLabel()

Return translated label for birthday field.

[since 5.12] QUrl Addressee::blogFeed() const

Returns the contact's blog feed.

Note: This is a non-standard extension using the BlogFeed field.

Note: Getter function for property blogFeed.

This function was introduced in 5.12.

See also setBlogFeed().

[static] QString Addressee::businessAddressCountryLabel()

Return translated label for businessAddressCountry field.

[static] QString Addressee::businessAddressLabelLabel()

Return translated label for businessAddressLabel field.

[static] QString Addressee::businessAddressLocalityLabel()

Return translated label for businessAddressLocality field.

[static] QString Addressee::businessAddressPostOfficeBoxLabel()

Return translated label for businessAddressPostOfficeBox field.

[static] QString Addressee::businessAddressPostalCodeLabel()

Return translated label for businessAddressPostalCode field.

[static] QString Addressee::businessAddressRegionLabel()

Return translated label for businessAddressRegion field.

[static] QString Addressee::businessAddressStreetLabel()

Return translated label for businessAddressStreet field.

[static] QString Addressee::businessFaxLabel()

Return translated label for businessFax field.

[static] QString Addressee::businessPhoneLabel()

Return translated label for businessPhone field.

KContacts::CalendarUrl::List Addressee::calendarUrlList() const

[static] QString Addressee::carPhoneLabel()

Return translated label for carPhone field.

QStringList Addressee::categories() const

Return list of all set categories.

Note: Getter function for property categories.

See also setCategories().

bool Addressee::changed() const

Return whether the addressee is changed.

Note: Getter function for property changed.

See also setChanged().

KContacts::ClientPidMap::List Addressee::clientPidMapList() const

See also setClientPidMapList().

QString Addressee::custom(const QString &app, const QString &name) const

Return value of custom entry, identified by app and entry name.

app Name of the application which has inserted this custom entry

name Name of this application specific custom entry

QStringList Addressee::customs() const

Return list of all custom entries.

The format of the custom entries is 'app-key:value' and the list is sorted alphabetically by 'app-key'.

Note: Getter function for property customs.

See also setCustoms().

QString Addressee::department() const

Return department.

Note: Getter function for property department.

See also setDepartment().

[static] QString Addressee::departmentLabel()

Return translated label for department field.

[static] QString Addressee::emailLabel()

Return translated label for email field.

QStringList Addressee::emails() const

Return list of all email addresses.

See also setEmails().

KContacts::Picture::List Addressee::extraLogoList() const

See also setExtraLogoList().

KContacts::NickName::List Addressee::extraNickNameList() const

See also setExtraNickNameList().

KContacts::Org::List Addressee::extraOrganizationList() const

See also setExtraOrganizationList().

KContacts::Picture::List Addressee::extraPhotoList() const

See also setExtraPhotoList().

KContacts::Role::List Addressee::extraRoleList() const

See also setExtraRoleList().

KContacts::Sound::List Addressee::extraSoundList() const

See also setExtraSoundList().

KContacts::Title::List Addressee::extraTitleList() const

See also setExtraTitleList().

KContacts::ResourceLocatorUrl::List Addressee::extraUrlList() const

Note: Getter function for property extraUrls.

See also setExtraUrlList().

QString Addressee::familyName() const

Return family name.

Note: Getter function for property familyName.

See also setFamilyName().

[static] QString Addressee::familyNameLabel()

Return translated label for familyName field.

KContacts::FieldGroup::List Addressee::fieldGroupList() const

See also setFieldGroupList().

KContacts::Address Addressee::findAddress(const QString &id) const

Return address with the given id.

id The identifier of the address to look for. See Address::id()

KContacts::Key Addressee::findKey(const QString &id) const

Return key with the given id.

id The identifier of the key to look for. See Key::id()

KContacts::PhoneNumber Addressee::findPhoneNumber(const QString &id) const

Return phone number with the given id.

id The identifier of the phone number to look for. See PhoneNumber::id()

QString Addressee::formattedName() const

Return formatted name.

Note: Getter function for property formattedName.

See also setFormattedName().

[static] QString Addressee::formattedNameLabel()

Return translated label for formattedName field.

QString Addressee::fullEmail(const QString &email = QString()) const

Return email address including real name.

email Email address to be used to construct the full email string. If this is QString() the preferred email address is used.

KContacts::Gender Addressee::gender() const

See also setGender().

KContacts::Geo Addressee::geo() const

Return geographic position.

Note: Getter function for property geo.

See also setGeo().

[static] QString Addressee::geoLabel()

Return translated label for geo field.

QString Addressee::givenName() const

Return given name.

Note: Getter function for property givenName.

See also setGivenName().

[static] QString Addressee::givenNameLabel()

Return translated label for givenName field.

bool Addressee::hasCategory(const QString &category) const

Return, if addressee has the given category.

[static] QString Addressee::homeAddressCountryLabel()

Return translated label for homeAddressCountry field.

[static] QString Addressee::homeAddressLabelLabel()

Return translated label for homeAddressLabel field.

[static] QString Addressee::homeAddressLocalityLabel()

Return translated label for homeAddressLocality field.

[static] QString Addressee::homeAddressPostOfficeBoxLabel()

Return translated label for homeAddressPostOfficeBox field.

[static] QString Addressee::homeAddressPostalCodeLabel()

Return translated label for homeAddressPostalCode field.

[static] QString Addressee::homeAddressRegionLabel()

Return translated label for homeAddressRegion field.

[static] QString Addressee::homeAddressStreetLabel()

Return translated label for homeAddressStreet field.

[static] QString Addressee::homeFaxLabel()

Return translated label for homeFax field.

[static] QString Addressee::homePhoneLabel()

Return translated label for homePhone field.

KContacts::Impp::List Addressee::imppList() const

Note: Getter function for property impps.

See also setImppList().

void Addressee::insertAddress(const KContacts::Address &address)

Insert an address. If an address with the same id already exists in this addressee it is not duplicated.

address The address to insert

void Addressee::insertCalendarUrl(const KContacts::CalendarUrl &calendarUrl)

void Addressee::insertCategory(const QString &category)

Insert category. If the category already exists it is not duplicated.

void Addressee::insertClientPidMap(const KContacts::ClientPidMap &clientpidmap)

void Addressee::insertCustom(const QString &app, const QString &name, const QString &value)

Insert custom entry. The entry is identified by the name of the inserting application and a unique name. If an entry with the given app and name already exists its value is replaced with the new given value.

An empty value isn't allowed (nothing happens if this is called with any of the three arguments being empty)

app Name of the application inserting this custom entry

name Name of this application specific custom entry

value Value of this application specific custom entry

void Addressee::insertExtraNickName(const KContacts::NickName &nickName)

void Addressee::insertExtraOrganization(const KContacts::Org &organization)

void Addressee::insertExtraPhoto(const KContacts::Picture &picture)

void Addressee::insertExtraRole(const KContacts::Role &role)

void Addressee::insertExtraSound(const KContacts::Sound &sound)

void Addressee::insertExtraTitle(const KContacts::Title &title)

void Addressee::insertExtraUrl(const KContacts::ResourceLocatorUrl &url)

void Addressee::insertFieldGroup(const KContacts::FieldGroup &fieldGroup)

void Addressee::insertImpp(const KContacts::Impp &impp)

void Addressee::insertKey(const KContacts::Key &key)

Insert a key. If a key with the same id already exists in this addressee it is not duplicated.

key The key to insert

void Addressee::insertLang(const KContacts::Lang &language)

Insert Language

void Addressee::insertMember(const QString &member)

void Addressee::insertPhoneNumber(const KContacts::PhoneNumber &phoneNumber)

Insert a phone number. If a phone number with the same id already exists in this addressee it is not duplicated.

phoneNumber The telephone number to insert to the addressee

void Addressee::insertRelationship(const KContacts::Related &related)

void Addressee::insertSourceUrl(const QUrl &url)

bool Addressee::isEmpty() const

Return if the address book entry is empty.

Note: Getter function for property isEmpty.

[static] QString Addressee::isdnLabel()

Return translated label for isdn field.

KContacts::Key Addressee::key(KContacts::Key::Type type, const QString &customTypeString = QString()) const

Return key, which matches the given type. If type == Key::Custom you can specify a string that should match. If you leave the string empty, the first key with a custom value is returned.

type The type of key to look for

customTypeString A string to match custom keys against when type is Key::Custom

KContacts::Key::List Addressee::keys() const

Return list of all keys.

See also setKeys().

KContacts::Key::List Addressee::keys(KContacts::Key::Type type, const QString &customTypeString = QString()) const

Return list of keys with a special type. If type == Key::Custom you can specify a string that should match. If you leave the string empty, all custom keys will be returned.

type The type of key to look for

customTypeString A string to match custom keys against when type is Key::Custom

QString Addressee::kind() const

See also setKind().

KContacts::Lang::List Addressee::langs() const

Returns List of lang

See also setLangs().

Return logo.

See also setLogo().

[static] QString Addressee::logoLabel()

Return translated label for logo field.

QString Addressee::mailer() const

Return mail client.

Note: Getter function for property mailer.

See also setMailer().

[static] QString Addressee::mailerLabel()

Return translated label for mailer field.

[since 5.12] QString Addressee::managersName() const

Returns the contact's manager's name.

Note: This is a non-standard extension using the X-ManagersName field.

Note: Getter function for property managersName.

This function was introduced in 5.12.

See also setManagersName().

QStringList Addressee::members() const

See also setMembers().

[static] QString Addressee::mimeType()

Returns the MIME type used for Addressees

[static] QString Addressee::mobilePhoneLabel()

Return translated label for mobilePhone field.

QString Addressee::name() const

Return name.

Note: Getter function for property name.

See also setName().

[static] QString Addressee::nameLabel()

Return translated label for name field.

QString Addressee::nickName() const

Return nick name.

Note: Getter function for property nickName.

See also setNickName().

[static] QString Addressee::nickNameLabel()

Return translated label for nickName field.

QString Addressee::note() const

Return note.

Note: Getter function for property note.

See also setNote().

[static] QString Addressee::noteLabel()

Return translated label for note field.

[since 5.12] QString Addressee::office() const

Returns the contact's office.

Note: This is a non-standard extension using the X-Office field.

Note: Getter function for property office.

This function was introduced in 5.12.

See also setOffice().

QString Addressee::organization() const

Return organization.

Note: Getter function for property organization.

See also setOrganization().

[static] QString Addressee::organizationLabel()

Return translated label for organization field.

[static] QString Addressee::pagerLabel()

Return translated label for pager field.

[static] void Addressee::parseEmailAddress(const QString &rawEmail, QString &fullName, QString &email)

Parse full email address. The result is given back in fullName and email.

rawEmail The input string to parse for name and email

fullName The name part of the rawEmail input, if it contained one

email The email part of the rawEmail input, if it contained one

KContacts::PhoneNumber Addressee::phoneNumber(KContacts::PhoneNumber::Type type) const

Return phone number, which matches the given type.

type The type of phone number to get

KContacts::PhoneNumber::List Addressee::phoneNumbers() const

Return list of all phone numbers.

Note: Getter function for property phoneNumbers.

See also setPhoneNumbers().

KContacts::PhoneNumber::List Addressee::phoneNumbers(KContacts::PhoneNumber::Type type) const

Return list of phone numbers with a special type.

type The type of phone number to get

Note: Getter function for property phoneNumbers.

KContacts::Picture Addressee::photo() const

Return photo.

Note: Getter function for property photo.

See also setPhoto().

[static] QString Addressee::photoLabel()

Return translated label for photo field.

QString Addressee::preferredEmail() const

Return preferred email address. This is the first email address or the last one added with insertEmail() or addEmail() with a set preferred parameter.

Note: Getter function for property preferredEmail.

QString Addressee::prefix() const

Return honorific prefixes.

Note: Getter function for property prefix.

See also setPrefix().

[static] QString Addressee::prefixLabel()

Return translated label for prefix field.

QString Addressee::productId() const

Return product identifier.

Note: Getter function for property productId.

See also setProductId().

[static] QString Addressee::productIdLabel()

Return translated label for productId field.

[since 5.12] QString Addressee::profession() const

Returns the contact's profession.

Note: This is a non-standard extension using the X-Profession field.

Note: Getter function for property profession.

This function was introduced in 5.12.

See also setProfession().

QString Addressee::realName() const

Return the name of the addressee. This is calculated from all the name fields.

Note: Getter function for property realName.

KContacts::Related::List Addressee::relationships() const

See also setRelationships().

void Addressee::removeAddress(const KContacts::Address &address)

Remove address. If no address with the given id exists for this addressee, nothing happens.

address The address to remove

void Addressee::removeCategory(const QString &category)

Remove category.

void Addressee::removeCustom(const QString &app, const QString &name)

Remove custom entry.

app Name of the application which has inserted this custom entry

name Name of this application specific custom entry

void Addressee::removeEmail(const QString &email)

Remove email address. If the email address doesn't exist, nothing happens.

email Email address to remove

void Addressee::removeKey(const KContacts::Key &key)

Remove a key. If no key with the given id exists for this addressee, nothing happens.

key The key to remove

void Addressee::removeLang(const QString &language)

Remove Language

void Addressee::removePhoneNumber(const KContacts::PhoneNumber &phoneNumber)

Remove phone number. If no phone number with the given id exists for this addressee, nothing happens.

phoneNumber The telephone number to remove from the addressee

QDateTime Addressee::revision() const

Return revision date.

Note: Getter function for property revision.

See also setRevision().

[static] QString Addressee::revisionLabel()

Return translated label for revision field.

QString Addressee::role() const

Return role.

Note: Getter function for property role.

See also setRole().

[static] QString Addressee::roleLabel()

Return translated label for role field.

KContacts::Secrecy Addressee::secrecy() const

Return security class.

See also setSecrecy().

[static] QString Addressee::secrecyLabel()

Return translated label for secrecy field.

void Addressee::setAdditionalName(const QString &additionalName)

Set additional names.

Note: Setter function for property additionalName.

See also additionalName().

[since 5.100] void Addressee::setAddresses(const KContacts::Address::List &addresses)

Set the addressee

addresses The new addresses

Note: Setter function for property addresses.

This function was introduced in 5.100.

See also addresses().

[since 5.12] void Addressee::setAnniversary(const QDate &anniversary)

Sets the contact's anniversary date.

Note: This is a non-standard extension using the X-Anniversary field.

Note: Setter function for property anniversary.

This function was introduced in 5.12.

See also anniversary().

[since 5.12] void Addressee::setAssistantsName(const QString &assistantsName)

Set the contact's assistant's name.

Note: This is a non-standard extension using the X-AssistantsName field.

Note: Setter function for property assistantsName.

This function was introduced in 5.12.

See also assistantsName().

void Addressee::setBirthday(const QDate &birthday)

Set birthday (date only). birthdayHasTime() will return false afterwards.

See also birthday().

[since 5.4] void Addressee::setBirthday(const QDateTime &birthday, bool withTime = true)

Set birthday (date and time). If withTime is false the time will be set to midnight and birthdayHasTime() will return false afterwards.

This function was introduced in 5.4.

[since 5.12] void Addressee::setBlogFeed(const QUrl &blogFeed)

Set the contact's blog feed.

Note: This is a non-standard extension using the BlogFeed field.

Note: Setter function for property blogFeed.

This function was introduced in 5.12.

See also blogFeed().

void Addressee::setCategories(const QStringList &category)

Set categories to given value.

Note: Setter function for property categories.

See also categories().

void Addressee::setChanged(bool value)

Mark addressee as changed.

value Sets the status indicating changed data

Note: Setter function for property changed.

See also changed().

void Addressee::setClientPidMapList(const KContacts::ClientPidMap::List &clientpidmaplist)

See also clientPidMapList().

void Addressee::setCustoms(const QStringList &customs)

Set all custom entries.

See also customs().

void Addressee::setDepartment(const QString &department)

Set department.

Note: Setter function for property department.

See also department().

void Addressee::setEmails(const QStringList &list)

Set the emails to list. The first email address gets the preferred one!

See also emails().

void Addressee::setExtraLogoList(const KContacts::Picture::List &logoList)

See also extraLogoList().

void Addressee::setExtraNickNameList(const KContacts::NickName::List &nickNameList)

See also extraNickNameList().

void Addressee::setExtraOrganizationList(const KContacts::Org::List &orgList)

See also extraOrganizationList().

void Addressee::setExtraPhotoList(const KContacts::Picture::List &pictureList)

See also extraPhotoList().

void Addressee::setExtraRoleList(const KContacts::Role::List &roleList)

See also extraRoleList().

void Addressee::setExtraSoundList(const KContacts::Sound::List &soundList)

See also extraSoundList().

void Addressee::setExtraTitleList(const KContacts::Title::List &urltitle)

See also extraTitleList().

void Addressee::setExtraUrlList(const KContacts::ResourceLocatorUrl::List &urlList)

Note: Setter function for property extraUrls.

See also extraUrlList().

void Addressee::setFamilyName(const QString &familyName)

Set family name.

Note: Setter function for property familyName.

See also familyName().

void Addressee::setFieldGroupList(const KContacts::FieldGroup::List &fieldGroupList)

See also fieldGroupList().

void Addressee::setFormattedName(const QString &formattedName)

Set formatted name.

Note: Setter function for property formattedName.

See also formattedName().

void Addressee::setGender(const KContacts::Gender &gender)

See also gender().

void Addressee::setGeo(const KContacts::Geo &geo)

Set geographic position.

Note: Setter function for property geo.

See also geo().

void Addressee::setGivenName(const QString &givenName)

Set given name.

Note: Setter function for property givenName.

See also givenName().

void Addressee::setImppList(const KContacts::Impp::List &imppList)

Note: Setter function for property impps.

See also imppList().

void Addressee::setKeys(const KContacts::Key::List &keys)

Set the list of keys keys The keys to be set.

See also keys().

void Addressee::setKind(const QString &kind)

See also kind().

void Addressee::setLangs(const KContacts::Lang::List &langs)

See also langs().

Set logo.

See also logo().

void Addressee::setMailer(const QString &mailer)

Set mail client.

Note: Setter function for property mailer.

See also mailer().

[since 5.12] void Addressee::setManagersName(const QString &managersName)

Set the contact's manager's name.

Note: This is a non-standard extension using the X-ManagersName field.

Note: Setter function for property managersName.

This function was introduced in 5.12.

See also managersName().

void Addressee::setMembers(const QStringList &c)

See also members().

void Addressee::setName(const QString &name)

Set name.

Note: Setter function for property name.

See also name().

void Addressee::setNameFromString(const QString &s)

Set name fields by parsing the given string and trying to associate the parts of the string with according fields. This function should probably be a bit more clever.

void Addressee::setNickName(const KContacts::NickName &nickName)

See also nickName().

void Addressee::setNickName(const QString &nickName)

Set nick name.

void Addressee::setNote(const QString &note)

Set note.

Note: Setter function for property note.

See also note().

[since 5.12] void Addressee::setOffice(const QString &office)

Set the contact's office.

Note: This is a non-standard extension using the X-Office field.

Note: Setter function for property office.

This function was introduced in 5.12.

See also office().

void Addressee::setOrganization(const KContacts::Org &organization)

See also organization().

void Addressee::setOrganization(const QString &organization)

Set organization.

void Addressee::setPhoto(const KContacts::Picture &photo)

Set photo.

Note: Setter function for property photo.

See also photo().

void Addressee::setPrefix(const QString &prefix)

Set honorific prefixes.

Note: Setter function for property prefix.

See also prefix().

void Addressee::setProductId(const QString &productId)

Set product identifier.

Note: Setter function for property productId.

See also productId().

[since 5.12] void Addressee::setProfession(const QString &profession)

Set the contact's profession. @note This is a non-standard extension using the X-Profession field.

Note: Setter function for property profession.

This function was introduced in 5.12.

See also profession().

void Addressee::setRelationships(const KContacts::Related::List &c)

See also relationships().

void Addressee::setRevision(const QDateTime &revision)

Set revision date.

See also revision().

void Addressee::setRole(const KContacts::Role &role)

See also role().

void Addressee::setRole(const QString &role)

Set role.

void Addressee::setSecrecy(const KContacts::Secrecy &secrecy)

Set security class.

See also secrecy().

void Addressee::setSortString(const QString &sortString)

Set sort string.

Note: Setter function for property sortString.

See also sortString().

void Addressee::setSound(const KContacts::Sound &sound)

Set sound.

See also sound().

void Addressee::setSourcesUrlList(const QList<QUrl> &urlList)

See also sourcesUrlList().

[since 5.12] void Addressee::setSpousesName(const QString &spousesName)

Set the contact's spouse's name.

Note: This is a non-standard extension using the X-SpousesName field.

Note: Setter function for property spousesName.

This function was introduced in 5.12.

See also spousesName().

void Addressee::setSuffix(const QString &suffix)

Set honorific suffixes.

Note: Setter function for property suffix.

See also suffix().

void Addressee::setTimeZone(const KContacts::TimeZone &timeZone)

Set time zone.

See also timeZone().

void Addressee::setTitle(const KContacts::Title &title)

See also title().

void Addressee::setTitle(const QString &title)

Set title.

void Addressee::setUid(const QString &uid)

Set unique identifier.

uid the KABC unique identifier

Note: Setter function for property uid.

See also uid().

void Addressee::setUrl(const KContacts::ResourceLocatorUrl &url)

Set homepage.

Note: Setter function for property url.

See also url().

QString Addressee::sortString() const

Return sort string.

Note: Getter function for property sortString.

See also setSortString().

[static] QString Addressee::sortStringLabel()

Return translated label for sortString field.

KContacts::Sound Addressee::sound() const

Return sound.

See also setSound().

[static] QString Addressee::soundLabel()

Return translated label for sound field.

QList<QUrl> Addressee::sourcesUrlList() const

See also setSourcesUrlList().

[since 5.12] QString Addressee::spousesName() const

Returns the contact's spouse's name.

Note: This is a non-standard extension using the X-SpousesName field.

Note: Getter function for property spousesName.

This function was introduced in 5.12.

See also setSpousesName().

QString Addressee::suffix() const

Return honorific suffixes.

Note: Getter function for property suffix.

See also setSuffix().

[static] QString Addressee::suffixLabel()

Return translated label for suffix field.

KContacts::TimeZone Addressee::timeZone() const

Return time zone.

See also setTimeZone().

[static] QString Addressee::timeZoneLabel()

Return translated label for timeZone field.

QString Addressee::title() const

Return title.

Note: Getter function for property title.

See also setTitle().

[static] QString Addressee::titleLabel()

Return translated label for title field.

QString Addressee::toString() const

Returns string representation of the addressee.

QString Addressee::uid() const

Return unique identifier.

Note: Getter function for property uid.

See also setUid().

[static] QString Addressee::uidLabel()

Return translated label for uid field.

KContacts::ResourceLocatorUrl Addressee::url() const

Return homepage.

Note: Getter function for property url.

See also setUrl().

[static] QString Addressee::urlLabel()

Return translated label for url field.

bool Addressee::operator!=(const KContacts::Addressee &other) const

Not-equal operator.

Returns true if this and the given addressee are not equal, otherwise false

KContacts::Addressee &Addressee::operator=(const KContacts::Addressee &other)

Assignment operator.

Returns a reference to this

bool Addressee::operator==(const KContacts::Addressee &other) const

Equality operator.

Returns true if this and the given addressee are equal, otherwise false

Related Non-Members

QDataStream &operator<<(QDataStream &, const KContacts::Addressee &)

QDataStream &operator>>(QDataStream &, KContacts::Addressee &)