.TH "KProcessController" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KProcessController \- Used internally by \fBKProcess\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kprocctrl.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "bool \fBwaitForProcessExit\fP (int timeout)"
.br
.ti -1c
.RI "void \fBunscheduleCheck\fP ()"
.br
.ti -1c
.RI "void \fBrescheduleCheck\fP ()"
.br
.ti -1c
.RI "int \fBnotifierFd\fP () const "
.br
.ti -1c
.RI "void \fBaddKProcess\fP (\fBKProcess\fP *)"
.br
.ti -1c
.RI "void \fBremoveKProcess\fP (\fBKProcess\fP *)"
.br
.ti -1c
.RI "void \fBaddProcess\fP (int pid)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static void \fBref\fP ()"
.br
.ti -1c
.RI "static void \fBderef\fP ()"
.br
.ti -1c
.RI "static void \fBtheSigCHLDHandler\fP (int signal)"
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static \fBKProcessController\fP * \fBtheKProcessController\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBI_just_love_gcc\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Used internally by \fBKProcess\fP. 
.PP
Definition at line 39 of file kprocctrl.h.
.SH "Member Function Documentation"
.PP 
.SS "void KProcessController::ref ()\fC [static]\fP"
.PP
Create an instance if none exists yet. 
.PP
Called by 
.PP
\fBSee also:\fP
.RS 4
\fBKApplication::KApplication()\fP 
.RE
.PP

.PP
Definition at line 39 of file kprocctrl.cpp.
.PP
References theKProcessController.
.PP
Referenced by KProcess::KProcess().
.SS "void KProcessController::deref ()\fC [static]\fP"
.PP
Destroy the instance if one exists and it is not referenced any more. 
.PP
Called by 
.PP
\fBSee also:\fP
.RS 4
KApplication::~KApplication() 
.RE
.PP

.PP
Definition at line 48 of file kprocctrl.cpp.
.PP
References theKProcessController.
.PP
Referenced by KProcess::~KProcess().
.SS "void KProcessController::theSigCHLDHandler (int signal)\fC [static]\fP"
.PP
Automatically called upon SIGCHLD. 
.PP
Never call it directly. If your application (or some library it uses) redirects SIGCHLD, the new signal handler (and only it) should call the old handler returned by sigaction(). 
.PP
Definition at line 147 of file kprocctrl.cpp.
.PP
References fd, and theKProcessController.
.SS "bool KProcessController::waitForProcessExit (int timeout)"
.PP
Wait for any process to exit and handle their exit without starting an event loop. 
.PP
This function may cause \fBKProcess\fP to emit any of its signals.
.PP
\fBParameters:\fP
.RS 4
\fItimeout\fP the timeout in seconds. -1 means no timeout. 
.RE
.PP
\fBReturns:\fP
.RS 4
true if a process exited, false if no process exited within \fCtimeout\fP seconds. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 223 of file kprocctrl.cpp.
.SS "void KProcessController::unscheduleCheck ()"
.PP
Call this function to defer processing of the data that became available on notifierFd(). 
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 170 of file kprocctrl.cpp.
.PP
Referenced by KProcess::start(), and KProcess::wait().
.SS "void KProcessController::rescheduleCheck ()"
.PP
This function \fImust\fP be called at some point after calling \fBunscheduleCheck()\fP. 
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 178 of file kprocctrl.cpp.
.PP
Referenced by KProcess::start(), and KProcess::wait().
.SH "Member Data Documentation"
.PP 
.SS "\fBKProcessController\fP * \fBKProcessController::theKProcessController\fP\fC [static]\fP"
.PP
Only a single instance of this class is allowed at a time, and this static variable is used to track the one instance. 
.PP
Definition at line 36 of file kprocctrl.cpp.
.PP
Referenced by deref(), ref(), and theSigCHLDHandler().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
