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

kaddressbook

KAddressBookCardView Class Reference

#include <kaddressbookcardview.h>

Inheritance diagram for KAddressBookCardView:

Inheritance graph
[legend]

List of all members.


Detailed Description

This view uses the CardView class to create a card view.

At some point in the future I think this will be the default view of KAddressBook.

Definition at line 43 of file kaddressbookcardview.h.


Public Slots

void refresh (const QString &uid=QString())
virtual void setFirstSelected (bool selected=true)
void setSelected (const QString &uid=QString(), bool selected=true)

Public Member Functions

 KAddressBookCardView (KAB::Core *core, QWidget *parent)
virtual void readConfig (KConfigGroup &cfg)
void scrollDown ()
void scrollUp ()
virtual QStringList selectedUids ()
virtual KABC::Field * sortField () const
virtual QString type () const
virtual void writeConfig (KConfigGroup &cfg)
virtual ~KAddressBookCardView ()

Protected Slots

void addresseeExecuted (CardViewItem *)
void addresseeSelected ()
void rmbClicked (CardViewItem *, const QPoint &)

Constructor & Destructor Documentation

KAddressBookCardView::KAddressBookCardView ( KAB::Core *  core,
QWidget *  parent 
)

Definition at line 143 of file kaddressbookcardview.cpp.

KAddressBookCardView::~KAddressBookCardView (  )  [virtual]

Definition at line 169 of file kaddressbookcardview.cpp.


Member Function Documentation

void KAddressBookCardView::addresseeExecuted ( CardViewItem *  item  )  [protected, slot]

Definition at line 326 of file kaddressbookcardview.cpp.

void KAddressBookCardView::addresseeSelected (  )  [protected, slot]

Definition at line 333 of file kaddressbookcardview.cpp.

void KAddressBookCardView::readConfig ( KConfigGroup &  config  )  [virtual]

Called whenever this view should read the config.

This can be used as a sign that the config has changed, therefore the view should assume the worst and rebuild itself if necessary. For example, in a table view this method may be called when the user adds or removes columns from the view.

If overloaded in the subclass, do not forget to call super class's method.

Parameters:
config The KConfig object to read from. The group will already be set, so do not change the group.

Reimplemented from KAddressBookView.

Definition at line 179 of file kaddressbookcardview.cpp.

void KAddressBookCardView::refresh ( const QString &  uid = QString()  )  [virtual, slot]

Must be overloaded in subclasses to refresh the view.

Refreshing includes updating the view to ensure that only items in the document are visible. If uid is valid, only the addressee with uid needs to be refreshed. This is an optimization only.

Implements KAddressBookView.

Definition at line 262 of file kaddressbookcardview.cpp.

void KAddressBookCardView::rmbClicked ( CardViewItem *  ,
const QPoint &  point 
) [protected, slot]

Definition at line 353 of file kaddressbookcardview.cpp.

void KAddressBookCardView::scrollDown (  )  [virtual]

Implements KAddressBookView.

Definition at line 363 of file kaddressbookcardview.cpp.

void KAddressBookCardView::scrollUp (  )  [virtual]

Implements KAddressBookView.

Definition at line 358 of file kaddressbookcardview.cpp.

QStringList KAddressBookCardView::selectedUids (  )  [virtual]

Must be overloaded in subclasses.

Should return a list of all the uids of selected contacts.

Implements KAddressBookView.

Definition at line 245 of file kaddressbookcardview.cpp.

void KAddressBookCardView::setFirstSelected ( bool  selected = true  )  [virtual, slot]

Selects the first contact in the view.

Implements KAddressBookView.

Definition at line 318 of file kaddressbookcardview.cpp.

void KAddressBookCardView::setSelected ( const QString &  uid = QString(),
bool  selected = true 
) [virtual, slot]

This method must be overloaded in subclasses.

Select (highlight) the addressee matching uid. If uid is equal to QString(), then all addressees should be selected.

Implements KAddressBookView.

Definition at line 297 of file kaddressbookcardview.cpp.

KABC::Field * KAddressBookCardView::sortField (  )  const [virtual]

Returns:
The current sort field.

Implements KAddressBookView.

Definition at line 173 of file kaddressbookcardview.cpp.

virtual QString KAddressBookCardView::type (  )  const [inline, virtual]

Return the type of the view: Icon, Table, etc.

Please make sure that this is the same value that ViewWrapper::type() will return for your view.

Implements KAddressBookView.

Definition at line 52 of file kaddressbookcardview.h.

void KAddressBookCardView::writeConfig ( KConfigGroup &   )  [virtual]

Called whenever this view should write the config.

The view should not write out information handled by the application, such as which fields are visible. The view should only write out information specific to itself (i.e.: All information in the ViewConfigWidget)

If overloaded in the subclass, do not forget to call the super class's method.

Reimplemented from KAddressBookView.

Definition at line 239 of file kaddressbookcardview.cpp.


The documentation for this class was generated from the following files:
  • kaddressbookcardview.h
  • kaddressbookcardview.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
  •   doc
  • 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