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

AddressbookWindow Class Reference

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

Inheritance diagram for AddressbookWindow:

Inheritance graph
[legend]
Collaboration diagram for AddressbookWindow:

Collaboration graph
[legend]
List of all members.

Public Types

enum  EntryMode { NewEntry = 0, EditEntry }

Public Slots

void flush ()
void reload ()
void appMessage (const QCString &, const QByteArray &)
void setDocument (const QString &)

Public Member Functions

 AddressbookWindow (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~AddressbookWindow ()

Static Public Member Functions

static QString appName ()

Protected Slots

int create ()
bool remove (int uid)
void beam (int uid)
void show (int uid)
void edit (int uid)
void add (const Opie::OPimRecord &)

Protected Member Functions

void resizeEvent (QResizeEvent *e)
void editPersonal ()
void editEntry (EntryMode)
void closeEvent (QCloseEvent *e)
bool save ()

Private Types

enum  Panes { paneList = 0, paneView, paneEdit }

Private Slots

void slotItemNew ()
void slotItemEdit ()
void slotItemDuplicate ()
void slotItemDelete ()
void slotItemBeam ()
void slotItemFind ()
void slotConfigure ()
void importvCard ()
void exportvCard ()
void slotViewBack ()
void slotPersonalView ()
void writeMail ()
void beamDone (Ir *)
void slotSetCategory (const QString &category)
void slotSetLetter (char)
void slotSetFont (int)
void slotShowFind (bool show)
void slotFind ()
void slotNotFound ()
void slotWrapAround ()
void slotViewSwitched (int)
void slotListView ()
void slotCardView ()

Private Attributes

QToolBar * listTools
ContactEditorabEditor
LetterPickerpLabel
AbViewm_abView
QWidget * m_listContainer
OFloatBarm_searchBar
QLineEdit * m_searchEdit
QAction * m_actionPersonal
QAction * m_actionMail
int viewMargin
bool syncing
QFont * defaultFont
int m_curFontSize
bool isLoading
AbConfig m_config
int active_view

Member Enumeration Documentation

enum AddressbookWindow::EntryMode
 

Enumeration values:
NewEntry 
EditEntry 

Definition at line 51 of file addressbook.h.

enum AddressbookWindow::Panes [private]
 

Enumeration values:
paneList 
paneView 
paneEdit 

Definition at line 112 of file addressbook.h.


Constructor & Destructor Documentation

AddressbookWindow::AddressbookWindow QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 54 of file addressbook.cpp.

References appMessage(), AbConfig::category(), Opie::OPimMainWindow::categorySelected(), defaultFont, exportvCard(), flush(), AbConfig::fontSize(), importvCard(), Opie::OPimMainWindow::insertItemMenuItems(), Opie::OPimMainWindow::insertViewMenuItems(), isLoading, items, AbConfig::load(), Opie::Core::OResource::loadPixmap(), m_abView, m_actionMail, m_actionPersonal, m_config, m_curFontSize, m_listContainer, m_searchBar, m_searchEdit, QString::null, AbConfig::orderList(), pLabel, qApp, reload(), Opie::OPimMainWindow::setViewCategory(), slotFind(), slotNotFound(), slotPersonalView(), slotSetCategory(), slotSetFont(), slotSetLetter(), slotShowFind(), slotViewSwitched(), Opie::Core::OResource::SmallIcon, Top(), tr, and writeMail().

AddressbookWindow::~AddressbookWindow  ) 
 

Definition at line 302 of file addressbook.cpp.

References listTools, m_config, AbConfig::save(), and AbConfig::setToolBarDock().


Member Function Documentation

void AddressbookWindow::add const Opie::OPimRecord  )  [protected, slot]
 

Definition at line 334 of file addressbook.cpp.

void AddressbookWindow::appMessage const QCString ,
const QByteArray
[slot]
 

Reimplemented from Opie::OPimMainWindow.

Definition at line 569 of file addressbook.cpp.

References addressbookPersonalVCardName(), beamDone(), AbView::CardView, description(), EditEntry, editEntry(), editPersonal(), QFile::exists(), Opie::OPimContact::insertEmails(), IO_ReadOnly, m_abView, m_actionPersonal, name, QString::null, odebug, oendl, parseName(), Opie::OPimMainWindow::reloadCategories(), Ir::send(), Opie::OPimContact::setDefaultEmail(), Opie::OPimContact::setFileAs(), Opie::OPimContact::setFirstName(), QPEApplication::setKeepRunning(), Opie::OPimContact::setLastName(), Opie::OPimContact::setMiddleName(), slotItemEdit(), slotPersonalView(), slotViewSwitched(), and stream.

