yaft: add "quiet" mode

run the command and collect the output, but do not show it on screen
This commit is contained in:
Stefan Seyfried
2018-01-07 23:11:23 +01:00
committed by Thilo Graf
parent 26365d58d1
commit d1392baac9
2 changed files with 13 additions and 6 deletions

View File

@@ -15,10 +15,11 @@ class YaFT : public sigc::trackable
{
private:
int *res;
bool paint;
public:
YaFT(const char * const *argv, int *Res, sigc::signal<void, std::string*, int*, bool*>);
YaFT(const char * const *argv, int *Res, bool Paint, sigc::signal<void, std::string*, int*, bool*>);
~YaFT();
int run();
int run(); /* returns exit code */
sigc::signal<void, std::string*, int*, bool*> OnShellOutputLoop;
};
#endif