kprocess.h
Provides a high level representation of a pseudo tty pair, including utmp support.
Definition kpty.h:40
virtual bool start(RunMode runmode=NotifyOnExit, Communication comm=NoCommunication)
Starts the process.
Definition kprocess.cpp:1120
virtual void processHasExited(int state)
Immediately called after a successfully started process in NotifyOnExit mode has exited.
Definition kprocess.cpp:812
virtual int commSetupDoneC()
Called right after a (successful) fork(), but before an exec() on the child process' side.
Definition kprocess.cpp:978
const TQValueList< TQCString > & args()
Lets you see what your arguments are for debugging.
Definition kprocess.h:472
virtual int commSetupDoneP()
Called right after a (successful) fork() on the parent side.
Definition kprocess.cpp:933
Communication communication
Lists the communication links that are activated for the child process.
Definition kprocess.h:852
int childError(int fdno)
Called by slotChildError() this function copies data arriving from the child process' stderr to the r...
Definition kprocess.cpp:850
void processExited(TDEProcess *proc)
Emitted after the process has terminated when the process was run in the NotifyOnExit (==default opti...
bool keepPrivs
If false, the child process' effective uid & gid will be reset to the real values.
Definition kprocess.h:734
@ OwnGroup
Same as NotifyOnExit, but the process is run in an own session, just like with DontCare.
Definition kprocess.h:187
@ DontCare
The application does not receive notifications from the subprocess when it is finished or aborted.
Definition kprocess.h:174
void setupEnvironment()
Sets up the environment according to the data passed via setEnvironment().
Definition kprocess.cpp:174
void slotSendData(int dummy)
Called when another bulk of data can be sent to the child's stdin.
Definition kprocess.cpp:736
TQValueList< TQCString > arguments
The list of the process' command line arguments.
Definition kprocess.h:696
friend class TDEProcessController
TDEProcessController is a friend of TDEProcess because it has to have access to various data members.
Definition kprocess.h:885
int childOutput(int fdno)
Called by slotChildOutput() this function copies data arriving from the child process' stdout to the ...
Definition kprocess.cpp:827
virtual void commClose()
Cleans up the communication links to the child after it has exited.
Definition kprocess.cpp:1028
void receivedStdout(int fd, int &len)
Emitted when output from the child process has been received on stdout.
virtual int setupCommunication(Communication comm)
This function is called from start() right before a fork() takes place.
Definition kprocess.cpp:865
void slotChildError(int fdno)
This slot gets activated when data from the child's stderr arrives.
Definition kprocess.cpp:729
void slotChildOutput(int fdno)
This slot gets activated when data from the child's stdout arrives.
Definition kprocess.cpp:722
const char * input_data
The buffer holding the data that has to be sent to the child.
Definition kprocess.h:871
void receivedStderr(TDEProcess *proc, char *buffer, int buflen)
Emitted, when output from the child process has been received on stderr.
void wroteStdin(TDEProcess *proc)
Emitted after all the data that has been specified by a prior call to writeStdin() has actually been ...
void setBinaryExecutable(const char *filename)
Specify the actual executable that should be started (first argument to execve) Normally the the firs...
Definition kprocess.cpp:241
void receivedStdout(TDEProcess *proc, char *buffer, int buflen)
Emitted, when output from the child process has been received on stdout.
Trinity API Reference