MCPcopy Create free account
hub / github.com/KDE/kdevelop / processFinished

Method processFinished

plugins/executescript/scriptappjob.cpp:185–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185void ScriptAppJob::processFinished( int exitCode , QProcess::ExitStatus status )
186{
187 lineMaker->flushBuffers();
188
189 if (exitCode == 0 && status == QProcess::NormalExit) {
190 appendLine( i18n("*** Exited normally ***") );
191 } else if (status == QProcess::NormalExit) {
192 appendLine( i18n("*** Exited with return code: %1 ***", QString::number(exitCode)) );
193 setError(OutputJob::FailedShownError);
194 } else if (error() == KJob::KilledJobError) {
195 appendLine( i18n("*** Process aborted ***") );
196 setError(KJob::KilledJobError);
197 } else {
198 appendLine( i18n("*** Crashed with return code: %1 ***", QString::number(exitCode)) );
199 setError(OutputJob::FailedShownError);
200 }
201 qCDebug(PLUGIN_EXECUTESCRIPT) << "Process done";
202 emitResult();
203}
204
205void ScriptAppJob::processError( QProcess::ProcessError error )
206{

Callers

nothing calls this directly

Calls 1

flushBuffersMethod · 0.80

Tested by

no test coverage detected