• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kaddressbook

KAB::ContactEditorWidget

KAB::ContactEditorWidget Class Reference

#include <contacteditorwidget.h>

Inheritance diagram for KAB::ContactEditorWidget:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 38 of file contacteditorwidget.h.


Public Types

typedef QList
< ContactEditorWidget * > 
List

Public Slots

void setModified ()
void setModified (bool modified)

Signals

void changed ()

Public Member Functions

 ContactEditorWidget (KABC::AddressBook *ab, QWidget *parent)
virtual void loadContact (KABC::Addressee *addr)=0
virtual int logicalHeight () const
virtual int logicalWidth () const
bool modified () const
virtual void setReadOnly (bool readOnly)=0
virtual void storeContact (KABC::Addressee *addr)=0
 ~ContactEditorWidget ()

Protected Member Functions

KABC::AddressBook * addressBook () const

Member Typedef Documentation

typedef QList<ContactEditorWidget*> KAB::ContactEditorWidget::List

Definition at line 43 of file contacteditorwidget.h.


Constructor & Destructor Documentation

ContactEditorWidget::ContactEditorWidget ( KABC::AddressBook *  ab,
QWidget *  parent 
)

Definition at line 28 of file contacteditorwidget.cpp.

ContactEditorWidget::~ContactEditorWidget (  ) 

Definition at line 34 of file contacteditorwidget.cpp.


Member Function Documentation

KABC::AddressBook * ContactEditorWidget::addressBook (  )  const [protected]

Returns a pointer to the address book object.

Definition at line 38 of file contacteditorwidget.cpp.

void KAB::ContactEditorWidget::changed (  )  [signal]

Emitted whenever the page has changed, do not emit it directly, use setModified() instead.

virtual void KAB::ContactEditorWidget::loadContact ( KABC::Addressee *  addr  )  [pure virtual]

Load the contacts data into the GUI.

Implemented in AdvancedCustomFields, CustomFieldsWidget, CryptoWidget, FreeBusyWidget, GeoWidget, ImageWidget, and SoundWidget.

virtual int KAB::ContactEditorWidget::logicalHeight (  )  const [inline, virtual]

Return logical height of the widget.

This is used to calculate how much vertical space relative to other widgets this widget will use in the summary view.

Definition at line 53 of file contacteditorwidget.h.

virtual int KAB::ContactEditorWidget::logicalWidth (  )  const [inline, virtual]

Return logical wide of the widget.

This is used to calculate how much horizontal space relative to other widgets this widget will use in the summary view.

Reimplemented in ImageWidget.

Definition at line 60 of file contacteditorwidget.h.

bool ContactEditorWidget::modified (  )  const

Returns whether this widget was modified.

Definition at line 43 of file contacteditorwidget.cpp.

void ContactEditorWidget::setModified (  )  [slot]

Definition at line 48 of file contacteditorwidget.cpp.

void ContactEditorWidget::setModified ( bool  modified  )  [slot]

Call this slot whenever the data were changed by the user.

It will emit the changed() signal and set the modified property.

Parameters:
modified Set whether the widget was modified.

Definition at line 53 of file contacteditorwidget.cpp.

virtual void KAB::ContactEditorWidget::setReadOnly ( bool  readOnly  )  [pure virtual]

Sets whether the contact should be presented as read-only.

You should update your GUI in the reimplemented method.

Implemented in AdvancedCustomFields, CustomFieldsWidget, CryptoWidget, FreeBusyWidget, GeoWidget, ImageWidget, and SoundWidget.

virtual void KAB::ContactEditorWidget::storeContact ( KABC::Addressee *  addr  )  [pure virtual]

Save the data from the GUI into the passed contact object.

Implemented in AdvancedCustomFields, CustomFieldsWidget, CryptoWidget, FreeBusyWidget, GeoWidget, ImageWidget, and SoundWidget.


The documentation for this class was generated from the following files:
  • contacteditorwidget.h
  • contacteditorwidget.cpp

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal