• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdecore
k3processcontroller.h
Go to the documentation of this file.
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 K3PROCCTRL_H
21 #define K3PROCCTRL_H
22 
23 #include <QtCore/QList>
24 #include <k3process.h>
25 
26 
37 class KDE3SUPPORT_EXPORT_DEPRECATED K3ProcessController : public QObject
38 {
39  Q_OBJECT
40 
41 public:
46  static void ref();
47 
52  static void deref();
53 
58  static K3ProcessController *instance();
59 
67  static void theSigCHLDHandler(int signal); // KDE4: private
68 
78  bool waitForProcessExit(int timeout);
79 
84  void unscheduleCheck();
85 
90  void rescheduleCheck();
91 
92  /*
93  * Obtain the file descriptor K3ProcessController uses to get notified
94  * about process exits. select() or poll() on it if you create a custom
95  * event loop that needs to act upon SIGCHLD.
96  * @return the file descriptor of the reading end of the notification pipe
97  */
98  int notifierFd() const;
99 
103  void addKProcess( K3Process* );
107  void removeKProcess( K3Process* );
111  void addProcess( int pid );
112 
113 private Q_SLOTS:
114  void slotDoHousekeeping();
115 
116 private:
117  friend class I_just_love_gcc;
118 
119  static void setupHandlers();
120  static void resetHandlers();
121 
122  // Disallow instantiation
123  K3ProcessController();
124  ~K3ProcessController();
125 
126  // Disallow assignment and copy-construction
127  K3ProcessController( const K3ProcessController& );
128  K3ProcessController& operator= ( const K3ProcessController& );
129 
130  class Private;
131  Private * const d;
132 };
133 
134 #endif
135 
K3ProcessController
Used internally by K3Process.
Definition: k3processcontroller.h:37
timeout
int timeout
k3process.h
ref
void ref()
deref
void deref()
QObject
K3Process
Definition: k3process.h:127
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal