kdevplatform/vcs
#include <vcsdiffpatchsources.h>

Public Member Functions | |
VCSDiffPatchSource (const KDevelop::VcsDiff &diff) | |
VCSDiffPatchSource (VCSDiffUpdater *updater) | |
~VCSDiffPatchSource () override | |
QMap< QUrl, KDevelop::VcsStatusInfo::State > | additionalSelectableFiles () const override |
QUrl | baseDir () const override |
uint | depth () const override |
QUrl | file () const override |
bool | isAlreadyApplied () const override |
QString | name () const override |
void | update () override |
![]() | |
virtual bool | canCancel () const |
virtual void | cancelReview () |
virtual bool | canSelectFiles () const |
virtual QWidget * | customWidget () const |
virtual bool | finishReview (const QList< QUrl > &selection) |
virtual QString | finishReviewCustomText () const |
virtual QIcon | icon () const |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Public Attributes | |
QUrl | m_base |
QUrl | m_file |
QList< KDevelop::VcsStatusInfo > | m_infos |
QString | m_name |
QMap< QUrl, KDevelop::VcsStatusInfo::State > | m_selectable |
VCSDiffUpdater * | m_updater |
Additional Inherited Members | |
![]() | |
using | Ptr = QPointer< IPatchSource > |
![]() | |
void | patchChanged () |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Detailed Description
Definition at line 66 of file vcsdiffpatchsources.h.
Constructor & Destructor Documentation
◆ VCSDiffPatchSource() [1/2]
|
explicit |
The ownership of the updater is taken.
Definition at line 129 of file vcsdiffpatchsources.cpp.
◆ VCSDiffPatchSource() [2/2]
|
explicit |
Definition at line 157 of file vcsdiffpatchsources.cpp.
◆ ~VCSDiffPatchSource()
|
override |
Definition at line 163 of file vcsdiffpatchsources.cpp.
Member Function Documentation
◆ additionalSelectableFiles()
|
overridevirtual |
May return an additional list of selectable files together with short description strings for this patch The default implementation returns an empty list.
Reimplemented from KDevelop::IPatchSource.
Definition at line 227 of file vcsdiffpatchsources.cpp.
◆ baseDir()
|
overridevirtual |
Should return the base-dir of the patch.
Implements KDevelop::IPatchSource.
Definition at line 169 of file vcsdiffpatchsources.cpp.
◆ depth()
|
overridevirtual |
Depth - number of directories to left-strip from paths in the patch - see "patch -p" Defaults to 0.
Reimplemented from KDevelop::IPatchSource.
Definition at line 181 of file vcsdiffpatchsources.cpp.
◆ file()
|
overridevirtual |
Name of the patch file.
Implements KDevelop::IPatchSource.
Definition at line 173 of file vcsdiffpatchsources.cpp.
◆ isAlreadyApplied()
|
inlineoverridevirtual |
Should tell if the patch is already applied on the local version.
Implements KDevelop::IPatchSource.
Definition at line 84 of file vcsdiffpatchsources.h.
◆ name()
|
overridevirtual |
Name of the patch, that will be shown in a combo box.
Should describe the patch in a useful way, for example "Difference to base in kdevplatform/language"
Implements KDevelop::IPatchSource.
Definition at line 177 of file vcsdiffpatchsources.cpp.
◆ update()
|
overridevirtual |
Explicit updating of the patch: If it is a dynamic patch, it should re-compare the files or whatever needs to be done If the patch has changed, patchChanged needs to be emitted.
Implements KDevelop::IPatchSource.
Definition at line 213 of file vcsdiffpatchsources.cpp.
Member Data Documentation
◆ m_base
QUrl VCSDiffPatchSource::m_base |
Definition at line 88 of file vcsdiffpatchsources.h.
◆ m_file
QUrl VCSDiffPatchSource::m_file |
Definition at line 88 of file vcsdiffpatchsources.h.
◆ m_infos
QList<KDevelop::VcsStatusInfo> VCSDiffPatchSource::m_infos |
Definition at line 91 of file vcsdiffpatchsources.h.
◆ m_name
QString VCSDiffPatchSource::m_name |
Definition at line 89 of file vcsdiffpatchsources.h.
◆ m_selectable
QMap<QUrl, KDevelop::VcsStatusInfo::State> VCSDiffPatchSource::m_selectable |
Definition at line 92 of file vcsdiffpatchsources.h.
◆ m_updater
VCSDiffUpdater* VCSDiffPatchSource::m_updater |
Definition at line 90 of file vcsdiffpatchsources.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 23:30:50 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.