Referenced by AddressbookWindow().

static QString AddressbookWindow::appName  )  [inline, static]
 

Definition at line 53 of file addressbook.h.

References QString::fromLatin1().

void AddressbookWindow::beam int  uid  )  [protected, virtual, slot]
 

beam the record with UID = uid

Implements Opie::OPimMainWindow.

Definition at line 322 of file addressbook.cpp.

void AddressbookWindow::beamDone Ir  )  [private, slot]
 

Definition at line 533 of file addressbook.cpp.

References beamfile.

Referenced by appMessage(), and slotItemBeam().

void AddressbookWindow::closeEvent QCloseEvent *  e  )  [protected]
 

Definition at line 774 of file addressbook.cpp.

References active_view, AbView::CardView, m_actionPersonal, save(), slotPersonalView(), slotViewSwitched(), syncing, and AbView::TableView.

int AddressbookWindow::create  )  [protected, virtual, slot]
 

create a new Records and return the uid

Implements Opie::OPimMainWindow.

Definition at line 312 of file addressbook.cpp.

void AddressbookWindow::edit int  uid  )  [protected, virtual, slot]
 

edit the record

Implements Opie::OPimMainWindow.

Definition at line 330 of file addressbook.cpp.

void AddressbookWindow::editEntry EntryMode   )  [protected]
 

Definition at line 661 of file addressbook.cpp.

References abEditor, Qtopia::Record::assignUid(), EditEntry, QPEApplication::execDialog(), Qtopia::Record::isValidUid(), m_abView, m_actionPersonal, NewEntry, Opie::OPimMainWindow::reloadCategories(), ContactEditor::setEntry(), ContactEditor::setNameFocus(), and tr.

Referenced by appMessage(), editPersonal(), slotItemEdit(), and slotItemNew().

void AddressbookWindow::editPersonal  )  [protected]
 

Definition at line 701 of file addressbook.cpp.

References abEditor, EditEntry, editEntry(), m_actionPersonal, odebug, oendl, ContactEditor::setPersonalView(), and slotPersonalView().

Referenced by appMessage(), and slotItemEdit().

void AddressbookWindow::exportvCard  )  [private, slot]
 

Definition at line 197 of file addressbook.cpp.

References Opie::OPimAccessTemplate< T >::add(), AbView::currentEntry(), Opie::Ui::OFileDialog::getSaveFileName(), Opie::OPimRecord::isEmpty(), QString::isEmpty(), QString::length(), m_abView, QString::null, odebug, oendl, Opie::OPimContactAccess::save(), and tr.

Referenced by AddressbookWindow().

void AddressbookWindow::flush  )  [virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 767 of file addressbook.cpp.

References m_abView, AbView::save(), and syncing.

Referenced by AddressbookWindow().

void AddressbookWindow::importvCard  )  [private, slot]
 

Definition at line 190 of file addressbook.cpp.

References Opie::Ui::OFileDialog::getOpenFileName(), QString::isEmpty(), setDocument(), and str.

Referenced by AddressbookWindow().

void AddressbookWindow::reload  )  [virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 760 of file addressbook.cpp.

References AbView::clear(), m_abView, AbView::reload(), and syncing.

Referenced by AddressbookWindow().

bool AddressbookWindow::remove int  uid  )  [protected, virtual, slot]
 

remove a record with UID == uid

Implements Opie::OPimMainWindow.

Definition at line 317 of file addressbook.cpp.

void AddressbookWindow::resizeEvent QResizeEvent *  e  )  [protected]
 

Definition at line 295 of file addressbook.cpp.

bool AddressbookWindow::save  )  [protected]
 

Definition at line 813 of file addressbook.cpp.

References Escape, m_abView, AbView::save(), and tr.

Referenced by closeEvent().

void AddressbookWindow::setDocument const QString  )  [slot]
 

Reimplemented from Opie::OPimMainWindow.

Definition at line 222 of file addressbook.cpp.

References AbView::addEntry(), Opie::OPimAccessTemplate< T >::allRecords(), QString::find(), QString::length(), m_abView, m_actionPersonal, QString::null, odebug, oendl, slotPersonalView(), and tr.

Referenced by importvCard().

void AddressbookWindow::show int  uid  )  [protected, virtual, slot]
 

show the record with UID == uid

Implements Opie::OPimMainWindow.

