• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/vcs

  • KDevelop
  • VcsDiff
Public Member Functions | List of all members
KDevelop::VcsDiff Class Reference

#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

Definition at line 37 of file vcsdiff.h.

Constructor & Destructor Documentation

◆ VcsDiff() [1/2]

KDevelop::VcsDiff::VcsDiff ( )

Definition at line 54 of file vcsdiff.cpp.

◆ ~VcsDiff()

KDevelop::VcsDiff::~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=()

VcsDiff & KDevelop::VcsDiff::operator= ( const VcsDiff &  rhs)

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:
  • vcsdiff.h
  • vcsdiff.cpp
This file is part of the KDE documentation.
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.

kdevplatform/vcs

Skip menu "kdevplatform/vcs"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal