21 #ifndef KABC_SORTMODE_H
22 #define KABC_SORTMODE_H
24 #include <kdelibs_export.h>
26 #include <kabc/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( KABC::Field *field,
bool ascending =
true );
106 bool mAscendingOrder;
108 class FieldSortModePrivate;
109 FieldSortModePrivate *d;
Sort method for sorting an addressee list.
virtual bool lesser(const KABC::Addressee &first, const KABC::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