kdevplatform/vcs
dvcsjob.cpp
Go to the documentation of this file.
66 DVcsJob::DVcsJob(const QDir& workingDir, IPlugin* parent, OutputJob::OutputJobVerbosity verbosity)
138 endpos = stdoutbuf.lastIndexOf('\n')+1; // Include the final newline or become 0, when there is no newline
183 Q_ASSERT_X(d->status != JobRunning, "DVCSjob::start", "Another process was started using this job class");
187 QString error = i18n( "Working Directory does not exist: %1", d->childproc->workingDirectory() );
196 QString error = i18n( "Working Directory is not absolute: %1", d->childproc->workingDirectory() );
246 QString completeErrorText = i18n("Process '%1' exited with status %2\n%3", displayCommand, d->childproc->exitCode(), QString::fromLocal8Bit(d->errorOutput) );
bool exists() const
virtual void slotProcessError(QProcess::ProcessError)
Definition: dvcsjob.cpp:235
DVcsJob & operator<<(const QString &arg)
Call this method to set command to execute and its arguments.
Definition: dvcsjob.cpp:100
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
KDevelop::IPlugin * vcsPlugin() const override
Returns pointer to IPlugin (which was used to create a job).
Definition: dvcsjob.cpp:329
QString fromUtf8(const char *str, int size)
void setCommunicationMode(KProcess::OutputChannelMode comm)
In some cases it's needed to specify the communication mode between the process and the job object.
Definition: dvcsjob.cpp:221
void finished(int exitCode)
bool isAbsolute() const
int lastIndexOf(char ch, int from) const
DVcsJob(const QDir &workingDir, KDevelop::IPlugin *parent=nullptr, KDevelop::OutputJob::OutputJobVerbosity verbosity=KDevelop::OutputJob::Verbose)
Definition: dvcsjob.cpp:66
QString fromLocal8Bit(const char *str, int size)
void displayOutput(const QString &output)
Definition: dvcsjob.cpp:303
void resultsReady(KDevelop::VcsJob *)
This signal is emitted when new results are available.
~DVcsJob() override
QString toLocalFile() const
QString absolutePath() const
void setIgnoreError(bool ignore)
Ignore a non-zero exit code depending on ignore.
Definition: dvcsjob.cpp:158
This class provides an extension of KJob to get various VCS-specific information about the job.
Definition: vcsjob.h:43
const char * constData() const
QLatin1String("^[-+]{3} [ab]/(.*)"))) Q_GLOBAL_STATIC_WITH_ARGS(const QRegularExpression
Definition: dvcsevent.h:33
int size() const
QVariant fetchResults() override
Returns execution results stored in QVariant.
Definition: dvcsjob.cpp:172
QString & append(QChar ch)
void readyForParsing(KDevelop::DVcsJob *job)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 10 2021 23:31:23 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 10 2021 23:31:23 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.