kdevplatform/vcs
#include <vcsdiff.h>
Public Member Functions | |
VcsDiff () | |
VcsDiff (const VcsDiff &) | |
virtual | ~VcsDiff () |
QUrl | baseDiff () const |
uint | depth () const |
QString | diff () const |
bool | isEmpty () const |
VcsDiff & | operator= (const VcsDiff &rhs) |
void | setBaseDiff (const QUrl &url) |
void | setDepth (const uint depth) |
void | setDiff (const QString &) |
Detailed Description
Constructor & Destructor Documentation
◆ VcsDiff() [1/2]
KDevelop::VcsDiff::VcsDiff | ( | ) |
Definition at line 54 of file vcsdiff.cpp.
◆ ~VcsDiff()
|
virtualdefault |
◆ VcsDiff() [2/2]
KDevelop::VcsDiff::VcsDiff | ( | const VcsDiff & | rhs | ) |
Definition at line 61 of file vcsdiff.cpp.
Member Function Documentation
◆ baseDiff()
QUrl KDevelop::VcsDiff::baseDiff | ( | ) | const |
- Returns
- the base directory of the diff.
Definition at line 88 of file vcsdiff.cpp.
◆ depth()
uint KDevelop::VcsDiff::depth | ( | ) | const |
Depth - number of directories to left-strip from paths in the patch - see "patch -p" Defaults to 0.
Definition at line 93 of file vcsdiff.cpp.
◆ diff()
QString KDevelop::VcsDiff::diff | ( | ) | const |
- Returns
- the difference between the first and the second file in unified diff format or an empty QString if this is a binary diff or a textual diff using raw format
Definition at line 71 of file vcsdiff.cpp.
◆ isEmpty()
bool KDevelop::VcsDiff::isEmpty | ( | ) | const |
- Returns
- whether there are not changes on the diff
Definition at line 66 of file vcsdiff.cpp.
◆ operator=()
Definition at line 82 of file vcsdiff.cpp.
◆ setBaseDiff()
void KDevelop::VcsDiff::setBaseDiff | ( | const QUrl & | url | ) |
Sets the base directory of the diff to the url
.
Definition at line 98 of file vcsdiff.cpp.
◆ setDepth()
void KDevelop::VcsDiff::setDepth | ( | const uint | depth | ) |
Sets the depth of the diff to depth
.
Definition at line 103 of file vcsdiff.cpp.
◆ setDiff()
void KDevelop::VcsDiff::setDiff | ( | const QString & | s | ) |
Definition at line 77 of file vcsdiff.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 23:32:00 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.