File indexing completed on 2024-04-28 13:39:49
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 #include <QList> // include for the base class 0011 0012 #include "diffmodel.h" 0013 #include "komparediff2_export.h" 0014 0015 /** 0016 * Diff2 namespace 0017 */ 0018 namespace Diff2 0019 { 0020 0021 using DiffModelListIterator = QList<DiffModel*>::iterator; 0022 using DiffModelListConstIterator = QList<DiffModel*>::const_iterator; 0023 0024 /** 0025 * @class DiffModelList diffmodellist.h <KompareDiff2/DiffModelList> 0026 * 0027 * A list of DiffModel. 0028 */ 0029 class KOMPAREDIFF2_EXPORT DiffModelList : public QList<DiffModel*> 0030 { 0031 public: 0032 DiffModelList() {} 0033 DiffModelList(const DiffModelList& list) : QList<DiffModel*>(list) {} 0034 virtual ~DiffModelList() 0035 { 0036 qDeleteAll(begin(), end()); 0037 } 0038 0039 public: 0040 virtual void sort(); 0041 0042 }; // End of class DiffModelList 0043 0044 } // End of Namespace Diff2 0045 0046 #endif // KOMPAREDIFF2_DIFFMODELLIST_H