summaryrefslogtreecommitdiff
path: root/library
authorsandman <sandman>2002-06-27 01:39:00 (UTC)
committer sandman <sandman>2002-06-27 01:39:00 (UTC)
commited8d1696ca8f0407cb7e6b91cc8d410dede5ccdc (patch) (unidiff)
treeac60a3f150442a35d13fbe90733a70f891c81a28 /library
parenta86c09e8a12b504471ffeb8966e34a79dd8518b5 (diff)
downloadopie-ed8d1696ca8f0407cb7e6b91cc8d410dede5ccdc.zip
opie-ed8d1696ca8f0407cb7e6b91cc8d410dede5ccdc.tar.gz
opie-ed8d1696ca8f0407cb7e6b91cc8d410dede5ccdc.tar.bz2
Including kernel headers in user space apps is bad .. just copy the defines
(There were problems with some toolchain configurations)
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 87a9739..76d62ef 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -19,65 +19,76 @@
19** $Id$ 19** $Id$
20** 20**
21**********************************************************************/ 21**********************************************************************/
22#define QTOPIA_INTERNAL_LANGLIST 22#define QTOPIA_INTERNAL_LANGLIST
23#include <stdlib.h> 23#include <stdlib.h>
24#include <unistd.h> 24#include <unistd.h>
25#include <qfile.h> 25#include <qfile.h>
26#ifdef Q_WS_QWS 26#ifdef Q_WS_QWS
27#ifndef QT_NO_COP 27#ifndef QT_NO_COP
28#if QT_VERSION <= 231 28#if QT_VERSION <= 231
29#define private public 29#define private public
30#define sendLocally processEvent 30#define sendLocally processEvent
31#include "qcopenvelope_qws.h" 31#include "qcopenvelope_qws.h"
32#undef private 32#undef private
33#else 33#else
34#include "qcopenvelope_qws.h" 34#include "qcopenvelope_qws.h"
35#endif 35#endif
36#endif 36#endif
37#include <qwindowsystem_qws.h> 37#include <qwindowsystem_qws.h>
38#endif 38#endif
39#include <qtextstream.h> 39#include <qtextstream.h>
40#include <qpalette.h> 40#include <qpalette.h>
41#include <qbuffer.h> 41#include <qbuffer.h>
42#include <qptrdict.h> 42#include <qptrdict.h>
43#include <qregexp.h> 43#include <qregexp.h>
44#include <qdir.h> 44#include <qdir.h>
45#include <qlabel.h> 45#include <qlabel.h>
46#include <qdialog.h> 46#include <qdialog.h>
47#include <qdragobject.h> 47#include <qdragobject.h>
48#include <qevent.h> 48#include <qevent.h>
49#include <qtooltip.h> 49#include <qtooltip.h>
50#include <qsignal.h> 50#include <qsignal.h>
51#include <linux/fb.h> 51
52
53//#include <linux/fb.h> better not rely on kernel headers in userspace ...
54
55/* VESA Blanking Levels */
56#define VESA_NO_BLANKING 0
57#define VESA_VSYNC_SUSPEND 1
58#define VESA_HSYNC_SUSPEND 2
59#define VESA_POWERDOWN 3
60
61#define FBIOBLANK 0x4611
62
52 63
53#include <qsignal.h> 64#include <qsignal.h>
54#include "qpeapplication.h" 65#include "qpeapplication.h"
55#include "qpestyle.h" 66#include "qpestyle.h"
56#if QT_VERSION >= 300 67#if QT_VERSION >= 300
57#include <qstylefactory.h> 68#include <qstylefactory.h>
58#else 69#else
59#include <qplatinumstyle.h> 70#include <qplatinumstyle.h>
60#include <qwindowsstyle.h> 71#include <qwindowsstyle.h>
61#include <qmotifstyle.h> 72#include <qmotifstyle.h>
62#include <qmotifplusstyle.h> 73#include <qmotifplusstyle.h>
63#include "lightstyle.h" 74#include "lightstyle.h"
64#endif 75#endif
65#include "global.h" 76#include "global.h"
66#include "resource.h" 77#include "resource.h"
67#if QT_VERSION <= 230 && defined(QT_NO_CODECS) 78#if QT_VERSION <= 230 && defined(QT_NO_CODECS)
68#include "qutfcodec.h" 79#include "qutfcodec.h"
69#endif 80#endif
70#include "config.h" 81#include "config.h"
71#include "network.h" 82#include "network.h"
72#include "fontmanager.h" 83#include "fontmanager.h"
73#include "fontdatabase.h" 84#include "fontdatabase.h"
74 85
75#include "power.h" 86#include "power.h"
76#include "alarmserver.h" 87#include "alarmserver.h"
77#include "applnk.h" 88#include "applnk.h"
78#include "qpemenubar.h" 89#include "qpemenubar.h"
79 90
80#include <unistd.h> 91#include <unistd.h>
81#include <sys/file.h> 92#include <sys/file.h>
82#include <sys/ioctl.h> 93#include <sys/ioctl.h>
83#include <sys/soundcard.h> 94#include <sys/soundcard.h>