Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OContactFields Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/ocontactfields.h>

Collaboration diagram for OContactFields:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OContactFields ()
 ~OContactFields ()
void setFieldOrder (int num, int index)
int getFieldOrder (int num, int defIndex)
void saveToRecord (OContact &)
void loadFromRecord (const OContact &)

Static Public Member Functions

static QStringList personalfields (bool sorted=true, bool translated=false)
static QStringList phonefields (bool sorted=true, bool translated=false)
static QStringList detailsfields (bool sorted=true, bool translated=false)
static QStringList fields (bool sorted=true, bool translated=false)
static QStringList trpersonalfields (bool sorted=true)
static QStringList untrpersonalfields (bool sorted=true)
static QStringList trphonefields (bool sorted=true)
static QStringList untrphonefields (bool sorted=true)
static QStringList trdetailsfields (bool sorted=true)
static QStringList untrdetailsfields (bool sorted=true)
static QStringList trfields (bool sorted=true)
static QStringList untrfields (bool sorted=true)
static QMap< int, QStringidToTrFields ()
static QMap< QString, int > trFieldsToId ()
static QMap< int, QStringidToUntrFields ()
static QMap< QString, int > untrFieldsToId ()

Private Attributes

QString fieldOrder
QString globalFieldOrder
bool changedFieldOrder

Constructor & Destructor Documentation

OContactFields::OContactFields  ) 
 

Definition at line 386 of file ocontactfields.cpp.

References DEFAULT_FIELD_ORDER, globalFieldOrder, Config::readEntry(), and Config::setGroup().

OContactFields::~OContactFields  ) 
 

Definition at line 397 of file ocontactfields.cpp.

References changedFieldOrder, globalFieldOrder, Config::setGroup(), and Config::writeEntry().


Member Function Documentation

QStringList OContactFields::detailsfields bool  sorted = true,
bool  translated = false
[static]
 

For internal use only.

Returns a list of details field names for a contact.

Definition at line 50 of file ocontactfields.cpp.

References Qtopia::Anniversary, QValueList< T >::append(), Qtopia::Assistant, Qtopia::Birthday, Qtopia::Children, Qtopia::Gender, idToTrFields(), idToUntrFields(), list, Qtopia::Manager, Qtopia::Nickname, Qtopia::Office, Qtopia::Profession, QStringList::sort(), and Qtopia::Spouse.

Referenced by fields(), trdetailsfields(), and untrdetailsfields().

QStringList OContactFields::fields bool  sorted = true,
bool  translated = false
[static]
 

For internal use only.

Returns a list of field names for a contact.

Definition at line 112 of file ocontactfields.cpp.

References QValueList< T >::append(), Qtopia::BusinessCity, Qtopia::BusinessCountry, Qtopia::BusinessState, Qtopia::BusinessStreet, Qtopia::BusinessZip, detailsfields(), Qtopia::HomeCity, Qtopia::HomeCountry, Qtopia::HomeState, Qtopia::HomeStreet, Qtopia::HomeZip, idToTrFields(), idToUntrFields(), list, personalfields(), phonefields(), and QStringList::sort().

Referenced by trfields(), and untrfields().

int OContactFields::getFieldOrder int  num,
int  defIndex
 

Get the index for combo boxes. Returns the index of combo num or defindex if none was defined..

Parameters:
num Selects the number of the combo
defIndex will be returned if none was defined (either globally in the config file, nor by the contact which was used by loadFromRecord() )

Definition at line 454 of file ocontactfields.cpp.

References fieldOrder, QString::latin1(), QChar::null, and qDebug().

QMap< int, QString > OContactFields::idToTrFields  )  [static]
 

Definition at line 222 of file ocontactfields.cpp.

