KompareDiff2

diffmodellist.h
1/*
2SPDX-FileCopyrightText: 2004-2005, 2009 Otto Bruggeman <bruggie@gmail.com>
3
4SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef KOMPAREDIFF2_DIFFMODELLIST_H
8#define KOMPAREDIFF2_DIFFMODELLIST_H
9
10#include <QList> // include for the base class
11
12#include "diffmodel.h"
13#include "komparediff2_export.h"
14
15/**
16 * Diff2 namespace
17 */
18namespace Diff2
19{
20
21using DiffModelListIterator = QList<DiffModel*>::iterator;
22using DiffModelListConstIterator = QList<DiffModel*>::const_iterator;
23
24/**
25 * @class DiffModelList diffmodellist.h <KompareDiff2/DiffModelList>
26 *
27 * A list of DiffModel.
28 */
29class KOMPAREDIFF2_EXPORT DiffModelList : public QList<DiffModel*>
30{
31public:
32 DiffModelList() {}
33 DiffModelList(const DiffModelList& list) : QList<DiffModel*>(list) {}
34 virtual ~DiffModelList()
35 {
36 qDeleteAll(begin(), end());
37 }
38
39public:
40 virtual void sort();
41
42}; // End of class DiffModelList
43
44} // End of Namespace Diff2
45
46#endif // KOMPAREDIFF2_DIFFMODELLIST_H
A list of DiffModel.
Diff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:10:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.