| Home · All Classes · Annotated · Functions |
The QContact class holds the data of an address book entry. More...
#include <QContact>
Inherits QPimRecord.
The QContact class holds the data of an address book entry.
This data includes information the name of the person, contact information, and business information such as deparment and job title.
This enum describes the three possible choices for gender.
| Constant | Value |
|---|---|
| QContact::UnspecifiedGender | 0 |
| QContact::Male | 1 |
| QContact::Female | 2 |
Enumerates the types of addresses a contact can have. For instance Home mailing address.
| Constant | Value | Description |
|---|---|---|
| QContact::Home | 0x01 | Residential contact information |
| QContact::Business | 0x02 | Business contact information |
| QContact::Other | 0x00 | Contact information that does not fit into other Location types |
Enumerates the types of phone numbers that can be assigned to a contact.
| Constant | Value | Description |
|---|---|---|
| QContact::HomePhone | 0x01 | A non-business land line. |
| QContact::HomeMobile | Mobile | HomePhone | A non-business mobile phone number. |
| QContact::HomeFax | Fax | HomePhone | A non-business fax number. |
| QContact::HomePager | Pager | HomePhone | A non-business pager number. |
| QContact::BusinessPhone | 0x02 | A business land line. |
| QContact::BusinessMobile | Mobile | BusinessPhone | A business mobile phone number. |
| QContact::BusinessFax | Fax | BusinessPhone | A business fax number. |
| QContact::BusinessPager | Pager | BusinessPhone | A business pager number. |
| QContact::OtherPhone | 0x00 | A land line. Whether the phone number is for Home or Business use is unspecified. |
| QContact::Mobile | 0x0100 | A mobile phone number. Whether the phone is for Home or Business use is unspecified. |
| QContact::Fax | 0x0200 | A fax number. Whether the phone is for Home or Business use is unspecified. |
| QContact::Pager | 0x0400 | A pager number. Whether the phone is for Home or Business use is unspecified. |
Constructs a new QContact.
Constructs a new QContact that is a copy of contact.
Destroys the contact.
Returns the contacts address for the specified location.
See also setAddress().
Returns the list of phone numbers of the contact.
Return the person's anniversary date. QDate will be null if there is anniversary has not been set.
See also setAnniversary().
Returns the assistant of the contact.
See also setAssistant().
Return the person's birthday. QDate will be null if there is birthday has not been set.
See also setBirthday().
Returns the business city of the contact.
See also setBusinessCity().
Returns the business country of the contact.
See also setBusinessCountry().
Returns the business fax number of the contact.
See also setBusinessFax().
Returns the business mobile number of the contact.
See also setBusinessMobile().
Returns the business pager number of the contact.
See also setBusinessPager().
Returns the business phone number of the contact.
See also setBusinessPhone().
Returns the business state of the contact.
See also setBusinessState().
Returns the business street address of the contact.
See also setBusinessStreet().
Returns the business webpage of the contact.
See also setBusinessWebpage().
Returns the business zip of the contact.
See also setBusinessZip().
Reimplemented from QPimRecord.
This is an overloaded member function, provided for convenience.
Reimplemented from QPimRecord.
Changes the contacts portrait to the given pixmap p. The pixmap is saved to the contactimages directory, and replaces the file currently used as the contact's portrait.
Returns the children of the contact.
See also setChildren().
Clear the email list for the contact, including the default email.
Returns the company for the contact.
See also setCompany().
Returns the pronunciation of the contacts company name.
See also setCompanyPronunciation().
Reimplemented from QPimRecord.
This is an overloaded member function, provided for convenience.
Reimplemented from QPimRecord.
Returns the default email address of the contact.
See also setDefaultEmail().
Return the default phone number of the contact. If no default phone number is set returns the null string.
See also setDefaultPhoneNumber().
Returns the department for the contact.
See also setDepartment().
Returns the formated address of the contact of type location.
Returns the formatted address of the contacts business address.
Returns the formatted address of the contacts home address.
Returns a list of email addresses belonging to the contact, including the default email address.
See also setEmailList().
Returns the first name of the contact.
See also setFirstName().
Returns the pronunciation of the contacts first name.
See also setFirstNamePronunciation().
Returns the gender of the contact as type GenderType.
See also setGender().
Returns the home city of the contact.
See also setHomeCity().
Returns the home country of the contact.
See also setHomeCountry().
Returns the home fax number of the contact.
See also setHomeFax().
Returns the home mobile number of the contact.
See also setHomeMobile().
Returns the home phone number of the contact.
See also setHomePhone().
Returns the home state of the contact.
See also setHomeState().
Returns the home street address of the contact.
See also setHomeStreet().
Returns the home webpage of the contact.
See also setHomeWebpage().
Returns the home zip of the contact.
See also setHomeZip().
Adds email to the list of email address for the contact. If no default email is set, the default email will be set to email.
Returns the job title of the contact.
See also setJobTitle().
Returns a suitable display string for the contact.
Returns the string identifiers suitable for describing the format for the contact label.
Returns the format for contact labels.
The format is a set of pattern separated by '|'s. Each pattern is a set of space separated tokens. A token can either be _ for a space, an identifier as from indentifierKey(), or any string. The format for label will the first pattern for which all fields specified are non null for the contact.
For example:
LastName , _ FirstName | LastName | FirstName | Company
See also setLabelFormat().
Returns the last name of the contact.
See also setLastName().
Returns the pronunciation of the contacts last name.
See also setLastNamePronunciation().
Returns the manager of the contact.
See also setManager().
Returns true if the part of contact matches regexp. Otherwise returns false.
This is an overloaded member function, provided for convenience.
Returns true if the part of contact matches r. Otherwise returns false.
Returns the middle name of the contact.
See also setMiddleName().
Returns the title of the contact.
See also setNameTitle().
Returns the nickname of the contact.
See also setNickname().
Returns the notes relating to the the contact.
Reimplemented from QPimRecord.
See also setNotes().
Returns the office for the contact.
See also setOffice().
Returns an icon representing the phone number type Returns a null icon if no icon is available for the phone number type.
See also phoneIconResource().
Returns the resource location for an icon representing the phone number type. Returns a null string if no icon is available for the phone number type.
See also phoneIcon().
Returns the phone number of type for the contact.
See also setPhoneNumber().
Returns the list of phone numbers of the contact.
Returns a list of phone types that can be assigned as a contact phone number.
Returns the pixmap portrait of the contact. If there is no portrait set for the contact will return a default pixmap
Returns the path for the portrait file of the contact.
See also setPortraitFile().
Returns the profession of the contact.
See also setProfession().
Reads the file specified by filename as a list of vCards objects and returns the list of near equivalent contacts.
See also writeVCard().
This is an overloaded member function, provided for convenience.
Reads the given VCard data in vcard, and returns the list of near equivalent contacts.
See also writeVCard().
This is an overloaded member function, provided for convenience.
Reads the given VCard data in vobject, and returns the list of near equivalent contacts.
See also writeVCard().
Removes email from the list of email address for the contact. If the email is the default email, the default email will be set to the first one in the list.
Sets the contacts address for the location to address
See also address().
Sets the person's anniversary to date.
See also anniversary().
Sets the assistant of the contact to str.
See also assistant().
Sets the person's birthday to date.
See also birthday().
Sets the business city of the contact to str.
See also businessCity().
Sets the business country of the contact to str.
See also businessCountry().
Sets the business fax number of the contact to str.
See also businessFax().
Sets the business mobile phone number of the contact to str.
See also businessMobile().
Sets the business pager number of the contact to str.
See also businessPager().
Sets the business phone number of the contact to str.
See also businessPhone().
Sets the business state of the contact to str.
See also businessState().
Sets the business street address of the contact to str.
See also businessStreet().
Sets the business webpage of the contact to str.
See also businessWebpage().
Sets the business zip code of the contact to str.
See also businessZip().
Sets the children of the contact to str.
See also children().
Sets the company for contact to str.
See also company().
Sets the pronunciation of the contacts company name to str.
See also companyPronunciation().
Sets the default email to v and adds it to the list.
See also defaultEmail().
If the phone number str is a phone number for the contact will set it as the default phone number.
See also defaultPhoneNumber().
This is an overloaded member function, provided for convenience.
If the phone number of type is a phone number for the contact will set it as the default phone number.
Sets the department for contact to str.
See also department().
Sets the email list to emails
See also emailList().
Sets the first name of the contact to str.
See also firstName().
Sets the pronunciation of the contacts first name to str.
See also firstNamePronunciation().
Sets the persons gender to the enum value specified in g.
See also gender().
Sets the home city of the contact to str.
See also homeCity().
Sets the home country of the contact to str.
See also homeCountry().
Sets the home fax number of the contact to str.
See also homeFax().
Sets the home mobile phone number of the contact to str.
See also homeMobile().
Sets the home phone number of the contact to str.
See also homePhone().
Sets the home state of the contact to str.
See also homeState().
Sets the home street address of the contact to str.
See also homeStreet().
Sets the home webpage of the contact to str.
See also homeWebpage().
Sets the home zip code of the contact to str.
See also homeZip().
Sets the job title of the contact to str.
See also jobTitle().
Sets the format for contact labels to that described by f.
The format is a set of pattern separated by '|'s. Each pattern is a set of space separated tokens. A token can either be _ for a space, an identifier as from indentifierKey(), or any string. The format for label will the first pattern for which all fields specified are non null for the contact.
For example:
LastName , _ FirstName | LastName | FirstName | Company
See also labelFormat().
Sets the last name of the contact to str.
See also lastName().
Sets the pronunciation of the contacts last name to str.
See also lastNamePronunciation().
Sets the manager of the contact to str.
See also manager().
Sets the middle name of the contact to str.
See also middleName().
Sets the title of the contact to str.
See also nameTitle().
Sets the nickname of the contact to str.
See also nickname().
Sets the notes about the contact to str.
Reimplemented from QPimRecord.
See also notes().
Sets the office for contact to str.
See also office().
Sets the phone number of type type to str.
If there is no default phone number set will set this number as the default phone number.
See also phoneNumber().
Sets the path for the portrait file of the contact to str.
See also portraitFile().
Sets the profession of the contact to str.
See also profession().
Sets the spouse of the contact to str.
See also spouse().
Sets the suffix of the contact to str.
See also suffix().
Returns the spouse of the contact.
See also setSpouse().
Returns the suffix of the contact.
See also setSuffix().
Returns the pixmap portrait of the contact, scaled down the thumbnail size. If there is no portrait set for the contact will return a default pixmap
Returns a rich text formatted QString of the QContact.
Reimplemented from QPimRecord.
This is an overloaded member function, provided for convenience.
Reimplemented from QPimRecord.
Write the list of contacts as vCard objects to the file specified by filename.
Returns true on success, false on fail.
See also readVCard().
This is an overloaded member function, provided for convenience.
Writes the contact as a vCard object to the file specified by filename.
Returns true on success, false on fail.
See also readVCard().
This is an overloaded member function, provided for convenience.
Writes the contact as a vCard object to the given file, which must be already open for writing.
See also readVCard().
This is an overloaded member function, provided for convenience.
Writes the contact as a vCard object to the given stream, which must be writable.
See also readVCard().
Returns false if other is identical to the contact. Otherwise return true.
Makes a copy of contact and assigns it to this QContact.
Compares to other contacts and returns true if it is equivilent. Otherwise returns false
| Copyright © 2006 Trolltech | Trademarks | Qtopia 4.1.7 |