#include </home/clem/local/src/opie/library/backend/contact.h>
Inheritance diagram for Contact:


This data includes information the name of the person, contact information, and business information such as deparment and job title.
Definition at line 36 of file contact.h.
|
|
For internal use only.
|
|
|
Creates a new, empty contact. Definition at line 53 of file contact.cpp. |
|
|
For internal use only. Creates a new contact. The properties of the contact are set from fromMap. Definition at line 63 of file contact.cpp. References Qtopia::AddressCategory, Qtopia::AddressUid, find(), Qtopia::Record::idsFromString(), QString::isEmpty(), mMap, Qtopia::Record::setCategories(), setUid(), QString::toInt(), and uidGen(). |
|
|
Destroys a contact. Definition at line 83 of file contact.cpp. |
|
|
Returns the anniversary of the contact. Definition at line 177 of file contact.h. References Qtopia::Anniversary. Referenced by createVObject(), and toRichText(). |
|
|
Returns the assistant of the contact. Definition at line 164 of file contact.h. References Qtopia::Assistant. Referenced by createVObject(), and toRichText(). |
|
|
Returns the birthday of the contact. Definition at line 176 of file contact.h. References Qtopia::Birthday. Referenced by createVObject(), and toRichText(). |
|
|
Returns the business city of the contact. Definition at line 151 of file contact.h. References Qtopia::BusinessCity. Referenced by createVObject(), displayBusinessAddress(), and toRichText(). |
|
|
Returns the business country of the contact. Definition at line 154 of file contact.h. References Qtopia::BusinessCountry. Referenced by createVObject(), displayBusinessAddress(), and toRichText(). |
|
|
Returns the business fax number of the contact. Definition at line 160 of file contact.h. References Qtopia::BusinessFax. Referenced by createVObject(), and toRichText(). |
|
|
Returns the business mobile number of the contact. Definition at line 161 of file contact.h. References Qtopia::BusinessMobile. Referenced by createVObject(), and toRichText(). |
|
|
Returns the business pager number of the contact. Definition at line 162 of file contact.h. References Qtopia::BusinessPager. Referenced by createVObject(), and toRichText(). |
|
|
Returns the business phone number of the contact. Definition at line 159 of file contact.h. References Qtopia::BusinessPhone. Referenced by createVObject(), and toRichText(). |
|
|
Returns the business state of the contact. Definition at line 152 of file contact.h. References Qtopia::BusinessState. Referenced by createVObject(), displayBusinessAddress(), and toRichText(). |
|
|
Returns the business street address of the contact. Definition at line 150 of file contact.h. References Qtopia::BusinessStreet. Referenced by createVObject(), displayBusinessAddress(), and toRichText(). |
|
|
Returns the business webpage of the contact. Definition at line 155 of file contact.h. References Qtopia::BusinessWebPage. Referenced by createVObject(), and toRichText(). |
|
|
Returns the business zip of the contact. Definition at line 153 of file contact.h. References Qtopia::BusinessZip. Referenced by createVObject(), displayBusinessAddress(), and toRichText(). |
|
|
Returns the children of the contact. Definition at line 179 of file contact.h. References Qtopia::Children. Referenced by createVObject(). |
|
|
Returns a list of the names of the children of the contact. Definition at line 727 of file contact.cpp. References Qtopia::Children, find(), and QStringList::split(). |
|
|
Clears the email list. Definition at line 283 of file contact.h. References Qtopia::DefaultEmail, Qtopia::Emails, mMap, and QMap< Key, T >::remove(). Referenced by removeEmail(). |
|
|
Returns the company for the contact. Definition at line 149 of file contact.h. References Qtopia::Company. Referenced by createVObject(), and toRichText(). |
|
|
Returns the default email address of the contact. Definition at line 128 of file contact.h. References Qtopia::DefaultEmail. Referenced by ComposeMail::ComposeMail(), createVObject(), insertEmail(), and removeEmail(). |
|
|
Returns the department for the contact. Definition at line 157 of file contact.h. References Qtopia::Department. Referenced by createVObject(), and toRichText(). |
|
||||||||||||||||||||||||
|
For internal use only.
Definition at line 647 of file contact.cpp. References QString::isEmpty(), and s. Referenced by displayBusinessAddress(), and displayHomeAddress(). |
|
|
Multi line string containing all non-empty address info in the form Street City, State Zip Country Definition at line 672 of file contact.cpp. References businessCity(), businessCountry(), businessState(), businessStreet(), businessZip(), and displayAddress(). |
|
|
Multi line string containing all non-empty address info in the form Street City, State Zip Country Definition at line 682 of file contact.cpp. References displayAddress(), homeCity(), homeCountry(), homeState(), homeStreet(), and homeZip(). |
|
|
Returns a list of email addresses belonging to the contact, including the default email address. Definition at line 759 of file contact.cpp. References QValueList< T >::begin(), emails(), emailSeparator(), QValueList< T >::end(), QString::isEmpty(), l, qDebug(), and QStringList::split(). Referenced by ComposeMail::ComposeMail(), createVObject(), and removeEmail(). |
|
|
Returns the list of email address for a contact separated by ';'s in a single string. Definition at line 215 of file contact.h. References Qtopia::Emails. Referenced by emailList(), removeEmail(), and toRichText(). |
|
|
Definition at line 212 of file contact.h. Referenced by emailList(), insertEmail(), and removeEmail(). |
|
|
For internal use only.
|
|
|
For internal use only. Returns the list of fields belonging to a contact Definition at line 833 of file contact.cpp. References QValueList< T >::append(), and list. Referenced by save(). |
|
|
Returns the string the contact is filed as. Definition at line 125 of file contact.h. References Qtopia::FileAs. |
|
|
For internal use only.
Definition at line 639 of file contact.cpp. References mMap. Referenced by childrenList(), Contact(), fullName(), insertEmail(), removeEmail(), and setFileAs(). |
|
|
Returns the first name of the contact. Definition at line 121 of file contact.h. References Qtopia::FirstName. Referenced by ComposeMail::ComposeMail(), createVObject(), fullName(), and setFileAs(). |
|
|
Returns the full name of the contact Definition at line 692 of file contact.cpp. References find(), Qtopia::FirstName, firstName(), QString::isEmpty(), Qtopia::LastName, lastName(), Qtopia::MiddleName, middleName(), name, QString::simplifyWhiteSpace(), Qtopia::Suffix, suffix(), Qtopia::Title, and title(). Referenced by createVObject(), SyncAuthentication::ownerName(), IRCServer::realname(), and toRichText(). |
|
|
Returns the gender of the contact. Definition at line 175 of file contact.h. References Qtopia::Gender. Referenced by createVObject(), and toRichText(). |
|
|
For internal use only.
|
|
|
For internal use only. Returns the groups for the contact. Definition at line 184 of file contact.h. References Qtopia::Groups. |
|
|
Returns the home city of the contact. Definition at line 133 of file contact.h. References Qtopia::HomeCity. Referenced by createVObject(), displayHomeAddress(), and toRichText(). |
|
|
Returns the home country of the contact. Definition at line 136 of file contact.h. References Qtopia::HomeCountry. Referenced by createVObject(), displayHomeAddress(), and toRichText(). |
|
|
Returns the home fax number of the contact. Definition at line 138 of file contact.h. References Qtopia::HomeFax. Referenced by createVObject(), and toRichText(). |
|
|
Returns the home mobile number of the contact. Definition at line 139 of file contact.h. References Qtopia::HomeMobile. Referenced by createVObject(), and toRichText(). |
|
|
Returns the home phone number of the contact. Definition at line 137 of file contact.h. References Qtopia::HomePhone. Referenced by createVObject(), and toRichText(). |
|
|
Returns the home state of the contact. Definition at line 134 of file contact.h. References Qtopia::HomeState. Referenced by createVObject(), displayHomeAddress(), and toRichText(). |
|
|
Returns the home street address of the contact. Definition at line 132 of file contact.h. References Qtopia::HomeStreet. Referenced by createVObject(), displayHomeAddress(), and toRichText(). |
|
|
Returns the home webpage of the contact. Definition at line 140 of file contact.h. References Qtopia::HomeWebPage. Referenced by createVObject(), and toRichText(). |
|
|
Returns the home zip of the contact. Definition at line 135 of file contact.h. References Qtopia::HomeZip. Referenced by createVObject(), displayHomeAddress(), and toRichText(). |
|
||||||||||||
|
For internal use only.
Definition at line 615 of file contact.cpp. References QMap< Key, T >::insert(), QString::isEmpty(), mMap, QMap< Key, T >::remove(), and QString::stripWhiteSpace(). |
|
|
Insert email into the email list. Ensures email can only be added once. If there is no default email address set, it sets it to the email. Definition at line 234 of file contact.h. References QString::contains(), defaultEmail(), Qtopia::Emails, emailSeparator(), find(), QString::isEmpty(), replace(), setDefaultEmail(), and QString::simplifyWhiteSpace(). Referenced by insertEmails(), parseVObject(), and setDefaultEmail(). |
|
|
Appends the emailList to the exiting email list Definition at line 300 of file contact.h. References QValueList< T >::begin(), QValueList< T >::end(), and insertEmail(). |
|
|
Returns the job title of the contact. Definition at line 156 of file contact.h. References Qtopia::JobTitle. Referenced by createVObject(), and toRichText(). |
|
|
Returns the last name of the contact. Definition at line 123 of file contact.h. References Qtopia::LastName. Referenced by ComposeMail::ComposeMail(), createVObject(), fullName(), and setFileAs(). |
|
|
Returns the manager of the contact. Definition at line 165 of file contact.h. References Qtopia::Manager. Referenced by createVObject(), and toRichText(). |
|
|
Returns TRUE if the contact matches the regular expression regexp. Otherwise returns FALSE. Definition at line 1386 of file contact.cpp. |
|
|
Returns the middle name of the contact. Definition at line 122 of file contact.h. References Qtopia::MiddleName. Referenced by createVObject(), fullName(), and setFileAs(). |
|
|
Returns the nickname of the contact. Definition at line 178 of file contact.h. References Qtopia::Nickname. Referenced by createVObject(), and toRichText(). |
|
|
Returns the notes relating to the the contact. Definition at line 183 of file contact.h. References Qtopia::Notes. Referenced by createVObject(), and toRichText(). |
|
|
Returns the office for the contact. Definition at line 158 of file contact.h. References Qtopia::Office. Referenced by createVObject(), and toRichText(). |
|
|
Returns the profession of the contact. Definition at line 163 of file contact.h. References Qtopia::Profession. Referenced by createVObject(), and toRichText(). |
|
|
Returns the set of contacts read as VCards from the file filename. Definition at line 1362 of file contact.cpp. References QValueList< T >::append(), parseVObject(), qDebug(), t, and QString::utf8(). Referenced by Password::authenticate(), ComposeMail::ComposeMail(), SyncAuthentication::ownerName(), and IRCServer::realname(). |
|
|
Removes the email from the email list. If the default email was email, then the default email address is assigned to the first email in the email list Definition at line 256 of file contact.h. References clearEmails(), QString::contains(), QValueList< T >::count(), defaultEmail(), emailList(), emails(), Qtopia::Emails, emailSeparator(), find(), QValueList< T >::first(), QStringList::join(), QValueList< T >::remove(), replace(), setDefaultEmail(), and QString::simplifyWhiteSpace(). |
|
||||||||||||
|
For internal use only.
Definition at line 627 of file contact.cpp. References QString::isEmpty(), mMap, QMap< Key, T >::remove(), QMap< Key, T >::replace(), and QString::stripWhiteSpace(). Referenced by insertEmail(), removeEmail(), setChildren(), setDefaultEmail(), setEmails(), and setFileAs(). |
|
|
For internal use only. Appends the contact information to buf. Definition at line 805 of file contact.cpp. References Qtopia::AddressCategory, Qtopia::AddressUid, QMap< Key, T >::begin(), Qtopia::Record::categories(), Qtopia::Record::customToXml(), QMap< Key, T >::end(), Qtopia::escapeString(), fields(), Qtopia::Record::idsToString(), QString::isEmpty(), mMap, QString::number(), and Qtopia::Record::uid(). |
|
||||||||||||
|
For internal use only.
|
|
|
Sets the anniversary of the contact to str. Definition at line 100 of file contact.h. References Qtopia::Anniversary, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the assistant of the contact to str. Definition at line 93 of file contact.h. References Qtopia::Assistant, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the birthday for the contact to str. Definition at line 99 of file contact.h. References Qtopia::Birthday, and KateCommands::replace(). |
|
|
Sets the business city of the contact to str. Definition at line 80 of file contact.h. References Qtopia::BusinessCity, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business country of the contact to str. Definition at line 83 of file contact.h. References Qtopia::BusinessCountry, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business fax number of the contact to str. Definition at line 89 of file contact.h. References Qtopia::BusinessFax, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business mobile phone number of the contact to str. Definition at line 90 of file contact.h. References Qtopia::BusinessMobile, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business pager number of the contact to str. Definition at line 91 of file contact.h. References Qtopia::BusinessPager, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business phone number of the contact to str. Definition at line 88 of file contact.h. References Qtopia::BusinessPhone, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business state of the contact to str. Definition at line 81 of file contact.h. References Qtopia::BusinessState, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business street address of the contact to str. Definition at line 79 of file contact.h. References Qtopia::BusinessStreet, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business webpage of the contact to str. Definition at line 84 of file contact.h. References Qtopia::BusinessWebPage, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the business zip code of the contact to str. Definition at line 82 of file contact.h. References Qtopia::BusinessZip, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the list of children for the contact to those contained in str. Definition at line 967 of file contact.cpp. References Qtopia::Children, and replace(). Referenced by parseVObject(). |
|
|
Sets the company for contact to str. Definition at line 78 of file contact.h. References Qtopia::Company, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the default email of the contact to str. Definition at line 288 of file contact.h. References Qtopia::DefaultEmail, insertEmail(), QString::isEmpty(), and replace(). Referenced by insertEmail(), removeEmail(), and setEmails(). |
|
|
Sets the department for contact to str. Definition at line 86 of file contact.h. References Qtopia::Department, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the list of email address for contact to those contained in str. Email address should be separated by ';'s. Definition at line 957 of file contact.cpp. References Qtopia::Emails, QString::null, replace(), and setDefaultEmail(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Generates the string for the contact to be filed as from the first, middle and last name of the contact. Definition at line 780 of file contact.cpp. References Qtopia::FileAs, find(), Qtopia::FirstName, firstName(), QString::isEmpty(), Qtopia::LastName, lastName(), Qtopia::MiddleName, middleName(), and replace(). |
|
|
Sets the contact to filed as str. Definition at line 55 of file contact.h. References Qtopia::FileAs, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the first name of the contact to str. Definition at line 51 of file contact.h. References Qtopia::FirstName, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the gender of the contact to str. Definition at line 98 of file contact.h. References Qtopia::Gender, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home city of the contact to str. Definition at line 68 of file contact.h. References Qtopia::HomeCity, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home country of the contact to str. Definition at line 71 of file contact.h. References Qtopia::HomeCountry, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home fax number of the contact to str. Definition at line 73 of file contact.h. References Qtopia::HomeFax, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home mobile phone number of the contact to str. Definition at line 74 of file contact.h. References Qtopia::HomeMobile, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home phone number of the contact to str. Definition at line 72 of file contact.h. References Qtopia::HomePhone, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home state of the contact to str. Definition at line 69 of file contact.h. References Qtopia::HomeState, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home street address of the contact to str. Definition at line 67 of file contact.h. References Qtopia::HomeStreet, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home webpage of the contact to str. Definition at line 75 of file contact.h. References Qtopia::HomeWebPage, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the home zip code of the contact to str. Definition at line 70 of file contact.h. References Qtopia::HomeZip, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the job title of the contact to str. Definition at line 85 of file contact.h. References Qtopia::JobTitle, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the last name of the contact to str. Definition at line 53 of file contact.h. References Qtopia::LastName, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the manager of the contact to str. Definition at line 94 of file contact.h. References Qtopia::Manager, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the middle name of the contact to str. Definition at line 52 of file contact.h. References Qtopia::MiddleName, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the nickname of the contact to str. Definition at line 101 of file contact.h. References Qtopia::Nickname, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the notes about the contact to str. Definition at line 105 of file contact.h. References Qtopia::Notes, and KateCommands::replace(). |
|
|
Sets the office for contact to str. Definition at line 87 of file contact.h. References Qtopia::Office, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the profession of the contact to str. Definition at line 92 of file contact.h. References Qtopia::Profession, and KateCommands::replace(). Referenced by parseVObject(). |
|
|
Sets the spouse of the contact to str. Definition at line 97 of file contact.h. References KateCommands::replace(), and Qtopia::Spouse. Referenced by parseVObject(). |
|
|
Sets the suffix of the contact to str. Definition at line 54 of file contact.h. References KateCommands::replace(), and Qtopia::Suffix. Referenced by parseVObject(). |
|
|
Sets the title of the contact to str. Definition at line 50 of file contact.h. References KateCommands::replace(), and Qtopia::Title. Referenced by parseVObject(). |
|
|
For internal use only. Sets the uid for this record to id. Reimplemented from Qtopia::Record. Definition at line 203 of file contact.h. References Qtopia::AddressUid, QString::number(), and KateCommands::replace(). Referenced by Contact(). |
|
|
Returns the spouse of the contact. Definition at line 174 of file contact.h. References Qtopia::Spouse. Referenced by createVObject(), and toRichText(). |
|
|
Returns the suffix of the contact. Definition at line 124 of file contact.h. References Qtopia::Suffix. Referenced by createVObject(), and fullName(). |
|
|
Returns the title of the contact. Definition at line 120 of file contact.h. References Qtopia::Title. Referenced by createVObject(), and fullName(). |
|
|
For internal use only.
Definition at line 437 of file contact.cpp. References Qtopia::AddressCategory, Qtopia::Record::categories(), Qtopia::Record::idsToString(), QMap< Key, T >::insert(), QString::isEmpty(), and mMap. |
|
|
Returns a rich text formatted QString representing the contents the contact. Definition at line 449 of file contact.cpp. References anniversary(), assistant(), birthday(), businessCity(), businessCountry(), businessFax(), businessMobile(), businessPager(), businessPhone(), businessState(), businessStreet(), businessWebpage(), businessZip(), company(), department(), emails(), Qtopia::escapeString(), fullName(), gender(), homeCity(), homeCountry(), homeFax(), homeMobile(), homePhone(), homeState(), homeStreet(), homeWebpage(), homeZip(), QString::isEmpty(), jobTitle(), manager(), nickname(), notes(), office(), profession(), spouse(), str, text, QString::toInt(), and tr. Referenced by OwnerDlg::OwnerDlg(). |
|
|
For internal use only. Returns a translated list of field names for a contact. Definition at line 895 of file contact.cpp. References QValueList< T >::append(), list, and tr. |
|
|
Implements Qtopia::Record. Definition at line 227 of file contact.h. References CategoryGroup::sUidGen. Referenced by Contact(). |
|
||||||||||||
|
writes contact as a VCard to the file filename. Definition at line 1344 of file contact.cpp. References createVObject(), QFileDirect::directHandle(), f, IO_WriteOnly, QFile::open(), qWarning(), QString::utf8(), and writeVObject(). |
|
||||||||||||
|
Writes the list of contacts as a set of VCards to the file filename. Definition at line 1324 of file contact.cpp. References QValueList< T >::begin(), createVObject(), QFileDirect::directHandle(), QValueList< T >::end(), f, IO_WriteOnly, QFile::open(), qWarning(), QString::utf8(), and writeVObject(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from Qtopia::Record. |
|
|
Definition at line 229 of file contact.h. Referenced by clearEmails(), Contact(), find(), insert(), replace(), save(), and toMap(). |
|
|
|
1.4.2