• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
tdeprocctrl.h
1/* This file is part of the KDE libraries
2 Copyright (C) 1997 Christian Czezakte (e9025461@student.tuwien.ac.at)
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __TDEPROCCTRL_H__
21#define __TDEPROCCTRL_H__
22
23#include <tqvaluelist.h>
24
25#include "tdeprocess.h"
26
27class TQSocketNotifier;
28
39class TDECORE_EXPORT TDEProcessController : public TQObject
40{
41 TQ_OBJECT
42
43public:
48 static void ref();
49
54 static void deref();
55
60 static TDEProcessController *theTDEProcessController; // kde4: rename: instance
61
69 static void theSigCHLDHandler(int signal); // KDE4: private
70
81 bool waitForProcessExit(int timeout);
82
88 void unscheduleCheck();
89
95 void rescheduleCheck();
96
97 /*
98 * Obtain the file descriptor TDEProcessController uses to get notified
99 * about process exits. select() or poll() on it if you create a custom
100 * event loop that needs to act upon SIGCHLD.
101 * @return the file descriptor of the reading end of the notification pipe
102 * @since 3.2
103 */
104 int notifierFd() const;
105
109 void addTDEProcess( TDEProcess* );
113 void removeTDEProcess( TDEProcess* );
117 void addProcess( int pid );
118
119private slots:
120 void slotDoHousekeeping();
121
122private:
123 friend class I_just_love_gcc;
124
125 int fd[2];
126 bool needcheck;
127 TQSocketNotifier *notifier;
128 TQValueList<TDEProcess*> kProcessList;
129 TQValueList<int> unixProcessList;
130
131 static void setupHandlers();
132 static void resetHandlers();
133 static struct sigaction oldChildHandlerData;
134 static bool handlerSet;
135
136 static int refCount;
137
138 // Disallow instantiation
139 TDEProcessController();
140 ~TDEProcessController();
141
142 // Disallow assignment and copy-construction
143 TDEProcessController( const TDEProcessController& );
144 TDEProcessController& operator= ( const TDEProcessController& );
145};
146
147
148
149#endif
150
TDEProcessController
Used internally by TDEProcess.
Definition: tdeprocctrl.h:40
TDEProcessController::theTDEProcessController
static TDEProcessController * theTDEProcessController
Only a single instance of this class is allowed at a time, and this static variable is used to track ...
Definition: tdeprocctrl.h:60
TDEProcess
Child process invocation, monitoring and control.
Definition: tdeprocess.h:131

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.