References Qtopia::AddressCategory, Qtopia::AddressUid, Qtopia::Anniversary, Qtopia::Assistant, Qtopia::Birthday, Qtopia::BusinessCity, Qtopia::BusinessCountry, Qtopia::BusinessFax, Qtopia::BusinessMobile, Qtopia::BusinessPager, Qtopia::BusinessPhone, Qtopia::BusinessState, Qtopia::BusinessStreet, Qtopia::BusinessWebPage, Qtopia::BusinessZip, Qtopia::Children, Qtopia::Company, Qtopia::DefaultEmail, Qtopia::Department, Qtopia::Emails, Qtopia::FileAs, Qtopia::FirstName, Qtopia::Gender, Qtopia::HomeCity, Qtopia::HomeCountry, Qtopia::HomeFax, Qtopia::HomeMobile, Qtopia::HomePhone, Qtopia::HomeState, Qtopia::HomeStreet, Qtopia::HomeWebPage, Qtopia::HomeZip, QMap< Key, T >::insert(), Qtopia::JobTitle, Qtopia::LastName, Qtopia::Manager, Qtopia::MiddleName, Qtopia::Nickname, Qtopia::Notes, Qtopia::Office, Qtopia::Profession, Qtopia::Spouse, Qtopia::Suffix, Qtopia::Title, and tr.

Referenced by detailsfields(), fields(), personalfields(), phonefields(), and trFieldsToId().

QMap< int, QString > OContactFields::idToUntrFields  )  [static]
 

Definition at line 288 of file ocontactfields.cpp.

References Qtopia::AddressCategory, Qtopia::AddressUid, Qtopia::Anniversary, Qtopia::Assistant, Qtopia::Birthday, Qtopia::BusinessCity, Qtopia::BusinessCountry, Qtopia::BusinessFax, Qtopia::BusinessMobile, Qtopia::BusinessPager, Qtopia::BusinessPhone, Qtopia::BusinessState, Qtopia::BusinessStreet, Qtopia::BusinessWebPage, Qtopia::BusinessZip, Qtopia::Children, Qtopia::Company, Qtopia::DefaultEmail, Qtopia::Department, Qtopia::Emails, Qtopia::FileAs, Qtopia::FirstName, Qtopia::Gender, Qtopia::Groups, Qtopia::HomeCity, Qtopia::HomeCountry, Qtopia::HomeFax, Qtopia::HomeMobile, Qtopia::HomePhone, Qtopia::HomeState, Qtopia::HomeStreet, Qtopia::HomeWebPage, Qtopia::HomeZip, QMap< Key, T >::insert(), Qtopia::JobTitle, Qtopia::LastName, Qtopia::Manager, Qtopia::MiddleName, Qtopia::Nickname, Qtopia::Notes, Qtopia::Office, Qtopia::Profession, Qtopia::Spouse, Qtopia::Suffix, and Qtopia::Title.

Referenced by detailsfields(), fields(), personalfields(), phonefields(), and untrFieldsToId().

void OContactFields::loadFromRecord const OContact  ) 
 

Get Fieldorder from contact.

Definition at line 422 of file ocontactfields.cpp.

References CONTACT_FIELD_ORDER_NAME, fieldOrder, globalFieldOrder, QString::isEmpty(), QString::latin1(), and qDebug().

QStringList OContactFields::personalfields bool  sorted = true,
bool  translated = false
[static]
 

For internal use only.

Returns a list of personal field names for a contact.

Definition at line 16 of file ocontactfields.cpp.

References Qtopia::AddressCategory, Qtopia::AddressUid, QValueList< T >::append(), Qtopia::Company, Qtopia::Department, Qtopia::FileAs, Qtopia::FirstName, Qtopia::Groups, idToTrFields(), idToUntrFields(), Qtopia::JobTitle, Qtopia::LastName, list, Qtopia::MiddleName, Qtopia::Notes, QStringList::sort(), Qtopia::Suffix, and Qtopia::Title.

Referenced by fields(), trpersonalfields(), and untrpersonalfields().

QStringList OContactFields::phonefields bool  sorted = true,
bool  translated = false
[static]
 

For internal use only.

Returns a list of phone field names for a contact.

Definition at line 79 of file ocontactfields.cpp.

