kaddressbook

KAddressBookCardView Class Reference

#include <kaddressbookcardview.h>

Inheritance diagram for KAddressBookCardView:
KAddressBookView

Public Slots

void refresh (const TQString &uid=TQString())
 
void setSelected (const TQString &uid=TQString(), bool selected=true)
 
virtual void setFirstSelected (bool selected=true)
 
- Public Slots inherited from KAddressBookView
virtual void refresh (const TQString &uid=TQString())=0
 
virtual void setSelected (const TQString &uid=TQString(), bool selected=true)=0
 
virtual void setFirstSelected (bool selected=true)=0
 
void popup (const TQPoint &point)
 

Public Member Functions

 KAddressBookCardView (KAB::Core *core, TQWidget *parent, const char *name=0)
 
virtual TQStringList selectedUids ()
 
virtual TQString type () const
 
virtual TDEABC::Field * sortField () const
 
virtual void readConfig (TDEConfig *config)
 
virtual void writeConfig (TDEConfig *config)
 
void scrollUp ()
 
void scrollDown ()
 
- Public Member Functions inherited from KAddressBookView
 KAddressBookView (KAB::Core *core, TQWidget *parent, const char *name)
 
virtual TQString selectedEmails ()
 
TDEABC::Field::List fields () const
 
void setFilter (const Filter &)
 
DefaultFilterType defaultFilterType () const
 
const TQString & defaultFilterName () const
 
KAB::Core * core () const
 

Protected Slots

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

Additional Inherited Members

- Public Types inherited from KAddressBookView
enum  DefaultFilterType { None = 0 , Active = 1 , Specific = 2 }
 
- Signals inherited from KAddressBookView
void modified ()
 
void selected (const TQString &uid)
 
void executed (const TQString &uid)
 
void startDrag ()
 
void dropped (TQDropEvent *)
 
void sortFieldChanged ()
 
void viewFieldsChanged ()
 
- Protected Member Functions inherited from KAddressBookView
TDEABC::Addressee::List addressees ()
 
TQWidget * viewWidget ()
 

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.

Member Function Documentation

◆ readConfig()

void KAddressBookCardView::readConfig ( TDEConfig *  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
configThe TDEConfig object to read from. The group will already be set, so do not change the group.

Reimplemented from KAddressBookView.

Definition at line 181 of file kaddressbookcardview.cpp.

◆ selectedUids()

TQStringList KAddressBookCardView::selectedUids ( )
virtual

Must be overloaded in subclasses.

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

Implements KAddressBookView.

Definition at line 247 of file kaddressbookcardview.cpp.

◆ sortField()

TDEABC::Field * KAddressBookCardView::sortField ( ) const
virtual
Returns
The current sort field.

Implements KAddressBookView.

Definition at line 175 of file kaddressbookcardview.cpp.

◆ type()

virtual TQString KAddressBookCardView::type ( ) const
inlinevirtual

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 54 of file kaddressbookcardview.h.

◆ writeConfig()

void KAddressBookCardView::writeConfig ( TDEConfig *  )
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 241 of file kaddressbookcardview.cpp.


The documentation for this class was generated from the following files: