class Addressee
|
address book entry. More... |
|
|
Public Types
Public Methods
This class represents an entry in the address book.
The data of this class is implicitly shared. You can pass this class by value.
Construct an empty address book entry.
Addressee ( const Addressee & )
| Addressee |
Addressee & operator= ( const Addressee & )
| operator= |
[const]
Return, if the address book entry is empty.
void setUid ( const QString &uid )
| setUid |
[const]
void setName ( const QString &name )
| setName |
[const]
void setFormattedName ( const QString &formattedName )
| setFormattedName |
QString formattedName ()
| formattedName |
[const]
void setFamilyName ( const QString &familyName )
| setFamilyName |
[const]
void setGivenName ( const QString &givenName )
| setGivenName |
[const]
void setAdditionalName ( const QString &additionalName )
| setAdditionalName |
QString additionalName ()
| additionalName |
[const]
void setPrefix ( const QString &prefix )
| setPrefix |
[const]
void setSuffix ( const QString &suffix )
| setSuffix |
[const]
void setNickName ( const QString &nickName )
| setNickName |
[const]
void setBirthday ( const QDateTime &birthday )
| setBirthday |
[const]
void setMailer ( const QString &mailer )
| setMailer |
[const]
void setTimeZone ( const TimeZone &timeZone )
| setTimeZone |
TimeZone timeZone ()
| timeZone |
[const]
void setGeo ( const Geo &geo )
| setGeo |
[const]
void setTitle ( const QString &title )
| setTitle |
[const]
void setRole ( const QString &role )
| setRole |
[const]
void setOrganization ( const QString &organization )
| setOrganization |
QString organization ()
| organization |
[const]
void setNote ( const QString ¬e )
| setNote |
[const]
void setProductId ( const QString &productId )
| setProductId |
[const]
void setRevision ( const QDateTime &revision )
| setRevision |
[const]
void setSortString ( const QString &sortString )
| setSortString |
[const]
void setUrl ( const KURL &url )
| setUrl |
[const]
void setNameFromString ( const QString & )
| setNameFromString |
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.
[const]
Return the name of the addressee. This is calculated from all the name
fields.
[const]
Return email address including real name.
Parameters:
email | Email address to be used to construct the full email string.
If this is QString::null the preferred email address is used.
|
void insertEmail ( const QString &email, bool preferred=false )
| insertEmail |
Insert an email address. If the email address already exists in this
addressee it is not duplicated.
Parameters:
email | Email address
|
preferred | Set to true, if this is the preferred email address of
the addressee.
|
void removeEmail ( const QString &email )
| removeEmail |
Remove email address. If the email address doesn't exist, nothing happens.
QString preferredEmail ()
| preferredEmail |
[const]
Return preferred email address. This is the first email address or the
last one added with isnertEmail() with a set preferred parameter.
[const]
Return list of all email addresses.
void insertPhoneNumber ( const PhoneNumber &phoneNumber )
| insertPhoneNumber |
Insert a phone number. If a phoen number with the same id already exists
in this addressee it is not duplicated.
void removePhoneNumber ( const PhoneNumber &phoneNumber )
| removePhoneNumber |
Remove phone number. If no phone number with the given id exists for this
addresse nothing happens.
PhoneNumber phoneNumber ( int type )
| phoneNumber |
[const]
Return phone number, which matches the given type.
PhoneNumber::List phoneNumbers ()
| phoneNumbers |
[const]
Return list of all phone numbers.
PhoneNumber findPhoneNumber ( const QString &id )
| findPhoneNumber |
[const]
Return phone number with the given id.
void insertAddress ( const Address &address )
| insertAddress |
Insert an address. If an address with the same id already exists
in this addressee it is not duplicated.
void removeAddress ( const Address &address )
| removeAddress |
Remove address. If no address with the given id exists for this
addresse nothing happens.
Address address ( int type )
| address |
[const]
Return address, which matches the given type.
Address::List addresses ()
| addresses |
[const]
Return list of all addresses.
Address findAddress ( const QString &id )
| findAddress |
[const]
Return address with the given id.
void insertCategory ( const QString & )
| insertCategory |
Insert category. If the category already exists it is not dulicated.
void removeCategory ( const QString & )
| removeCategory |
Remove category.
bool hasCategory ( const QString & )
| hasCategory |
[const]
Return, if addressee has the given category.
void setCategories ( const QStringList & )
| setCategories |
Set categories to given value.
[const]
Return list of all set categories.
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 ne given value.
void removeCustom ( const QString &app, const QString &name )
| removeCustom |
Remove custom entry.
[const]
Return value of custom entry, identified by app and entry name.
Set all custom entries.
[const]
Return list of all custom entries.
[const]
Debug output.
Generated by: root on daffy.perf.redhat.com on Mon Sep 2 10:12:36 2002, using kdoc 2.0a54. |