author | wimpie <wimpie> | 2005-01-04 01:29:55 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:29:55 (UTC) |
commit | 5199338e990284244b8fe540d3fb4a36b24bae82 (patch) (unidiff) | |
tree | bbd17e6ab0998379a1a032851d27d78bd5db201f /libopie2/opiecore/device/odevice_genuineintel.h | |
parent | 1708efc66ceab63d93960a523e247bcbfafe6e7f (diff) | |
download | opie-5199338e990284244b8fe540d3fb4a36b24bae82.zip opie-5199338e990284244b8fe540d3fb4a36b24bae82.tar.gz opie-5199338e990284244b8fe540d3fb4a36b24bae82.tar.bz2 |
added odevice_genuine for pure INTEL based CPU
-> needed for system dependend applications. being LIKE
-> an IPAQ is not enough
Diffstat (limited to 'libopie2/opiecore/device/odevice_genuineintel.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_genuineintel.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_genuineintel.h b/libopie2/opiecore/device/odevice_genuineintel.h new file mode 100644 index 0000000..52c5fc6 --- a/dev/null +++ b/libopie2/opiecore/device/odevice_genuineintel.h | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | Copyright (C) The Opie Team <opie-devel@handhelds.org> | ||
4 | =. | ||
5 | .=l. | ||
6 | .>+-= | ||
7 | _;:, .> :=|. This program is free software; you can | ||
8 | .> <`_, > . <= redistribute it and/or modify it under | ||
9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
10 | .="- .-=="i, .._ License as published by the Free Software | ||
11 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
12 | ._= =} : or (at your option) any later version. | ||
13 | .%`+i> _;_. | ||
14 | .i_,=:_. -<s. This program is distributed in the hope that | ||
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
16 | : .. .:, . . . without even the implied warranty of | ||
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
19 | ..}^=.= = ; Library General Public License for more | ||
20 | ++= -. .` .: details. | ||
21 | : = ...= . :.=- | ||
22 | -. .:....=;==+<; You should have received a copy of the GNU | ||
23 | -_. . . )=. = Library General Public License along with | ||
24 | -- :-=` this library; see the file COPYING.LIB. | ||
25 | If not, write to the Free Software Foundation, | ||
26 | Inc., 59 Temple Place - Suite 330, | ||
27 | Boston, MA 02111-1307, USA. | ||
28 | */ | ||
29 | |||
30 | #ifndef ODEVICE_GENUINEINTEL | ||
31 | #define ODEVICE_GENUINEINTEL | ||
32 | |||
33 | #include "odevice.h" | ||
34 | |||
35 | /* QT */ | ||
36 | #include <qwindowsystem_qws.h> | ||
37 | |||
38 | namespace Opie { | ||
39 | namespace Core { | ||
40 | namespace Internal { | ||
41 | |||
42 | class GenuineIntel : public ODevice, public QWSServer::KeyboardFilter | ||
43 | { | ||
44 | |||
45 | protected: | ||
46 | virtual void init(const QString&); | ||
47 | virtual void initButtons(); | ||
48 | |||
49 | public: | ||
50 | virtual bool setSoftSuspend( bool soft ); | ||
51 | |||
52 | virtual bool setDisplayBrightness( int b ); | ||
53 | virtual int displayBrightnessResolution() const; | ||
54 | |||
55 | virtual void playAlarmSound(); | ||
56 | |||
57 | virtual QValueList <OLed> ledList() const; | ||
58 | virtual QValueList <OLedState> ledStateList( OLed led ) const; | ||
59 | virtual OLedState ledState( OLed led ) const; | ||
60 | virtual bool setLedState( OLed led, OLedState st ); | ||
61 | |||
62 | virtual bool hasLightSensor() const; | ||
63 | virtual int readLightSensor(); | ||
64 | virtual int lightSensorResolution() const; | ||
65 | protected: | ||
66 | virtual bool filter( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat ); | ||
67 | |||
68 | }; | ||
69 | |||
70 | struct gi_button { | ||
71 | Qt::Key code; | ||
72 | char *utext; | ||
73 | char *pix; | ||
74 | char *fpressedservice; | ||
75 | char *fpressedaction; | ||
76 | char *fheldservice; | ||
77 | char *fheldaction; | ||
78 | }; | ||
79 | |||
80 | } | ||
81 | } | ||
82 | } | ||
83 | |||
84 | #endif | ||