KABC::NameSortMode Class Reference
Inheritance diagram for KABC::NameSortMode:

Detailed Description
Definition at line 46 of file sortmode.h.
Public Types | |
enum | NameType { FormattedName, FamilyName, GivenName } |
Public Member Functions | |
NameSortMode () | |
NameSortMode (NameType type, bool ascending=true) | |
virtual bool | lesser (const KABC::Addressee &, const KABC::Addressee &) const |
Constructor & Destructor Documentation
NameSortMode::NameSortMode | ( | ) |
Constructor.
Creates a NameSortMethod with FormattedName as name type set.
Definition at line 27 of file sortmode.cpp.
NameSortMode::NameSortMode | ( | NameType | type, | |
bool | ascending = true | |||
) |
Constructor.
Creates a NameSortMethod with the specified name type.
- Parameters:
-
type The name type. ascending true for ascending sort, false for descending.
Definition at line 33 of file sortmode.cpp.
Member Function Documentation
bool NameSortMode::lesser | ( | const KABC::Addressee & | , | |
const KABC::Addressee & | ||||
) | const [virtual] |
Returns whether the first contact is 'smaller' then the second.
Implements KABC::SortMode.
Definition at line 38 of file sortmode.cpp.
The documentation for this class was generated from the following files: