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

AbEditor Class Reference

#include </home/clem/local/src/opie/core/pim/addressbook/abeditor.h>

Collaboration diagram for AbEditor:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotNote ()
void setEntry (const OContact &entry)

Public Member Functions

 AbEditor (const OContact &entry, const QValueList< int > *newOrdedValues, QStringList *slNewOrdered, QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~AbEditor ()
void loadFields ()
void setNameFocus ()
OContact entry () const

Protected Slots

void accept ()

Private Member Functions

void init ()
void initMap ()
void saveEntry ()
bool isEmpty ()

Private Attributes

QDialog * dlgNote
QLabel * lblNote
QMultiLineEdit * txtNote
OContact ent
QScrollView * svPage
QLineEdit * firstEdit
QLineEdit * lastEdit
QLineEdit * middleEdit
QComboBox * genderCombo
QList< QLineEdit > listValue
QList< QLabel > listName
const QValueList< int > * orderedValues
QStringListslOrdered
CategorySelectcmbCat

Constructor & Destructor Documentation

AbEditor::AbEditor const OContact entry,
const QValueList< int > *  newOrdedValues,
QStringList slNewOrdered,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 54 of file abeditor.cpp.

References init(), initMap(), and setEntry().

AbEditor::~AbEditor  ) 
 

Definition at line 66 of file abeditor.cpp.


Member Function Documentation

void AbEditor::accept  )  [protected, slot]
 

Definition at line 330 of file abeditor.cpp.

References isEmpty(), and saveEntry().

OContact AbEditor::entry  )  const [inline]
 

Definition at line 47 of file abeditor.h.

References ent.

void AbEditor::init  )  [private]
 

Definition at line 70 of file abeditor.cpp.

References QValueList< T >::begin(), cmbCat, QValueList< T >::count(), dlgNote, QValueList< T >::end(), firstEdit, genderCombo, i, l, lastEdit, listName, listValue, middleEdit, slOrdered, slotNote(), svPage, tr, TRUE, and txtNote.

Referenced by AbEditor().

void AbEditor::initMap  )  [private]
 

Definition at line 148 of file abeditor.cpp.

Referenced by AbEditor().

bool AbEditor::isEmpty  )  [private]
 

Definition at line 340 of file abeditor.cpp.

References containsAlphaNum(), firstEdit, QString::isEmpty(), lastEdit, listValue, t, and txtNote.

Referenced by accept().

void AbEditor::loadFields  ) 
 

Definition at line 176 of file abeditor.cpp.

References QValueList< T >::begin(), listName, and slOrdered.

void AbEditor::saveEntry  )  [private]
 

Definition at line 366 of file abeditor.cpp.

References Qtopia::Anniversary, Qtopia::Assistant, QValueList< T >::begin(), Qtopia::Birthday, Qtopia::BusinessCity, Qtopia::BusinessCountry, Qtopia::BusinessFax, Qtopia::BusinessMobile, Qtopia::BusinessPager, Qtopia::BusinessPhone, Qtopia::BusinessState, Qtopia::BusinessStreet, Qtopia::BusinessWebPage, Qtopia::BusinessZip, Qtopia::Children, cmbCat, Qtopia::Company, CategorySelect::currentCategories(), Qtopia::DefaultEmail, Qtopia::Department, Qtopia::Emails, ent, firstEdit, OContact::firstName(), genderCombo, Qtopia::HomeCity, Qtopia::HomeCountry, Qtopia::HomeFax, Qtopia::HomeMobile, Qtopia::HomePhone, Qtopia::HomeState, Qtopia::HomeStreet, Qtopia::HomeWebPage, Qtopia::HomeZip, i, QString::isNull(), Qtopia::JobTitle, lastEdit, OContact::lastName(), listValue, Qtopia::Manager, middleEdit, Qtopia::MiddleName, OContact::middleName(), Qtopia::Nickname, QString::number(), Qtopia::Office, orderedValues, parseEmailFrom(), Qtopia::Profession, OContact::setAnniversary(), OContact::setAssistant(), OContact::setBirthday(), OContact::setBusinessCity(), OContact::setBusinessCountry(), OContact::setBusinessFax(), OContact::setBusinessMobile(), OContact::setBusinessPager(), OContact::setBusinessPhone(), OContact::setBusinessState(), OContact::setBusinessStreet(), OContact::setBusinessWebpage(), OContact::setBusinessZip(), Qtopia::Record::setCategories(), OContact::setChildren(), OContact::setCompany(), OContact::setDefaultEmail(), OContact::setDepartment(), OContact::setEmails(), OContact::setFileAs(), OContact::setFirstName(), OContact::setGender(), OContact::setHomeCity(), OContact::setHomeCountry(), OContact::setHomeFax(), OContact::setHomeMobile(), OContact::setHomePhone(), OContact::setHomeState(), OContact::setHomeStreet(), OContact::setHomeWebpage(), OContact::setHomeZip(), OContact::setJobTitle(), OContact::setLastName(), OContact::setManager(), OContact::setMiddleName(), OContact::setNickname(), OContact::setNotes(), OContact::setOffice(), OContact::setProfession(), OContact::setSpouse(), OContact::setSuffix(), OContact::setTitle(), Qtopia::Spouse, str, Qtopia::Suffix, Qtopia::Title, and txtNote.