Definition at line 326 of file addressbook.cpp.

void AddressbookWindow::slotCardView  )  [private, slot]
 

Definition at line 883 of file addressbook.cpp.

References AbView::CardView, and slotViewSwitched().

void AddressbookWindow::slotConfigure  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 447 of file addressbook.cpp.

References QPEApplication::execDialog(), AbConfig::fontSize(), m_abView, m_config, m_curFontSize, odebug, oendl, AbConfig::orderList(), and slotSetFont().

void AddressbookWindow::slotFind  )  [private, slot]
 

Definition at line 482 of file addressbook.cpp.

References AbConfig::beCaseSensitive(), m_abView, m_config, m_searchEdit, AbView::slotDoFind(), and AbConfig::useRegExp().

Referenced by AddressbookWindow().

void AddressbookWindow::slotItemBeam  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 405 of file addressbook.cpp.

References Opie::OPimAccessTemplate< T >::add(), addressbookPersonalVCardName(), Opie::OPimAccessTemplate< T >::allRecords(), beamDone(), beamfile, description(), QFile::exists(), Opie::OPimContact::fullName(), m_abView, m_actionPersonal, QString::null, odebug, oendl, Opie::OPimContactAccess::save(), and Ir::send().

void AddressbookWindow::slotItemDelete  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 379 of file addressbook.cpp.

References Opie::OPimContact::company(), QPEMessageBox::confirmDelete(), AbView::currentEntry(), Opie::OPimContact::fullName(), QString::isEmpty(), m_abView, AbView::removeEntry(), syncing, tr, Qtopia::Record::uid(), and warning().

void AddressbookWindow::slotItemDuplicate  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 363 of file addressbook.cpp.

References AbView::addEntry(), Qtopia::Record::assignUid(), AbView::currentEntry(), m_abView, AbView::setCurrentUid(), syncing, tr, Qtopia::Record::uid(), and warning().

void AddressbookWindow::slotItemEdit  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 349 of file addressbook.cpp.

References EditEntry, editEntry(), editPersonal(), m_actionPersonal, syncing, tr, and warning().

Referenced by appMessage().

void AddressbookWindow::slotItemFind  )  [private, slot]
 

Definition at line 443 of file addressbook.cpp.

void AddressbookWindow::slotItemNew  )  [private, virtual, slot]
 

UI-related slots

Implements Opie::OPimMainWindow.

Definition at line 338 of file addressbook.cpp.

References editEntry(), NewEntry, syncing, tr, and warning().

void AddressbookWindow::slotListView  )  [private, slot]
 

Definition at line 878 of file addressbook.cpp.

References slotViewSwitched(), and AbView::TableView.

void AddressbookWindow::slotNotFound  )  [private, slot]
 

Definition at line 839 of file addressbook.cpp.

References odebug, oendl, and tr.

Referenced by AddressbookWindow().

void AddressbookWindow::slotPersonalView  )  [private, slot]
 

Definition at line 724 of file addressbook.cpp.

References m_abView, m_actionMail, m_actionPersonal, odebug, oendl, pLabel, Opie::OPimMainWindow::setItemDeleteEnabled(), Opie::OPimMainWindow::setItemDuplicateEnabled(), Opie::OPimMainWindow::setItemNewEnabled(), AbView::setShowByCategory(), Opie::OPimMainWindow::setShowCategories(), Opie::OPimMainWindow::setViewCategory(), AbView::showPersonal(), and tr.

Referenced by AddressbookWindow(), appMessage(), closeEvent(), editPersonal(), and setDocument().

void AddressbookWindow::slotSetCategory const QString category  )  [private, slot]
 

Definition at line 856 of file addressbook.cpp.

References m_abView, m_config, QString::null, odebug, oendl, AbConfig::setCategory(), and tr.

Referenced by AddressbookWindow().

void AddressbookWindow::slotSetFont int   )  [private, slot]
 

Definition at line 155 of file addressbook.cpp.

References defaultFont, m_abView, m_config, odebug, oendl, and AbConfig::setFontSize().

Referenced by AddressbookWindow(), and slotConfigure().

void AddressbookWindow::slotSetLetter char   )  [private, slot]
 

Definition at line 888 of file addressbook.cpp.

References AbConfig::letterPickerSearch(), m_abView, m_config, and AbView::setShowByLetter().

Referenced by AddressbookWindow().

void AddressbookWindow::slotShowFind bool  show  )  [private, slot]
 

