8#ifndef KOMPAREDIFF2_DIFFMODEL_H
9#define KOMPAREDIFF2_DIFFMODEL_H
14#include "komparediff2_export.h"
23class DiffModelPrivate;
41 bool operator<(
const DiffModel &model)
const;
47 int hunkCount()
const;
48 int differenceCount()
const;
49 int appliedCount()
const;
70 QString destinationFile()
const;
72 QString destinationPath()
const;
73 QString sourceTimestamp()
const;
74 QString destinationTimestamp()
const;
76 QString destinationRevision()
const;
78 void setSourceFile(
const QString &path);
79 void setDestinationFile(
const QString &path);
80 void setSourceTimestamp(
const QString ×tamp);
81 void setDestinationTimestamp(
const QString ×tamp);
82 void setSourceRevision(
const QString &revision);
83 void setDestinationRevision(
const QString &revision);
87 bool hasUnsavedChanges()
const;
89 int diffIndex()
const;
90 void setDiffIndex(
int diffIndex);
92 void applyDifference(
bool apply);
93 void applyAllDifferences(
bool apply);
97 int localeAwareCompareSource(
const DiffModel &model)
const;
99 bool isBlended()
const;
100 void setBlended(
bool blended);
114 std::unique_ptr<DiffModelPrivate>
const d_ptr;
A model describing the differences between two files.
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.