References QValueList< T >::append(), Qtopia::BusinessFax, Qtopia::BusinessMobile, Qtopia::BusinessPager, Qtopia::BusinessPhone, Qtopia::BusinessWebPage, Qtopia::DefaultEmail, Qtopia::Emails, Qtopia::HomeFax, Qtopia::HomeMobile, Qtopia::HomePhone, Qtopia::HomeWebPage, idToTrFields(), idToUntrFields(), list, and QStringList::sort().

Referenced by fields(), trphonefields(), and untrphonefields().

void OContactFields::saveToRecord OContact  ) 
 

Store fieldorder to contact.

Definition at line 410 of file ocontactfields.cpp.

References changedFieldOrder, CONTACT_FIELD_ORDER_NAME, fieldOrder, globalFieldOrder, QString::latin1(), and qDebug().

void OContactFields::setFieldOrder int  num,
int  index
 

Set the index for combo boxes. Sets the index of combo num.

Parameters:
num selects the number of the combo
index sets the index in the combo

Definition at line 441 of file ocontactfields.cpp.

References changedFieldOrder, fieldOrder, globalFieldOrder, QString::latin1(), QString::number(), and qDebug().

QStringList OContactFields::trdetailsfields bool  sorted = true  )  [static]
 

For internal use only.

Returns a translated list of details field names for a contact.

Definition at line 179 of file ocontactfields.cpp.

References detailsfields().

QStringList OContactFields::trfields bool  sorted = true  )  [static]
 

For internal use only.

Returns a translated list of field names for a contact.

Definition at line 208 of file ocontactfields.cpp.

References fields().

QMap< QString, int > OContactFields::trFieldsToId  )  [static]
 

Definition at line 355 of file ocontactfields.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), idToTrFields(), and QMap< Key, T >::insert().

QStringList OContactFields::trpersonalfields bool  sorted = true  )  [static]
 

For internal use only.

Returns a translated list of personal field names for a contact.

Definition at line 159 of file ocontactfields.cpp.

References personalfields().

QStringList OContactFields::trphonefields bool  sorted = true  )  [static]
 

For internal use only.

Returns a translated list of phone field names for a contact.

Definition at line 189 of file ocontactfields.cpp.

References phonefields().

QStringList OContactFields::untrdetailsfields bool  sorted = true  )  [static]
 

For internal use only.

Returns an untranslated list of details field names for a contact.

Definition at line 169 of file ocontactfields.cpp.

References detailsfields().

QStringList OContactFields::untrfields bool  sorted = true  )  [static]
 

For internal use only.

Returns an untranslated list of field names for a contact.

Definition at line 217 of file ocontactfields.cpp.

References fields().

Referenced by OContactAccessBackend_SQL::queryByExample(), and OContactAccessBackend_SQL::requestNonCustom().

QMap< QString, int > OContactFields::untrFieldsToId  )  [static]
 

Definition at line 371 of file ocontactfields.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), idToUntrFields(), and QMap< Key, T >::insert().

Referenced by OContactAccessBackend_SQL::queryByExample(), and OContactAccessBackend_SQL::requestNonCustom().

QStringList OContactFields::untrpersonalfields bool  sorted = true  )  [static]
 

For internal use only.

Returns an untranslated list of personal field names for a contact.

Definition at line 149 of file ocontactfields.cpp.

References personalfields().

QStringList OContactFields::untrphonefields bool  sorted = true  )  [static]
 

For internal use only.

Returns an untranslated list of phone field names for a contact.

Definition at line 198 of file ocontactfields.cpp.

References phonefields().


Member Data Documentation

bool OContactFields::changedFieldOrder [private]
 

Definition at line 43 of file ocontactfields.h.

Referenced by saveToRecord(), setFieldOrder(), and ~OContactFields().

QString OContactFields::fieldOrder [private]
 

Definition at line 41 of file ocontactfields.h.

Referenced by getFieldOrder(), loadFromRecord(), saveToRecord(), and setFieldOrder().

QString OContactFields::globalFieldOrder [private]
 

Definition at line 42 of file ocontactfields.h.

Referenced by loadFromRecord(), OContactFields(), saveToRecord(), setFieldOrder(), and ~OContactFields().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:42:11 2005 for OPIE by  doxygen 1.4.2