21 #ifndef KABC_SORTMODE_H
22 #define KABC_SORTMODE_H
24 #include <tdelibs_export.h>
26 #include <tdeabc/addressee.h>
46 class KABC_EXPORT NameSortMode :
public SortMode
71 NameSortMode( NameType type,
bool ascending =
true );
82 class NameSortModePrivate;
83 NameSortModePrivate *d;
86 class KABC_EXPORT FieldSortMode :
public SortMode
97 FieldSortMode( TDEABC::Field *field,
bool ascending =
true );
105 TDEABC::Field *mField;
106 bool mAscendingOrder;
108 class FieldSortModePrivate;
109 FieldSortModePrivate *d;
Sort method for sorting an addressee list.
virtual bool lesser(const TDEABC::Addressee &first, const TDEABC::Addressee &second) const =0
Reimplement this method and return whether the first contact is 'smaller' than the second.
static data, shared by ALL addressee objects