author | harlekin <harlekin> | 2003-02-15 20:44:27 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-02-15 20:44:27 (UTC) |
commit | 10b6cb1e9262b174ec0d8dc095d9f668f2d3e094 (patch) (side-by-side diff) | |
tree | cbf28ef004a3777fb830d4068f4dde3e90e17b56 /noncore/net/opietooth/lib/kprocctrl.h | |
parent | 0b158c94f5d5567323871e80aefe85cf96d2d1a3 (diff) | |
download | opie-10b6cb1e9262b174ec0d8dc095d9f668f2d3e094.zip opie-10b6cb1e9262b174ec0d8dc095d9f668f2d3e094.tar.gz opie-10b6cb1e9262b174ec0d8dc095d9f668f2d3e094.tar.bz2 |
not needed anymore, there is oprocess
Diffstat (limited to 'noncore/net/opietooth/lib/kprocctrl.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/kprocctrl.h | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/noncore/net/opietooth/lib/kprocctrl.h b/noncore/net/opietooth/lib/kprocctrl.h deleted file mode 100644 index ac82b9d..0000000 --- a/noncore/net/opietooth/lib/kprocctrl.h +++ b/dev/null @@ -1,120 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 1997 Christian Czezakte (e9025461@student.tuwien.ac.at) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ -// -// KPROCESSCONTROLLER -- A helper class for KProcess -// -// version 0.3.1, Jan 8th 1997 -// -// (C) Christian Czezatke -// e9025461@student.tuwien.ac.at -// - -#ifndef __KPROCCTRL_H__ -#define __KPROCCTRL_H__ - -#include <qvaluelist.h> -#include <qtimer.h> - -#include "kprocess.h" - -class KProcessControllerPrivate; -class QSocketNotifier; - -/** - * @short Used internally by @ref KProcess - * @internal - * @author Christian Czezakte <e9025461@student.tuwien.ac.at> - * - * A class for internal use by KProcess only. -- Exactly one instance - * of this class is generated by the first instance of KProcess that is - * created (a pointer to it gets stored in @ref theKProcessController ). - * - * This class takes care of the actual (UN*X) signal handling. -*/ -class KProcessController : public QObject -{ - Q_OBJECT - -public: - KProcessController(); - ~KProcessController(); - //CC: WARNING! Destructor Not virtual (but you don't derive classes from this anyhow...) - -public: - - /** - * Only a single instance of this class is allowed at a time, - * and this static variable is used to track the one instance. - */ - static KProcessController *theKProcessController; - - /** - * Automatically called upon SIGCHLD. - * - * Normally you do not need to do anything with this function but - * if your application needs to disable SIGCHLD for some time for - * reasons beyond your control, you should call this function afterwards - * to make sure that no SIGCHLDs where missed. - */ - static void theSigCHLDHandler(int signal); - // handler for sigchld - - /** - * @internal - */ - static void setupHandlers(); - /** - * @internal - */ - static void resetHandlers(); - /** - * @internal - */ - void addKProcess( KProcess* ); - /** - * @internal - */ - void removeKProcess( KProcess* ); - public slots: - /** - * @internal - */ - void slotDoHousekeeping(int socket); - - private slots: - void delayedChildrenCleanup(); -private: - int fd[2]; - QSocketNotifier *notifier; - static struct sigaction oldChildHandlerData; - static bool handlerSet; - QValueList<KProcess*> processList; - QTimer delayedChildrenCleanupTimer; - - // Disallow assignment and copy-construction - KProcessController( const KProcessController& ); - KProcessController& operator= ( const KProcessController& ); - - KProcessControllerPrivate *d; -}; - - - -#endif - |