Referenced by accept().

void AbEditor::setEntry const OContact entry  )  [slot]
 

Definition at line 185 of file abeditor.cpp.

References OContact::anniversary(), Qtopia::Anniversary, OContact::assistant(), Qtopia::Assistant, QValueList< T >::begin(), OContact::birthday(), Qtopia::Birthday, OContact::businessCity(), Qtopia::BusinessCity, OContact::businessCountry(), Qtopia::BusinessCountry, OContact::businessFax(), Qtopia::BusinessFax, OContact::businessMobile(), Qtopia::BusinessMobile, OContact::businessPager(), Qtopia::BusinessPager, OContact::businessPhone(), Qtopia::BusinessPhone, OContact::businessState(), Qtopia::BusinessState, OContact::businessStreet(), Qtopia::BusinessStreet, OContact::businessWebpage(), Qtopia::BusinessWebPage, OContact::businessZip(), Qtopia::BusinessZip, Qtopia::Record::categories(), OContact::children(), Qtopia::Children, cmbCat, OContact::company(), Qtopia::Company, OContact::defaultEmail(), Qtopia::DefaultEmail, OContact::department(), Qtopia::Department, OContact::emails(), Qtopia::Emails, QValueList< T >::end(), ent, firstEdit, OContact::firstName(), OContact::gender(), genderCombo, OContact::homeCity(), Qtopia::HomeCity, OContact::homeCountry(), Qtopia::HomeCountry, OContact::homeFax(), Qtopia::HomeFax, OContact::homeMobile(), Qtopia::HomeMobile, OContact::homePhone(), Qtopia::HomePhone, OContact::homeState(), Qtopia::HomeState, OContact::homeStreet(), Qtopia::HomeStreet, OContact::homeWebpage(), Qtopia::HomeWebPage, OContact::homeZip(), Qtopia::HomeZip, OContact::jobTitle(), Qtopia::JobTitle, lastEdit, OContact::lastName(), listValue, OContact::manager(), Qtopia::Manager, OContact::middleName(), Qtopia::MiddleName, OContact::nickname(), Qtopia::Nickname, OContact::notes(), OContact::office(), Qtopia::Office, orderedValues, parseEmailTo(), OContact::profession(), Qtopia::Profession, CategorySelect::setCategories(), OContact::spouse(), Qtopia::Spouse, OContact::suffix(), Qtopia::Suffix, OContact::title(), Qtopia::Title, QString::toInt(), tr, and txtNote.

Referenced by AbEditor().

void AbEditor::setNameFocus  ) 
 

Definition at line 539 of file abeditor.cpp.

References firstEdit.

void AbEditor::slotNote  )  [slot]
 

Definition at line 531 of file abeditor.cpp.

References dlgNote, ent, QPEApplication::execDialog(), OContact::notes(), and txtNote.

Referenced by init().


Member Data Documentation

CategorySelect* AbEditor::cmbCat [private]
 

Definition at line 76 of file abeditor.h.

Referenced by init(), saveEntry(), and setEntry().

QDialog* AbEditor::dlgNote [private]
 

Definition at line 63 of file abeditor.h.

Referenced by init(), and slotNote().

OContact AbEditor::ent [private]
 

Definition at line 66 of file abeditor.h.

Referenced by entry(), saveEntry(), setEntry(), and slotNote().

QLineEdit* AbEditor::firstEdit [private]
 

Definition at line 68 of file abeditor.h.

Referenced by init(), isEmpty(), saveEntry(), setEntry(), and setNameFocus().

QComboBox* AbEditor::genderCombo [private]
 

Definition at line 71 of file abeditor.h.

Referenced by init(), saveEntry(), and setEntry().

QLineEdit* AbEditor::lastEdit [private]
 

Definition at line 69 of file abeditor.h.

Referenced by init(), isEmpty(), saveEntry(), and setEntry().

QLabel* AbEditor::lblNote [private]
 

Definition at line 64 of file abeditor.h.

QList<QLabel> AbEditor::listName [private]
 

Definition at line 73 of file abeditor.h.

Referenced by init(), and loadFields().

QList<QLineEdit> AbEditor::listValue [private]
 

Definition at line 72 of file abeditor.h.

Referenced by init(), isEmpty(), saveEntry(), and setEntry().

QLineEdit* AbEditor::middleEdit [private]
 

Definition at line 70 of file abeditor.h.

Referenced by init(), and saveEntry().

const QValueList<int>* AbEditor::orderedValues [private]
 

Definition at line 74 of file abeditor.h.

Referenced by saveEntry(), and setEntry().

QStringList* AbEditor::slOrdered [private]
 

Definition at line 75 of file abeditor.h.

Referenced by init(), and loadFields().

QScrollView* AbEditor::svPage [private]
 

Definition at line 67 of file abeditor.h.

Referenced by init().

QMultiLineEdit* AbEditor::txtNote [private]
 

Definition at line 65 of file abeditor.h.

Referenced by init(), isEmpty(), saveEntry(), setEntry(), and slotNote().


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