kabc
KABC::FieldSortMode Class Reference
#include <sortmode.h>
Inheritance diagram for KABC::FieldSortMode:

Public Member Functions | |
FieldSortMode (KABC::Field *field, bool ascending=true) | |
virtual bool | lesser (const KABC::Addressee &first, const KABC::Addressee &second) const |
virtual bool | lesser (const KABC::Addressee &first, const KABC::Addressee &second) const =0 |
Detailed Description
Implements comparison by an arbitrary field.
This class implements a comparison of two Addressee objects by the value of an arbitrary field.
Definition at line 105 of file sortmode.h.
Constructor & Destructor Documentation
◆ FieldSortMode()
|
explicit |
Constructor.
Creates a FieldSortMethod with the specified field
.
- Parameters
-
field The field. ascending if true
, Addressee object are sorted in ascending order; iffalse
, objects are sorted in descending order
Definition at line 89 of file sortmode.cpp.
◆ ~FieldSortMode()
|
virtual |
Definition at line 96 of file sortmode.cpp.
Member Function Documentation
◆ lesser()
|
virtual |
Returns whether the first contact is 'smaller' then the second.
Implements KABC::SortMode.
Definition at line 101 of file sortmode.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.