22#ifndef KABC_ADDRESSEELIST_H
23#define KABC_ADDRESSEELIST_H
25#include <tqvaluelist.h>
61class KABC_EXPORT FormattedName
68class KABC_EXPORT FamilyName
75class KABC_EXPORT GivenName
87typedef enum { Uid, Name, FormattedName, FamilyName, GivenName } SortingCriterion;
112class KABC_EXPORT AddresseeList :
public TQValueList<Addressee>
117 AddresseeList(
const AddresseeList & );
118 AddresseeList(
const TQValueList<Addressee> & );
149 void sortByField( Field *field = 0 );
156 void sortByMode(
SortMode *mode = 0 );
196 template<
class Trait>
void sortByTrait();
211 Field* sortingField()
const;
214 bool mReverseSorting;
SortingCriterion sortingCriterion() const
Returns the active sorting criterion, ie the sorting criterion that will be used by a sort call.
void setReverseSorting(bool r=true)
Determines the direction of sorting.
void dump() const
Debug output.
bool reverseSorting() const
Returns the direction of sorting.
Sort method for sorting an addressee list.
Each trait must implement one static function for equality, one for "lessthan".
static data, shared by ALL addressee objects
SortingCriterion
Addressee attribute used for sorting.