12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
A wrapper around ExternalProcess to conveniently show a MessageBox when an error occurs.
Definition: ExternalProcessMBox.h:29
ExternalProcess::RETURNSTATE run(QWidget *parent, const QString &exe, const QStringList &args, const QString &working_dir, const bool verbose, String &error_msg)
Runs a program by calling ExternalProcess::run and shows any error reported in error_msg as a Message...
void setCallbacks(std::function< void(const String &)> callbackStdOut, std::function< void(const String &)> callbackStdErr)
re-wire the callbacks used using run()
ExternalProcess ep_
Definition: ExternalProcessMBox.h:63
~ExternalProcessMBox()
D'tor.
ExternalProcessMBox(std::function< void(const String &)> callbackStdOut, std::function< void(const String &)> callbackStdErr)
set the callback functions to process stdout and stderr output when the external process generates it
ExternalProcess::RETURNSTATE run(QWidget *parent, const QString &exe, const QStringList &args, const QString &working_dir, const bool verbose)
Same as other overload, just without a returned error message.
ExternalProcessMBox()
default Ctor; callbacks for stdout/stderr are empty
A wrapper around QProcess to conveniently start an external program and forward its outputs.
Definition: ExternalProcess.h:38
RETURNSTATE
result of calling an external executable
Definition: ExternalProcess.h:44
A more convenient string class.
Definition: String.h:34
int verbose
Verbosity level ( "-v" is 1 and "-V" is 2 )
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19