• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • NameSortMode
Public Types | Public Member Functions | List of all members
KABC::NameSortMode Class Reference

#include <sortmode.h>

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

Public Types

enum  NameType { FormattedName, FamilyName, GivenName }
 

Public Member Functions

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

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
typeThe name type.
ascendingif 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal