-rw-r--r-- | core/launcher/stabmon.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/core/launcher/stabmon.cpp b/core/launcher/stabmon.cpp index 3d0d534..4e5f290 100644 --- a/core/launcher/stabmon.cpp +++ b/core/launcher/stabmon.cpp @@ -1,5 +1,5 @@ /********************************************************************** -** Copyright (C) 2000 Trolltech AS. All rights reserved. +** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** -** This file is part of Qtopia Environment. +** This file is part of the Qtopia Environment. ** @@ -23,3 +23,5 @@ -#include <qpe/qcopenvelope_qws.h> +#ifdef QWS +#include <qtopia/qcopenvelope_qws.h> +#endif @@ -29,3 +31,5 @@ #include <sys/stat.h> +#if defined(Q_OS_LINUX) || defined(_OS_LINUX_) #include <unistd.h> +#endif #include <stdlib.h> @@ -61,3 +65,5 @@ void SysFileMonitor::timerEvent(QTimerEvent*) if ( ch ) { +#ifndef QT_NO_COP QCopEnvelope("QPE/Card", "stabChanged()" ); +#endif break; @@ -65,3 +71,3 @@ void SysFileMonitor::timerEvent(QTimerEvent*) } - + // st_size is no use, it's 0 for /proc/mounts too. Read it all. @@ -75,3 +81,5 @@ void SysFileMonitor::timerEvent(QTimerEvent*) mtabSize = (int)ba.size(); +#ifndef QT_NO_COP QCopEnvelope("QPE/Card", "mtabChanged()" ); +#endif } @@ -86,5 +94,7 @@ void SysFileMonitor::timerEvent(QTimerEvent*) mtabSize = (int)s.length(); +#ifndef QT_NO_COP QCopEnvelope("QPE/Card", "mtabChanged()" ); +#endif } -#endif +#endif } |