KDEsu
process.cpp
Go to the documentation of this file.
bool m_bTerminal
Indicates running in a terminal, causes additional newlines to be printed after output.
Definition: process.h:181
QDebug perror(QDebug s, KDebugTag)
void reserve(int size)
QList< QByteArray > environment() const
Returns the additional environment variables set by setEnvironment()
Definition: process.cpp:181
QByteArray readLine(bool block=true)
Reads a line from the program's standard out.
Definition: process.cpp:239
int timeout
bool isEmpty() const
bool startsWith(const QByteArray &ba) const
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
int length() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KSharedConfigPtr config()
void resize(int size)
int indexOf(char ch, int from) const
int count(const T &value) const
void output(QList< Action > actions, QHash< QString, QString > domain)
bool isEmpty() const
const char * constData() const
QByteArray readAll(bool block=true)
Read all available output from the program's standard out.
Definition: process.cpp:187
QByteArray m_Exit
String to scan for in output that indicates child has exited.
Definition: process.h:186
iterator end()
int exec(const QByteArray &command, const QList< QByteArray > &args)
Forks off and execute a command.
Definition: process.cpp:291
void writeLine(const QByteArray &line, bool addNewline=true)
Writes a line of text to the program's standard in.
Definition: process.cpp:264
void unreadLine(const QByteArray &line, bool addNewline=true)
Puts back a line of input.
Definition: process.cpp:273
void setEnvironment(const QList< QByteArray > &env)
Set additinal environment variables.
Definition: process.cpp:165
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
virtual void virtual_hook(int id, void *data)
Standard hack to add virtual methods in a BC way.
Definition: process.cpp:554
char * data()
static int checkPidExited(pid_t pid)
Check process exit status for process pid.
Definition: process.cpp:102
int size() const
#define k_lineinfo
QByteArray & remove(int pos, int len)
T readEntry(const QString &key, const T &aDefault) const
iterator begin()
int enableLocalEcho(bool enable=true)
Enables/disables local echo on the pseudo tty.
Definition: process.cpp:406
QByteArray encodeName(const QString &fileName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.