KCoreAddons
kprocess.cpp
186 #if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__GNU__) \
void setNextOpenMode(QIODevice::OpenMode mode)
Set the QIODevice open mode the process will be opened in.
Definition: kprocess.cpp:52
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:165
QString & append(QChar ch)
void kill()
QStringList systemEnvironment()
NormalExit
bool startDetached(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:130
typedef OpenMode
QList::iterator erase(QList::iterator pos)
void setOutputChannelMode(OutputChannelMode mode)
Set how to handle the output channels of the child process.
Definition: kprocess.cpp:42
QProcess::ProcessChannelMode processChannelMode() const const
void append(const T &value)
virtual qint64 size() const const
QStringList program() const
Obtain the currently set program and arguments.
Definition: kprocess.cpp:233
Q_PID pid() const const
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:66
QString symLinkTarget() const const
bool isEmpty() const 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:46
void unsetEnv(const QString &name)
Removes the variable name from the process' environment.
Definition: kprocess.cpp:87
QList::iterator end()
void setProcessChannelMode(QProcess::ProcessChannelMode mode)
void setEnvironment(const QStringList &environment)
Both standard output and standard error are forwarded to the parent process' respective channel...
Definition: kprocess.h:49
T takeFirst()
QString workingDirectory() const const
int execute(int msecs=-1)
Start the process, wait for it to finish, and return the exit code.
Definition: kprocess.cpp:249
void prepend(const T &value)
QStringList environment() const const
QObject * parent() const const
void setNativeArguments(const QString &arguments)
QProcess::ExitStatus exitStatus() const const
QList::iterator begin()
int exitCode() const const
void start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode)
Put the parser into full shell mode and bail out if a too complex construct is encountered.
Definition: kshell.h:67
OutputChannelMode outputChannelMode() const
Query how the output channels of the child process are handled.
Definition: kprocess.cpp:47
void setProgram(const QString &exe, const QStringList &args=QStringList())
Set the program and the command line arguments.
Definition: kprocess.cpp:107
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:01:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:01:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.