diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-09-07 11:17:27 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-09-07 11:24:33 +0000 |
commit | c4b50488362ec72bfe053f66ae5cdf6a7417c4f1 (patch) | |
tree | 7a3084978b5c2ceb0d911487ff7728d7a47f8ccf /src/libs/utils/shellcommand.h | |
parent | 4342eeab33ce9dbacdb95fb6d03140c1261e289d (diff) |
ShellCommand: Show some progress information without progress parser
Show magically timed progress when running a shell command without a
progress parser. The assumption is that the timeout is much larger than
the expected runtime, but still an indicator for how long it might take.
Progress manager does its magic on top of that.
This is e.g. used for the update info plugin, for which checking for
updates might take quite some while.
Change-Id: Ib3d3d37b86fac17816fe592e39e26a3d484bba26
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/libs/utils/shellcommand.h')
-rw-r--r-- | src/libs/utils/shellcommand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/shellcommand.h b/src/libs/utils/shellcommand.h index ce5957c40af..c8bf38af111 100644 --- a/src/libs/utils/shellcommand.h +++ b/src/libs/utils/shellcommand.h @@ -136,6 +136,7 @@ public: void setCodec(QTextCodec *codec); void setProgressParser(ProgressParser *parser); + bool hasProgressParser() const; void setProgressiveOutput(bool progressive); void setOutputProxyFactory(const std::function<OutputProxy *()> &factory); @@ -161,6 +162,7 @@ signals: protected: virtual unsigned processFlags() const; virtual void addTask(QFuture<void> &future); + int timeoutS() const; QString workDirectory(const QString &wd) const; private: |