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.
|
Public Types |
| typedef AddresseeList | List |
| typedef QMap< QString, Addressee > | Map |
Public Member Functions |
| | Addressee () |
| | ~Addressee () |
| | Addressee (const Addressee &) |
| Addressee & | operator= (const Addressee &) |
| bool | operator== (const Addressee &) const |
| bool | operator!= (const Addressee &) const |
| bool | isEmpty () const |
| void | setUid (const QString &uid) |
| QString | uid () const |
| void | setName (const QString &name) |
| QString | name () const |
| void | setFormattedName (const QString &formattedName) |
| QString | formattedName () const |
| void | setFamilyName (const QString &familyName) |
| QString | familyName () const |
| void | setGivenName (const QString &givenName) |
| QString | givenName () const |
| void | setAdditionalName (const QString &additionalName) |
| QString | additionalName () const |
| void | setPrefix (const QString &prefix) |
| QString | prefix () const |
| void | setSuffix (const QString &suffix) |
| QString | suffix () const |
| void | setNickName (const QString &nickName) |
| QString | nickName () const |
| void | setBirthday (const QDateTime &birthday) |
| QDateTime | birthday () const |
| void | setMailer (const QString &mailer) |
| QString | mailer () const |
| void | setTimeZone (const TimeZone &timeZone) |
| TimeZone | timeZone () const |
| void | setGeo (const Geo &geo) |
| Geo | geo () const |
| void | setTitle (const QString &title) |
| QString | title () const |
| void | setRole (const QString &role) |
| QString | role () const |
| void | setOrganization (const QString &organization) |
| QString | organization () const |
| void | setDepartment (const QString &department) |
| QString | department () const |
| void | setNote (const QString ¬e) |
| QString | note () const |
| void | setProductId (const QString &productId) |
| QString | productId () const |
| void | setRevision (const QDateTime &revision) |
| QDateTime | revision () const |
| void | setSortString (const QString &sortString) |
| QString | sortString () const |
| void | setUrl (const KUrl &url) |
| KUrl | url () const |
| void | setSecrecy (const Secrecy &secrecy) |
| Secrecy | secrecy () const |
| void | setLogo (const Picture &logo) |
| Picture | logo () const |
| void | setPhoto (const Picture &photo) |
| Picture | photo () const |
| void | setSound (const Sound &sound) |
| Sound | sound () const |
| void | setNameFromString (const QString &) |
| QString | realName () const |
| QString | assembledName () const |
| QString | fullEmail (const QString &email=QString()) const |
| void | insertEmail (const QString &email, bool preferred=false) |
| void | removeEmail (const QString &email) |
| QString | preferredEmail () const |
| QStringList | emails () const |
| void | setEmails (const QStringList &list) |
| void | insertPhoneNumber (const PhoneNumber &phoneNumber) |
| void | removePhoneNumber (const PhoneNumber &phoneNumber) |
| PhoneNumber | phoneNumber (PhoneNumber::Type type) const |
| PhoneNumber::List | phoneNumbers () const |
| PhoneNumber::List | phoneNumbers (PhoneNumber::Type type) const |
| PhoneNumber | findPhoneNumber (const QString &id) const |
| void | insertKey (const Key &key) |
| void | removeKey (const Key &key) |
| Key | key (Key::Type type, QString customTypeString=QString()) const |
| Key::List | keys () const |
| void | setKeys (const Key::List &keys) |
| Key::List | keys (Key::Type type, QString customTypeString=QString()) const |
| Key | findKey (const QString &id) const |
| void | insertAddress (const Address &address) |
| void | removeAddress (const Address &address) |
| Address | address (Address::Type type) const |
| Address::List | addresses () const |
| Address::List | addresses (Address::Type type) const |
| Address | findAddress (const QString &id) const |
| void | insertCategory (const QString &) |
| void | removeCategory (const QString &) |
| bool | hasCategory (const QString &) const |
| void | setCategories (const QStringList &) |
| QStringList | categories () const |
| void | insertCustom (const QString &app, const QString &name, const QString &value) |
| void | removeCustom (const QString &app, const QString &name) |
| QString | custom (const QString &app, const QString &name) const |
| void | setCustoms (const QStringList &) |
| QStringList | customs () const |
| QString | toString () const |
| void | setResource (Resource *resource) |
| Resource * | resource () const |
| void | setChanged (bool value) |
| bool | changed () const |
| bool | operator< (const Addressee &addr) const |
Static Public Member Functions |
| static QString | uidLabel () |
| static QString | nameLabel () |
| static QString | formattedNameLabel () |
| static QString | familyNameLabel () |
| static QString | givenNameLabel () |
| static QString | additionalNameLabel () |
| static QString | prefixLabel () |
| static QString | suffixLabel () |
| static QString | nickNameLabel () |
| static QString | birthdayLabel () |
| static QString | homeAddressStreetLabel () |
| static QString | homeAddressLocalityLabel () |
| static QString | homeAddressRegionLabel () |
| static QString | homeAddressPostalCodeLabel () |
| static QString | homeAddressCountryLabel () |
| static QString | homeAddressLabelLabel () |
| static QString | businessAddressStreetLabel () |
| static QString | businessAddressLocalityLabel () |
| static QString | businessAddressRegionLabel () |
| static QString | businessAddressPostalCodeLabel () |
| static QString | businessAddressCountryLabel () |
| static QString | businessAddressLabelLabel () |
| static QString | homePhoneLabel () |
| static QString | businessPhoneLabel () |
| static QString | mobilePhoneLabel () |
| static QString | homeFaxLabel () |
| static QString | businessFaxLabel () |
| static QString | carPhoneLabel () |
| static QString | isdnLabel () |
| static QString | pagerLabel () |
| static QString | emailLabel () |
| static QString | mailerLabel () |
| static QString | timeZoneLabel () |
| static QString | geoLabel () |
| static QString | titleLabel () |
| static QString | roleLabel () |
| static QString | organizationLabel () |
| static QString | departmentLabel () |
| static QString | noteLabel () |
| static QString | productIdLabel () |
| static QString | revisionLabel () |
| static QString | sortStringLabel () |
| static QString | urlLabel () |
| static QString | secrecyLabel () |
| static QString | logoLabel () |
| static QString | photoLabel () |
| static QString | soundLabel () |
| static void | parseEmailAddress (const QString &rawEmail, QString &fullName, QString &email) |
| static void | setSortMode (KABC::SortMode *mode) |
Friends |
|
QDataStream & | operator<< (QDataStream &, const Addressee &) |
|
QDataStream & | operator>> (QDataStream &, Addressee &) |