summaryrefslogtreecommitdiff
authorzecke <zecke>2003-08-28 14:53:34 (UTC)
committer zecke <zecke>2003-08-28 14:53:34 (UTC)
commitfc83c75dd33cb31f80bfa2587a4b7689061deaa8 (patch) (unidiff)
treeadddb2bcc607716de8706ff5edfd51c7b3318f9d
parent0fac4909554179fa212c7c9e350735e0a058879e (diff)
downloadopie-fc83c75dd33cb31f80bfa2587a4b7689061deaa8.zip
opie-fc83c75dd33cb31f80bfa2587a4b7689061deaa8.tar.gz
opie-fc83c75dd33cb31f80bfa2587a4b7689061deaa8.tar.bz2
make it compile
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/applauncher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/applauncher.h b/core/launcher/applauncher.h
index 6a1e416..4fd5491 100644
--- a/core/launcher/applauncher.h
+++ b/core/launcher/applauncher.h
@@ -1,82 +1,82 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#ifndef APP_LAUNCHER_H 21#ifndef APP_LAUNCHER_H
22#define APP_LAUNCHER_H 22#define APP_LAUNCHER_H
23 23
24#include <qtopia/qpeglobal.h> 24#include <qtopia/global.h>
25#include <qobject.h> 25#include <qobject.h>
26#include <qmap.h> 26#include <qmap.h>
27#ifdef Q_OS_WIN32 27#ifdef Q_OS_WIN32
28#include <qtopia/qprocess.h> 28#include <qtopia/qprocess.h>
29#include <qlist.h> 29#include <qlist.h>
30#endif 30#endif
31 31
32class QMessageBox; 32class QMessageBox;
33 33
34class AppLauncher : public QObject 34class AppLauncher : public QObject
35{ 35{
36 Q_OBJECT 36 Q_OBJECT
37public: 37public:
38 AppLauncher(QObject *parent = 0, const char *name = 0); 38 AppLauncher(QObject *parent = 0, const char *name = 0);
39 ~AppLauncher(); 39 ~AppLauncher();
40 40
41 bool isRunning(const QString &app); 41 bool isRunning(const QString &app);
42 42
43 static const int RAISE_TIMEOUT_MS; 43 static const int RAISE_TIMEOUT_MS;
44 44
45signals: 45signals:
46 void launched(int pid, const QString &app); 46 void launched(int pid, const QString &app);
47 void terminated(int pid, const QString &app); 47 void terminated(int pid, const QString &app);
48 void connected(const QString &app); 48 void connected(const QString &app);
49 49
50protected slots: 50protected slots:
51 void sigStopped(int sigPid, int sigStatus); 51 void sigStopped(int sigPid, int sigStatus);
52 void received(const QCString& msg, const QByteArray& data); 52 void received(const QCString& msg, const QByteArray& data);
53 void newQcopChannel(const QString& channel); 53 void newQcopChannel(const QString& channel);
54 void removedQcopChannel(const QString& channel); 54 void removedQcopChannel(const QString& channel);
55 void createQuickLauncher(); 55 void createQuickLauncher();
56 void processExited(); 56 void processExited();
57 57
58protected: 58protected:
59 bool event(QEvent *); 59 bool event(QEvent *);
60 void timerEvent( QTimerEvent * ); 60 void timerEvent( QTimerEvent * );
61 61
62private: 62private:
63 static void signalHandler(int sig); 63 static void signalHandler(int sig);
64 bool executeBuiltin(const QString &c, const QString &document); 64 bool executeBuiltin(const QString &c, const QString &document);
65 bool execute(const QString &c, const QString &document, bool noRaise = FALSE); 65 bool execute(const QString &c, const QString &document, bool noRaise = FALSE);
66 void kill( int pid ); 66 void kill( int pid );
67 int pidForName( const QString & ); 67 int pidForName( const QString & );
68 68
69private: 69private:
70 QMap<int,QString> runningApps; 70 QMap<int,QString> runningApps;
71 QMap<QString,int> waitingHeartbeat; 71 QMap<QString,int> waitingHeartbeat;
72#ifdef Q_OS_WIN32 72#ifdef Q_OS_WIN32
73 QList<QProcess> runningAppsProc; 73 QList<QProcess> runningAppsProc;
74#endif 74#endif
75 int qlPid; 75 int qlPid;
76 bool qlReady; 76 bool qlReady;
77 QMessageBox *appKillerBox; 77 QMessageBox *appKillerBox;
78 QString appKillerName; 78 QString appKillerName;
79}; 79};
80 80
81#endif 81#endif
82 82