File indexing completed on 2024-05-12 16:43:59

0001 /*
0002     SPDX-FileCopyrightText: 2006-2018 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef ITEMPTRVECTOR_H
0008 #define ITEMPTRVECTOR_H
0009 
0010 // ----------------------------------------------------------------------------
0011 // QT Includes
0012 
0013 #include <QVector>
0014 
0015 // ----------------------------------------------------------------------------
0016 // KDE Includes
0017 
0018 // ----------------------------------------------------------------------------
0019 // Project Includes
0020 
0021 namespace KMyMoneyRegister
0022 {
0023 class RegisterItem;
0024 class ItemPtrVector : public QVector<RegisterItem *>
0025 {
0026 public:
0027     void sort();
0028 
0029 protected:
0030     /**
0031     * sorter's compare routine. Returns true if i1 < i2
0032     */
0033     static bool item_cmp(RegisterItem* i1, RegisterItem* i2);
0034 };
0035 } // namespace
0036 
0037 #endif