kprocess.cpp
203 # if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__GNU__) && !defined(__APPLE__)
void setNextOpenMode(QIODevice::OpenMode mode)
Set the QIODevice open mode the process will be opened in.
Definition: kprocess.cpp:68
void setShellCommand(const QString &cmd)
Set a command to execute through a shell (a POSIX sh on *NIX and cmd.exe on Windows).
Definition: kprocess.cpp:181
QString & append(QChar ch)
void kill()
QStringList systemEnvironment()
bool startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid)
QString findExecutable(const QString &executableName, const QStringList &paths)
KProcess & operator<<(const QString &arg)
Append an element to the command line argument list for this process.
Definition: kprocess.cpp:146
typedef OpenMode
iterator erase(iterator pos)
void setOutputChannelMode(OutputChannelMode mode)
Set how to handle the output channels of the child process.
Definition: kprocess.cpp:58
ProcessChannelMode processChannelMode() const
void append(const T &value)
virtual qint64 size() const
QStringList program() const
Obtain the currently set program and arguments.
Definition: kprocess.cpp:249
QString fromUtf16(const ushort *unicode, int size)
void setEnv(const QString &name, const QString &value, bool overwrite=true)
Adds the variable name to the process' environment.
Definition: kprocess.cpp:82
QString symLinkTarget() const
bool isEmpty() const
int removeAll(const T &value)
typedef Iterator
KCOREADDONS_EXPORT QStringList splitArgs(const QString &cmd, Options flags=NoOptions, Errors *err=nullptr)
Splits cmd according to system shell word splitting and quoting rules.
Definition: kshell_unix.cpp:71
void unsetEnv(const QString &name)
Removes the variable name from the process' environment.
Definition: kprocess.cpp:103
iterator end()
Q_PID pid() const
void setProcessChannelMode(ProcessChannelMode mode)
void setEnvironment(const QStringList &environment)
Both standard output and standard error are forwarded to the parent process' respective channel...
Definition: kprocess.h:61
T takeFirst()
QString workingDirectory() const
int execute(int msecs=-1)
Start the process, wait for it to finish, and return the exit code.
Definition: kprocess.cpp:265
void prepend(const T &value)
QStringList environment() const
QObject * parent() const
void setNativeArguments(const QString &arguments)
QProcess::ExitStatus exitStatus() const
iterator begin()
int exitCode() const
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
Put the parser into full shell mode and bail out if a too complex construct is encountered.
Definition: kshell.h:80
OutputChannelMode outputChannelMode() const
Query how the output channels of the child process are handled.
Definition: kprocess.cpp:63
void setProgram(const QString &exe, const QStringList &args=QStringList())
Set the program and the command line arguments.
Definition: kprocess.cpp:123
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 15 2019 02:33:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sun Dec 15 2019 02:33:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.