VcsCommand: Reuse ProcessProgress

Change-Id: I02116d1c7ff05471f7be61ecc33a7b54c57a78cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-10-10 09:58:19 +02:00
parent 07ca7f7b99
commit 9cb9bb0635
2 changed files with 21 additions and 66 deletions

View File

@@ -6,17 +6,14 @@
#include "vcsbase_global.h"
#include "vcsenums.h"
#include <coreplugin/progressmanager/processprogress.h>
#include <utils/filepath.h>
#include <utils/processenums.h>
#include <QObject>
QT_BEGIN_NAMESPACE
class QVariant;
template <typename T>
class QFuture;
template <typename T>
class QFutureInterface;
class QTextCodec;
QT_END_NAMESPACE
@@ -30,8 +27,6 @@ namespace VcsBase {
namespace Internal { class VcsCommandPrivate; }
using ProgressParser = std::function<void(QFutureInterface<void> &, const QString &)>;
class VCSBASE_EXPORT CommandResult
{
public:
@@ -79,7 +74,7 @@ public:
void setCodec(QTextCodec *codec);
void setProgressParser(const ProgressParser &parser);
void setProgressParser(const Core::ProgressParser &parser);
static CommandResult runBlocking(const Utils::FilePath &workingDirectory,
const Utils::Environment &environmentconst,