QtcProcess: Limit the inclusion of qtcprocess.h

Move the rest of QtcProcess enums to processenums.h.
Move ExitCodeInterpreter into processenums.h.
Remove superfluous Utils:: prefix.

Change-Id: Iaa596f353d33d6930085a621b114cc15a35caa80
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Jarek Kobus
2022-03-02 04:12:25 +01:00
parent 6ff1723c4c
commit 8e0ae8ba96
76 changed files with 335 additions and 301 deletions

View File

@@ -204,8 +204,8 @@ public:
{
if (cmd == DiffCommand) {
return [](int code) {
return (code < 0 || code > 2) ? QtcProcess::FinishedWithError
: QtcProcess::FinishedWithSuccess;
return (code < 0 || code > 2) ? ProcessResult::FinishedWithError
: ProcessResult::FinishedWithSuccess;
};
}
return {};
@@ -1452,15 +1452,15 @@ CvsResponse CvsPluginPrivate::runCvs(const FilePath &workingDirectory,
response.stdErr = proc.stdErr();
response.stdOut = proc.stdOut();
switch (proc.result()) {
case QtcProcess::FinishedWithSuccess:
case ProcessResult::FinishedWithSuccess:
response.result = CvsResponse::Ok;
break;
case QtcProcess::FinishedWithError:
case ProcessResult::FinishedWithError:
response.result = CvsResponse::NonNullExitCode;
break;
case QtcProcess::TerminatedAbnormally:
case QtcProcess::StartFailed:
case QtcProcess::Hang:
case ProcessResult::TerminatedAbnormally:
case ProcessResult::StartFailed:
case ProcessResult::Hang:
break;
}