Definition at line 465 of file addressbook.cpp.

References m_abView, m_searchBar, and m_searchEdit.

Referenced by AddressbookWindow().

void AddressbookWindow::slotViewBack  )  [private, slot]
 

Definition at line 491 of file addressbook.cpp.

void AddressbookWindow::slotViewSwitched int   )  [private, slot]
 

Definition at line 868 of file addressbook.cpp.

References active_view, m_abView, odebug, and oendl.

Referenced by AddressbookWindow(), appMessage(), closeEvent(), slotCardView(), and slotListView().

void AddressbookWindow::slotWrapAround  )  [private, slot]
 

Definition at line 847 of file addressbook.cpp.

References odebug, and oendl.

void AddressbookWindow::writeMail  )  [private, slot]
 

Definition at line 496 of file addressbook.cpp.

References Opie::OPimContact::defaultEmail(), QFile::exists(), Opie::OPimContact::fileAs(), QString::fromLatin1(), QString::isEmpty(), m_abView, m_config, name, odebug, oendl, AbConfig::setUseOpieMail(), AbConfig::setUseQtMail(), AbConfig::useOpieMail(), and AbConfig::useQtMail().

Referenced by AddressbookWindow().


Member Data Documentation

ContactEditor* AddressbookWindow::abEditor [private]
 

Definition at line 113 of file addressbook.h.

Referenced by editEntry(), and editPersonal().

int AddressbookWindow::active_view [private]
 

Definition at line 134 of file addressbook.h.

Referenced by closeEvent(), and slotViewSwitched().

QFont* AddressbookWindow::defaultFont [private]
 

Definition at line 127 of file addressbook.h.

Referenced by AddressbookWindow(), and slotSetFont().

bool AddressbookWindow::isLoading [private]
 

Definition at line 130 of file addressbook.h.

Referenced by AddressbookWindow().

QToolBar* AddressbookWindow::listTools [private]
 

Definition at line 111 of file addressbook.h.

Referenced by ~AddressbookWindow().

AbView* AddressbookWindow::m_abView [private]
 

Definition at line 115 of file addressbook.h.

Referenced by AddressbookWindow(), appMessage(), editEntry(), exportvCard(), flush(), reload(), save(), setDocument(), slotConfigure(), slotFind(), slotItemBeam(), slotItemDelete(), slotItemDuplicate(), slotPersonalView(), slotSetCategory(), slotSetFont(), slotSetLetter(), slotShowFind(), slotViewSwitched(), and writeMail().

QAction * AddressbookWindow::m_actionMail [private]
 

Definition at line 122 of file addressbook.h.

Referenced by AddressbookWindow(), and slotPersonalView().

QAction* AddressbookWindow::m_actionPersonal [private]
 

Definition at line 122 of file addressbook.h.

Referenced by AddressbookWindow(), appMessage(), closeEvent(), editEntry(), editPersonal(), setDocument(), slotItemBeam(), slotItemEdit(), and slotPersonalView().

AbConfig AddressbookWindow::m_config [private]
 

Reimplemented from Opie::OPimMainWindow.

Definition at line 132 of file addressbook.h.

Referenced by AddressbookWindow(), slotConfigure(), slotFind(), slotSetCategory(), slotSetFont(), slotSetLetter(), writeMail(), and ~AddressbookWindow().

int AddressbookWindow::m_curFontSize [private]
 

Definition at line 128 of file addressbook.h.

Referenced by AddressbookWindow(), and slotConfigure().

QWidget* AddressbookWindow::m_listContainer [private]
 

Definition at line 116 of file addressbook.h.

Referenced by AddressbookWindow().

OFloatBar* AddressbookWindow::m_searchBar [private]
 

Definition at line 119 of file addressbook.h.

Referenced by AddressbookWindow(), and slotShowFind().

QLineEdit* AddressbookWindow::m_searchEdit [private]
 

Definition at line 120 of file addressbook.h.

Referenced by AddressbookWindow(), slotFind(), and slotShowFind().

LetterPicker* AddressbookWindow::pLabel [private]
 

Definition at line 114 of file addressbook.h.

Referenced by AddressbookWindow(), and slotPersonalView().

bool AddressbookWindow::syncing [private]
 

Definition at line 126 of file addressbook.h.

Referenced by closeEvent(), flush(), reload(), slotItemDelete(), slotItemDuplicate(), slotItemEdit(), and slotItemNew().

int AddressbookWindow::viewMargin [private]
 

Definition at line 124 of file addressbook.h.


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