forked from qt-creator/qt-creator
Utils: Don't expose Utils::defaultExitCodeInterpreter
Instead, make its behavior implicit if none is given. Change-Id: I3c1a054751a0afe22d0f40a2fed6dd00b5aef205 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -108,10 +108,10 @@ public:
|
||||
|
||||
void addJob(const CommandLine &command,
|
||||
const QString &workingDirectory = QString(),
|
||||
const ExitCodeInterpreter &interpreter = defaultExitCodeInterpreter);
|
||||
const ExitCodeInterpreter &interpreter = {});
|
||||
void addJob(const CommandLine &command, int timeoutS,
|
||||
const QString &workingDirectory = QString(),
|
||||
const ExitCodeInterpreter &interpreter = defaultExitCodeInterpreter);
|
||||
const ExitCodeInterpreter &interpreter = {});
|
||||
void execute(); // Execute tasks asynchronously!
|
||||
void abort();
|
||||
bool lastExecutionSuccess() const;
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
virtual SynchronousProcessResponse runCommand(const CommandLine &command,
|
||||
int timeoutS,
|
||||
const QString &workingDirectory = QString(),
|
||||
const ExitCodeInterpreter &interpreter = defaultExitCodeInterpreter);
|
||||
const ExitCodeInterpreter &interpreter = {});
|
||||
|
||||
void cancel();
|
||||
|
||||
@@ -170,12 +170,12 @@ private:
|
||||
SynchronousProcessResponse runFullySynchronous(const CommandLine &cmd,
|
||||
QSharedPointer<OutputProxy> proxy,
|
||||
int timeoutS, const QString &workingDirectory,
|
||||
const ExitCodeInterpreter &interpreter = defaultExitCodeInterpreter);
|
||||
const ExitCodeInterpreter &interpreter = {});
|
||||
// Run with an event loop. Signals will be delivered.
|
||||
SynchronousProcessResponse runSynchronous(const CommandLine &cmd,
|
||||
QSharedPointer<OutputProxy> proxy,
|
||||
int timeoutS, const QString &workingDirectory,
|
||||
const ExitCodeInterpreter &interpreter = defaultExitCodeInterpreter);
|
||||
const ExitCodeInterpreter &interpreter = {});
|
||||
|
||||
class Internal::ShellCommandPrivate *const d;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user