File indexing completed on 2025-07-13 05:11:55
0001 /* 0002 SPDX-FileCopyrightText: 2004-2005, 2009 Otto Bruggeman <bruggie@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOMPAREDIFF2_DIFFMODELLIST_H 0008 #define KOMPAREDIFF2_DIFFMODELLIST_H 0009 0010 // lib 0011 #include "diffmodel.h" 0012 #include "komparediff2_export.h" 0013 // Qt 0014 #include <QList> 0015 0016 /** 0017 * KompareDiff2 namespace 0018 */ 0019 namespace KompareDiff2 0020 { 0021 0022 /** 0023 * @class DiffModelList diffmodellist.h <KompareDiff2/DiffModelList> 0024 * 0025 * A list of DiffModel. 0026 */ 0027 class KOMPAREDIFF2_EXPORT DiffModelList : public QList<DiffModel *> 0028 { 0029 public: 0030 DiffModelList() = default; 0031 DiffModelList(const DiffModelList &list) 0032 : QList<DiffModel *>(list) 0033 { 0034 } 0035 virtual ~DiffModelList() 0036 { 0037 qDeleteAll(begin(), end()); 0038 } 0039 0040 public: 0041 void sort(); 0042 }; 0043 0044 using DiffModelListIterator = QList<DiffModel *>::iterator; 0045 using DiffModelListConstIterator = QList<DiffModel *>::const_iterator; 0046 0047 } // End of Namespace KompareDiff2 0048 0049 #endif // KOMPAREDIFF2_DIFFMODELLIST_H