8#ifndef KOMPAREDIFF2_DIFFERENCE_H
9#define KOMPAREDIFF2_DIFFERENCE_H
12#include "differencestring.h"
13#include "komparediff2_export.h"
21class DifferencePrivate;
40 Difference(
int sourceLineNo,
int destinationLineNo,
int type = Difference::Unchanged);
46 int sourceLineNumber()
const;
47 int destinationLineNumber()
const;
49 int sourceLineCount()
const;
50 int destinationLineCount()
const;
52 int sourceLineEnd()
const;
53 int destinationLineEnd()
const;
57 int trackingDestinationLineNumber()
const;
58 int trackingDestinationLineEnd()
const;
59 void setTrackingDestinationLineNumber(
int i);
67 bool hasConflict()
const;
68 void setConflict(
bool conflicts);
70 bool isUnsaved()
const;
71 void setUnsaved(
bool unsaved);
73 void apply(
bool apply);
75 void applyQuietly(
bool apply);
78 void setType(
int type);
80 void addSourceLine(
const QString &line);
81 void addDestinationLine(
const QString &line);
84 void determineInlineDifferences();
86 QString recreateDifference()
const;
93 std::unique_ptr<DifferencePrivate>
const d_ptr;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.