summaryrefslogtreecommitdiff
path: root/core/launcher/stabmon.cpp
Unidiff
Diffstat (limited to 'core/launcher/stabmon.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/stabmon.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/launcher/stabmon.cpp b/core/launcher/stabmon.cpp
index 4e5f290..f2d694b 100644
--- a/core/launcher/stabmon.cpp
+++ b/core/launcher/stabmon.cpp
@@ -5,49 +5,48 @@
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 21
22#include "stabmon.h" 22#include "stabmon.h"
23 23
24#ifdef QWS 24#ifdef QWS
25#include <qtopia/qcopenvelope_qws.h> 25#include <qtopia/qcopenvelope_qws.h>
26#endif 26#endif
27 27
28#include <qfile.h> 28#include <qfile.h>
29#include <qcstring.h>
30 29
31#include <sys/stat.h> 30#include <sys/stat.h>
32#if defined(Q_OS_LINUX) || defined(_OS_LINUX_) 31#if defined(Q_OS_LINUX) || defined(_OS_LINUX_)
33#include <unistd.h> 32#include <unistd.h>
34#endif 33#endif
35#include <stdlib.h> 34#include <stdlib.h>
36 35
37SysFileMonitor::SysFileMonitor(QObject* parent) : 36SysFileMonitor::SysFileMonitor(QObject* parent) :
38 QObject(parent) 37 QObject(parent)
39{ 38{
40 startTimer(2000); 39 startTimer(2000);
41} 40}
42 41
43const char * stab0 = "/var/run/stab"; 42const char * stab0 = "/var/run/stab";
44const char * stab1 = "/var/state/pcmcia/stab"; 43const char * stab1 = "/var/state/pcmcia/stab";
45const char * stab2 = "/var/lib/pcmcia/stab"; 44const char * stab2 = "/var/lib/pcmcia/stab";
46 45
47void SysFileMonitor::timerEvent(QTimerEvent*) 46void SysFileMonitor::timerEvent(QTimerEvent*)
48{ 47{
49 struct stat s; 48 struct stat s;
50 49
51 static const char * tab [] = { 50 static const char * tab [] = {
52 stab0, 51 stab0,
53 stab1, 52 stab1,