• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

KABC::NameSortMode

KABC::NameSortMode Class Reference

Implements comparison by name. More...

#include <sortmode.h>

Inheritance diagram for KABC::NameSortMode:

Inheritance graph
[legend]

List of all members.


Public Types

enum  NameType { FormattedName, FamilyName, GivenName }

Public Member Functions

virtual bool lesser (const KABC::Addressee &first, const KABC::Addressee &second) const
 NameSortMode (NameType type, bool ascending=true)
 NameSortMode ()

Detailed Description

Implements comparison by name.

This class implements a comparison of two Addressee objects by name.

Definition at line 54 of file sortmode.h.


Member Enumeration Documentation

enum KABC::NameSortMode::NameType

Specifies which parts of the name are used for comparison.

Enumerator:
FormattedName  use the formatted name, e.g.

"John Doe"

FamilyName  use the last name, e.g.

"Doe"

GivenName  use the first name, e.g.

"John"

Definition at line 60 of file sortmode.h.


Constructor & Destructor Documentation

NameSortMode::NameSortMode (  ) 

Constructor.

Creates a NameSortMethod with FormattedName as name type set.

Definition at line 37 of file sortmode.cpp.

NameSortMode::NameSortMode ( NameType  type,
bool  ascending = true 
) [explicit]

Constructor.

Creates a NameSortMethod with the specified name type.

Parameters:
type The name type.
ascending if true, Addressee object are sorted in ascending order; if false, objects are sorted in descending order

Definition at line 44 of file sortmode.cpp.


Member Function Documentation

bool NameSortMode::lesser ( const KABC::Addressee &  first,
const KABC::Addressee &  second 
) const [virtual]

Returns whether the first contact is 'smaller' then the second.

Implements KABC::SortMode.

Definition at line 56 of file sortmode.cpp.


The documentation for this class was generated from the following files:
  • sortmode.h
  • sortmode.cpp

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal