Utils::CommandLine Class
class Utils::CommandLineThe CommandLine class represents a command line of a QProcess or similar utility. More...
| Header: | #include <commandline.h> |
Static Public Members
| Utils::CommandLine | inShell(const Utils::CommandLine &cmd) |
| Utils::CommandLine | inShell(const QString &script, const Utils::FilePath &device = {}) |
Member Function Documentation
[static] Utils::CommandLine CommandLine::inShell(const Utils::CommandLine &cmd)
Returns a command line that runs cmd through the shell of the device that the executable of cmd is on, cmd.exe /v:off /s /c on Windows and /bin/sh -c elsewhere.
This is needed when cmd contains shell constructs, such as commands joined by addCommandLineWithAnd().
[static] Utils::CommandLine CommandLine::inShell(const QString &script, const Utils::FilePath &device = {})
Returns a command line that runs script through the shell of device, cmd.exe /v:off /s /c on Windows and /bin/sh -c elsewhere. The default is the shell of the host.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.