kpilot/kpilot

AddressWidget Class Reference

Inheritance diagram for AddressWidget:

PilotComponent List of all members.

Detailed Description

Definition at line 44 of file addressWidget.h.


Public Types

enum  Constants { PhoneNumberLength = 16 }

Public Slots

void slotShowAddress (int)
void slotEditRecord ()
void slotCreateNewRecord ()
void slotDeleteRecord ()
void slotEditCancelled ()
void slotExport ()
void slotUpdateButtons ()

Signals

void recordChanged (PilotAddress *)

Public Member Functions

 AddressWidget (QWidget *parent, const QString &dbpath)
 ~AddressWidget ()
virtual void showComponent ()
virtual void hideComponent ()
virtual bool preHotSync (QString &)
virtual void postHotSync ()

Protected Slots

void slotUpdateRecord (PilotAddress *)
void slotAddRecord (PilotAddress *)
void slotSetCategory (int)

Protected Attributes

int fPendingAddresses

Member Function Documentation

void AddressWidget::showComponent (  )  [virtual]

Called when the component is shown in kpilot.

It should load the database and populate the widgets.

Reimplemented from PilotComponent.

Definition at line 128 of file addressWidget.cc.

void AddressWidget::hideComponent (  )  [virtual]

Called when the component is hidden in kpilot.

It should unload the databases and clean up to save memory. This method can be called even if the component is not visible. If there are some editing dlgs open, this needs to be deferred until they are all closed. Then, one can explicitly call hideComponent().

Reimplemented from PilotComponent.

Definition at line 163 of file addressWidget.cc.

bool AddressWidget::preHotSync ( QString &   )  [virtual]

Get ready for a hotsync -- write any unflushed records to disk, close windows, whatever.

Returns false if it is impossible to go into a sync now (due to open windows or strange state.).

The default implementation returns true.

If the function returns false, it can also put a string stating the reason why into s. This string will be displayed to the user: "Can't start HotSync. %1" where 1 is replaced by s.

Reimplemented from PilotComponent.

Definition at line 175 of file addressWidget.cc.

void AddressWidget::postHotSync (  )  [virtual]

Reload data (possibly changed by the hotsync) etc.

etc.

Reimplemented from PilotComponent.

Definition at line 202 of file addressWidget.cc.

void AddressWidget::slotShowAddress ( int   )  [slot]

Called when a particular address is selected.

This slot displays it in the viewer widget.

Definition at line 593 of file addressWidget.cc.

void AddressWidget::slotUpdateRecord ( PilotAddress  )  [protected, slot]

When an edit window is closed, the corresponding record is updated and possibly re-displayed.

Definition at line 532 of file addressWidget.cc.

void AddressWidget::slotAddRecord ( PilotAddress  )  [protected, slot]

Pop up an edit window for a new record.

Definition at line 505 of file addressWidget.cc.

void AddressWidget::slotSetCategory ( int   )  [protected, slot]

Change category.

This means that the display should be cleared and that the list should be repopulated.

Definition at line 414 of file addressWidget.cc.


Member Data Documentation

Keep track of how many open address editing windows there are.

You can't sync when there are open windows.

Definition at line 138 of file addressWidget.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys