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

KDE3Support

k3processcontroller.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1997 Christian Czezakte (e9025461@student.tuwien.ac.at)
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef K3PROCCTRL_H
00021 #define K3PROCCTRL_H
00022 
00023 #include <QtCore/QList>
00024 #include <k3process.h>
00025 
00026 
00037 class KDE3SUPPORT_EXPORT_DEPRECATED K3ProcessController : public QObject
00038 {
00039   Q_OBJECT
00040 
00041 public:
00046   static void ref();
00047 
00052   static void deref();
00053 
00058   static K3ProcessController *instance();
00059 
00067   static void theSigCHLDHandler(int signal); // KDE4: private
00068 
00078   bool waitForProcessExit(int timeout);
00079 
00084   void unscheduleCheck();
00085 
00090   void rescheduleCheck();
00091 
00092   /*
00093    * Obtain the file descriptor K3ProcessController uses to get notified
00094    * about process exits. select() or poll() on it if you create a custom
00095    * event loop that needs to act upon SIGCHLD.
00096    * @return the file descriptor of the reading end of the notification pipe
00097    */
00098   int notifierFd() const;
00099 
00103   void addKProcess( K3Process* );
00107   void removeKProcess( K3Process* );
00111   void addProcess( int pid );
00112 
00113 private Q_SLOTS:
00114   void slotDoHousekeeping();
00115 
00116 private:
00117   friend class I_just_love_gcc;
00118 
00119   static void setupHandlers();
00120   static void resetHandlers();
00121 
00122   // Disallow instantiation
00123   K3ProcessController();
00124   ~K3ProcessController();
00125 
00126   // Disallow assignment and copy-construction
00127   K3ProcessController( const K3ProcessController& );
00128   K3ProcessController& operator= ( const K3ProcessController& );
00129 
00130   class Private;
00131   Private * const d;
00132 };
00133 
00134 #endif
00135 

KDE3Support

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal