summaryrefslogtreecommitdiffstats
path: root/kabc/sortmode.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-15 21:57:54 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-15 21:57:54 -0600
commited99a30644c19b0a3cf0d2147243532df4daa16b (patch)
tree7f3f2850e59824fdf100a642367a82b1e7f0204f /kabc/sortmode.h
parente5f2d46e9caf6942f365f1b454087dda71a340f7 (diff)
downloadtdelibs-ed99a30644c19b0a3cf0d2147243532df4daa16b.tar.gz
tdelibs-ed99a30644c19b0a3cf0d2147243532df4daa16b.zip
Rename additional header files to avoid conflicts with KDE4
Diffstat (limited to 'kabc/sortmode.h')
-rw-r--r--kabc/sortmode.h114
1 files changed, 0 insertions, 114 deletions
diff --git a/kabc/sortmode.h b/kabc/sortmode.h
deleted file mode 100644
index 9768fc8c5..000000000
--- a/kabc/sortmode.h
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- This file is part of libkabc.
- Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef KABC_SORTMODE_H
-#define KABC_SORTMODE_H
-
-#include <tdelibs_export.h>
-
-#include <kabc/addressee.h>
-
-namespace KABC {
-
-/**
- @short Sort method for sorting an addressee list.
-
- This interface should be reimplemented by classes which shall act as
- SortModes for KABC::AddresseeList.
-*/
-class KABC_EXPORT SortMode
-{
- public:
- /**
- Reimplement this method and return whether the first contact is 'smaller'
- than the second.
- */
- virtual bool lesser( const KABC::Addressee &first, const KABC::Addressee &second ) const = 0;
-};
-
-class KABC_EXPORT NameSortMode : public SortMode
-{
- public:
- enum NameType
- {
- FormattedName,
- FamilyName,
- GivenName
- };
-
- /**
- Constructor.
-
- Creates a NameSortMethod with FormattedName as name type set.
- */
- NameSortMode();
-
- /**
- Constructor.
-
- Creates a NameSortMethod with the specified name type.
-
- @param type The name type.
- @param ascending true for ascending sort, false for descending.
- */
- NameSortMode( NameType type, bool ascending = true );
-
- /**
- Returns whether the first contact is 'smaller' then the second.
- */
- virtual bool lesser( const KABC::Addressee&, const KABC::Addressee& ) const;
-
- private:
- NameType mNameType;
- bool mAscendingOrder;
-
- class NameSortModePrivate;
- NameSortModePrivate *d;
-};
-
-class KABC_EXPORT FieldSortMode : public SortMode
-{
- public:
- /**
- Constructor.
-
- Creates a FieldSortMethod with the specified field.
-
- @param field The field.
- @param ascending true for ascending sort, false for descending.
- */
- FieldSortMode( KABC::Field *field, bool ascending = true );
-
- /**
- Returns whether the first contact is 'smaller' then the second.
- */
- virtual bool lesser( const KABC::Addressee&, const KABC::Addressee& ) const;
-
- private:
- KABC::Field *mField;
- bool mAscendingOrder;
-
- class FieldSortModePrivate;
- FieldSortModePrivate *d;
-};
-
-}
-
-#endif