KDE3Support
k3process.h
Go to the documentation of this file.
Definition k3process.h:128
void wroteStdin(K3Process *proc)
Emitted after all the data that has been specified by a prior call to writeStdin() has actually been ...
void slotChildError(int fdno)
This slot gets activated when data from the child's stderr arrives.
Definition k3process.cpp:666
virtual int commSetupDoneC()
Called right after a (successful) fork(), but before an exec() on the child process' side.
Definition k3process.cpp:911
bool keepPrivs
If false, the child process' effective uid & gid will be reset to the real values.
Definition k3process.h:690
virtual void processHasExited(int state)
Immediately called after a successfully started process in NotifyOnExit mode has exited.
Definition k3process.cpp:747
int childError(int fdno)
Called by slotChildError() this function copies data arriving from the child process' stderr to the r...
Definition k3process.cpp:785
QList< QByteArray > arguments
The list of the process' command line arguments.
Definition k3process.h:652
void receivedStdout(K3Process *proc, char *buffer, int buflen)
Emitted, when output from the child process has been received on stdout.
virtual void commClose()
Cleans up the communication links to the child after it has exited.
Definition k3process.cpp:959
@ DontCare
The application does not receive notifications from the subprocess when it is finished or aborted.
Definition k3process.h:170
@ OwnGroup
Same as NotifyOnExit, but the process is run in an own session, just like with DontCare.
Definition k3process.h:183
@ Block
The application is suspended until the started process is finished.
Definition k3process.h:178
void processExited(K3Process *proc)
Emitted after the process has terminated when the process was run in the NotifyOnExit (==default opti...
@ CTtyOnly
Tells setUsePty() to create a PTY for the process and make it the process' controlling TTY,...
Definition k3process.h:151
@ MergedStderr
If specified with Stdout, the process' stderr will be redirected onto the same file handle as its std...
Definition k3process.h:154
@ NoRead
If specified with Stdout, no data is actually read from stdout, only the signal receivedStdout(int fd...
Definition k3process.h:149
int childOutput(int fdno)
Called by slotChildOutput() this function copies data arriving from the child process' stdout to the ...
Definition k3process.cpp:762
void receivedStdout(int fd, int &len)
Emitted when output from the child process has been received on stdout.
Communication communication
Lists the communication links that are activated for the child process.
Definition k3process.h:808
void setupEnvironment()
Sets up the environment according to the data passed via setEnvironment()
Definition k3process.cpp:141
const char * input_data
The buffer holding the data that has to be sent to the child.
Definition k3process.h:827
const QList< QByteArray > & args()
Lets you see what your arguments are for debugging.
Definition k3process.h:435
void setBinaryExecutable(const char *filename)
Specify the actual executable that should be started (first argument to execve) Normally the first ar...
Definition k3process.cpp:204
void receivedStderr(K3Process *proc, char *buffer, int buflen)
Emitted, when output from the child process has been received on stderr.
void slotSendData(int dummy)
Called when another bulk of data can be sent to the child's stdin.
Definition k3process.cpp:673
void slotChildOutput(int fdno)
This slot gets activated when data from the child's stdout arrives.
Definition k3process.cpp:659
virtual int commSetupDoneP()
Called right after a (successful) fork() on the parent side.
Definition k3process.cpp:866
friend class K3ProcessController
K3ProcessController is a friend of K3Process because it has to have access to various data members.
Definition k3process.h:841
virtual int setupCommunication(Communication comm)
This function is called from start() right before a fork() takes place.
Definition k3process.cpp:800
virtual bool start(RunMode runmode=NotifyOnExit, Communication comm=NoCommunication)
Starts the process.
Definition k3process.cpp:1046
static pid_t pid
QDebug operator<<(QDebug dbg, const KEntry &entry)
int timeout
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.