summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/pim/ocontact.cpp62
-rw-r--r--libopie/pim/ocontact.h1
-rw-r--r--libopie2/opiepim/ocontact.cpp62
-rw-r--r--libopie2/opiepim/ocontact.h1
4 files changed, 126 insertions, 0 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp
index a63753e..6f648ac 100644
--- a/libopie/pim/ocontact.cpp
+++ b/libopie/pim/ocontact.cpp
@@ -952,6 +952,68 @@ QStringList OContact::trfields()
}
/*!
+ \internal
+ Returns an untranslated list of field names for a contact.
+*/
+QStringList OContact::untrfields()
+{
+ QStringList list;
+
+ list.append( "Name Title" );
+ list.append( "First Name" );
+ list.append( "Middle Name" );
+ list.append( "Last Name" );
+ list.append( "Suffix" );
+ list.append( "File As" );
+
+ list.append( "Job Title" );
+ list.append( "Department" );
+ list.append( "Company" );
+ list.append( "Business Phone" );
+ list.append( "Business Fax" );
+ list.append( "Business Mobile" );
+
+ list.append( "Default Email" );
+ list.append( "Emails" );
+
+ list.append( "Home Phone" );
+ list.append( "Home Fax" );
+ list.append( "Home Mobile" );
+
+ list.append( "Business Street" );
+ list.append( "Business City" );
+ list.append( "Business State" );
+ list.append( "Business Zip" );
+ list.append( "Business Country" );
+ list.append( "Business Pager" );
+ list.append( "Business WebPage" );
+
+ list.append( "Office" );
+ list.append( "Profession" );
+ list.append( "Assistant" );
+ list.append( "Manager" );
+
+ list.append( "Home Street" );
+ list.append( "Home City" );
+ list.append( "Home State" );
+ list.append( "Home Zip" );
+ list.append( "Home Country" );
+ list.append( "Home Web Page" );
+
+ list.append( "Spouse" );
+ list.append( "Gender" );
+ list.append( "Birthday" );
+ list.append( "Anniversary" );
+ list.append( "Nickname" );
+ list.append( "Children" );
+
+ list.append( "Notes" );
+ list.append( "Groups" );
+
+ return list;
+}
+
+/*!
Sets the list of email address for contact to those contained in \a str.
Email address should be separated by ';'s.
*/
diff --git a/libopie/pim/ocontact.h b/libopie/pim/ocontact.h
index 756c87d..f916cf2 100644
--- a/libopie/pim/ocontact.h
+++ b/libopie/pim/ocontact.h
@@ -190,6 +190,7 @@ public:
static QStringList fields();
static QStringList trfields();
+ static QStringList untrfields();
QString toRichText() const;
QMap<int, QString> toMap() const;
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp
index a63753e..6f648ac 100644
--- a/libopie2/opiepim/ocontact.cpp
+++ b/libopie2/opiepim/ocontact.cpp
@@ -952,6 +952,68 @@ QStringList OContact::trfields()
}
/*!
+ \internal
+ Returns an untranslated list of field names for a contact.
+*/
+QStringList OContact::untrfields()
+{
+ QStringList list;
+
+ list.append( "Name Title" );
+ list.append( "First Name" );
+ list.append( "Middle Name" );
+ list.append( "Last Name" );
+ list.append( "Suffix" );
+ list.append( "File As" );
+
+ list.append( "Job Title" );
+ list.append( "Department" );
+ list.append( "Company" );
+ list.append( "Business Phone" );
+ list.append( "Business Fax" );
+ list.append( "Business Mobile" );
+
+ list.append( "Default Email" );
+ list.append( "Emails" );
+
+ list.append( "Home Phone" );
+ list.append( "Home Fax" );
+ list.append( "Home Mobile" );
+
+ list.append( "Business Street" );
+ list.append( "Business City" );
+ list.append( "Business State" );
+ list.append( "Business Zip" );
+ list.append( "Business Country" );
+ list.append( "Business Pager" );
+ list.append( "Business WebPage" );
+
+ list.append( "Office" );
+ list.append( "Profession" );
+ list.append( "Assistant" );
+ list.append( "Manager" );
+
+ list.append( "Home Street" );
+ list.append( "Home City" );
+ list.append( "Home State" );
+ list.append( "Home Zip" );
+ list.append( "Home Country" );
+ list.append( "Home Web Page" );
+
+ list.append( "Spouse" );
+ list.append( "Gender" );
+ list.append( "Birthday" );
+ list.append( "Anniversary" );
+ list.append( "Nickname" );
+ list.append( "Children" );
+
+ list.append( "Notes" );
+ list.append( "Groups" );
+
+ return list;
+}
+
+/*!
Sets the list of email address for contact to those contained in \a str.
Email address should be separated by ';'s.
*/
diff --git a/libopie2/opiepim/ocontact.h b/libopie2/opiepim/ocontact.h
index 756c87d..f916cf2 100644
--- a/libopie2/opiepim/ocontact.h
+++ b/libopie2/opiepim/ocontact.h
@@ -190,6 +190,7 @@ public:
static QStringList fields();
static QStringList trfields();
+ static QStringList untrfields();
QString toRichText() const;
QMap<int, QString> toMap() const;