File indexing completed on 2024-05-19 05:14:36
0001 /* 0002 This file is part of KAddressBook. 0003 0004 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include "importexport/contactfields.h" 0012 0013 class ContactSorter 0014 { 0015 public: 0016 explicit ContactSorter(KAddressBookImportExport::ContactFields::Field field, Qt::SortOrder sortOrder = Qt::AscendingOrder); 0017 0018 void sort(KContacts::Addressee::List &contacts) const; 0019 0020 private: 0021 const KAddressBookImportExport::ContactFields::Field mSortField; 0022 const Qt::SortOrder mSortOrder; 0023 };