forked from qt-creator/qt-creator
Process: Get rid of ProcessInterpreter
Move it locally to the only one user: VcsCommand. For the future similar usages: use ProcessTask and tweak the DoneResult inside TaskDoneHandler. Change-Id: Icdffee7f1963f3ff377bfa6309e14bd1862a2c1f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "vcsbase_global.h"
|
||||
#include "vcsenums.h"
|
||||
|
||||
#include "vcsbaseclientsettings.h"
|
||||
#include "vcscommand.h"
|
||||
#include "vcsenums.h"
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/id.h>
|
||||
@@ -32,7 +32,6 @@ namespace VcsBase {
|
||||
class CommandResult;
|
||||
class VcsBaseEditorConfig;
|
||||
class VcsBaseEditorWidget;
|
||||
class VcsCommand;
|
||||
|
||||
using CommandHandler = std::function<void(const CommandResult &)>;
|
||||
|
||||
@@ -61,7 +60,7 @@ public:
|
||||
const QStringList &args) const;
|
||||
|
||||
void enqueueJob(VcsCommand *cmd, const QStringList &args,
|
||||
const Utils::ExitCodeInterpreter &interpreter = {}) const;
|
||||
const ExitCodeInterpreter &interpreter = {}) const;
|
||||
|
||||
virtual Utils::Environment processEnvironment() const;
|
||||
|
||||
@@ -207,7 +206,7 @@ public:
|
||||
protected:
|
||||
virtual QString vcsCommandString(VcsCommandTag cmd) const;
|
||||
virtual Utils::Id vcsEditorKind(VcsCommandTag cmd) const = 0;
|
||||
virtual Utils::ExitCodeInterpreter exitCodeInterpreter(VcsCommandTag cmd) const;
|
||||
virtual ExitCodeInterpreter exitCodeInterpreter(VcsCommandTag) const { return {}; }
|
||||
|
||||
virtual QStringList revisionSpec(const QString &/*revision*/) const { return {}; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user