KompareDiff2

differencestring.h
1/*
2 SPDX-FileCopyrightText: 2001-2004,2009 Otto Bruggeman <bruggie@gmail.com>
3 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#ifndef KOMPAREDIFF2_DIFFERENCESTRING_H
9#define KOMPAREDIFF2_DIFFERENCESTRING_H
10
11// lib
12#include "komparediff2_export.h"
13#include "marker.h"
14// Qt
15#include <QList>
16#include <QString>
17// Std
18#include <memory>
19
20namespace KompareDiff2
21{
22class DifferenceStringPrivate;
23
24/**
25 * @class DifferenceString differencestring.h <KompareDiff2/DifferenceString>
26 *
27 * A difference string.
28 */
29class KOMPAREDIFF2_EXPORT DifferenceString
30{
31public:
33 explicit DifferenceString(const QString &string, const MarkerList &markerList = MarkerList());
36
37public:
38 bool operator==(const DifferenceString &ks) const;
39
40 QString string() const;
41 QString conflictString() const;
42 MarkerList markerList() const;
43 void setString(const QString &string);
44 void setConflictString(const QString &conflict);
45 void setMarkerList(const MarkerList &markerList);
46 void prepend(Marker *marker);
47
48private:
49 Q_DECLARE_PRIVATE(DifferenceString)
50 std::unique_ptr<DifferenceStringPrivate> const d_ptr;
51};
52
56
57}
58
59#endif
KompareDiff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.