libopie PIM API Documentation

OContactFields Class Reference

#include <ocontactfields.h>

Collaboration diagram for OContactFields:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OContactFields ()
 ~OContactFields ()
void setFieldOrder (int num, int index)
 Set the index for combo boxes.

int getFieldOrder (int num, int defIndex)
 Get the index for combo boxes.

void saveToRecord (OContact &)
 Store fieldorder to contact.

void loadFromRecord (const OContact &)
 Get Fieldorder from contact.


Static Public Member Functions

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

Constructor & Destructor Documentation

OContactFields::OContactFields  ) 
 

Definition at line 386 of file ocontactfields.cpp.

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

OContactFields::~OContactFields  ) 
 

Definition at line 397 of file ocontactfields.cpp.

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


Member Function Documentation

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 QString::number().

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 QString::latin1().

void OContactFields::saveToRecord OContact  ) 
 

Store fieldorder to contact.

Definition at line 410 of file ocontactfields.cpp.

References CONTACT_FIELD_ORDER_NAME, QString::latin1(), and Qtopia::Record::setCustomField().

void OContactFields::loadFromRecord const OContact  ) 
 

Get Fieldorder from contact.

Definition at line 422 of file ocontactfields.cpp.

References CONTACT_FIELD_ORDER_NAME, Qtopia::Record::customField(), OContact::fullName(), QString::isEmpty(), and QString::latin1().

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

Definition at line 16 of file ocontactfields.cpp.

References QValueList::append(), idToTrFields(), idToUntrFields(), and QStringList::sort().

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

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

Definition at line 79 of file ocontactfields.cpp.

References QValueList::append(), idToTrFields(), idToUntrFields(), and QStringList::sort().

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

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

Definition at line 50 of file ocontactfields.cpp.

References QValueList::append(), idToTrFields(), idToUntrFields(), and QStringList::sort().

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

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

Definition at line 112 of file ocontactfields.cpp.

References QValueList::append(), detailsfields(), idToTrFields(), idToUntrFields(), personalfields(), phonefields(), and QStringList::sort().

Referenced by trfields(), and untrfields().

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

Definition at line 159 of file ocontactfields.cpp.

References personalfields().

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

Definition at line 149 of file ocontactfields.cpp.

References personalfields().

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

Definition at line 189 of file ocontactfields.cpp.

References phonefields().

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

Definition at line 198 of file ocontactfields.cpp.

References phonefields().

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

Definition at line 179 of file ocontactfields.cpp.

References detailsfields().

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

Definition at line 169 of file ocontactfields.cpp.

References detailsfields().

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

Definition at line 208 of file ocontactfields.cpp.

References fields().

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

Definition at line 217 of file ocontactfields.cpp.

References fields().

Referenced by OContactAccessBackend_SQL::queryByExample().

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

Definition at line 222 of file ocontactfields.cpp.

References QMap::insert().

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

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

Definition at line 355 of file ocontactfields.cpp.

References QMap::begin(), QMap::end(), idToTrFields(), and QMap::insert().

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

Definition at line 288 of file ocontactfields.cpp.

References QMap::insert().

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

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

Definition at line 371 of file ocontactfields.cpp.

References QMap::begin(), QMap::end(), idToUntrFields(), and QMap::insert().

Referenced by OContactAccessBackend_SQL::queryByExample().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:11 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001