kabc Library API Documentation

KABC::NameSortMode Class Reference

Inheritance diagram for KABC::NameSortMode:

Inheritance graph
[legend]
Collaboration diagram for KABC::NameSortMode:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 46 of file sortmode.h.


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.

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.

References QString::localeAwareCompare().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kabc Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 14:07:49 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003