Diffstat (limited to 'libopie2/opiecore/device/odevice_ramses.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_ramses.h | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/libopie2/opiecore/device/odevice_ramses.h b/libopie2/opiecore/device/odevice_ramses.h index 3cf5e92..bbd3862 100644 --- a/libopie2/opiecore/device/odevice_ramses.h +++ b/libopie2/opiecore/device/odevice_ramses.h | |||
@@ -13,65 +13,57 @@ | |||
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; Library General Public License for more | 19 | ..}^=.= = ; Library General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifndef ODEVICE_RAMSES | 30 | #ifndef ODEVICE_RAMSES |
31 | #define ODEVICE_RAMSES | 31 | #define ODEVICE_RAMSES |
32 | 32 | ||
33 | #include <opie2/odevice.h> | 33 | #include <opie2/odevice.h> |
34 | /* QT */ | 34 | /* QT */ |
35 | #include <qwindowsystem_qws.h> | 35 | #include <qwindowsystem_qws.h> |
36 | 36 | ||
37 | |||
38 | #ifndef OD_IOC | ||
39 | #define OD_IOC(dir,type,number,size) (( dir << 30 ) | ( type << 8 ) | ( number ) | ( size << 16 )) | ||
40 | #define OD_IO(type,number) OD_IOC(0,type,number,0) | ||
41 | #define OD_IOW(type,number,size) OD_IOC(1,type,number,sizeof(size)) | ||
42 | #define OD_IOR(type,number,size) OD_IOC(2,type,number,sizeof(size)) | ||
43 | #define OD_IORW(type,number,size) OD_IOC(3,type,number,sizeof(size)) | ||
44 | #endif | ||
45 | |||
46 | |||
47 | |||
37 | namespace Opie { | 48 | namespace Opie { |
38 | namespace Core { | 49 | namespace Core { |
39 | namespace Internal { | 50 | namespace Internal { |
40 | 51 | ||
41 | class Ramses : public ODevice, public QWSServer::KeyboardFilter | 52 | class Ramses : public ODevice |
42 | { | 53 | { |
43 | protected: | 54 | protected: |
44 | virtual void init(const QString&); | 55 | virtual void init(const QString&); |
45 | 56 | ||
46 | public: | 57 | public: |
47 | virtual bool setSoftSuspend( bool soft ); | ||
48 | virtual bool suspend(); | 58 | virtual bool suspend(); |
49 | 59 | ||
50 | virtual bool setDisplayStatus( bool on ); | ||
51 | virtual bool setDisplayBrightness( int b ); | 60 | virtual bool setDisplayBrightness( int b ); |
52 | virtual int displayBrightnessResolution() const; | 61 | virtual int displayBrightnessResolution() const; |
53 | virtual bool setDisplayContrast( int b ); | 62 | virtual void playAlarmSound(); |
54 | virtual int displayContrastResolution() const; | ||
55 | |||
56 | protected: | ||
57 | virtual bool filter ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat ); | ||
58 | virtual void timerEvent ( QTimerEvent *te ); | ||
59 | |||
60 | int m_power_timer; | ||
61 | }; | 63 | }; |
62 | 64 | ||
63 | struct r_button { | ||
64 | uint model; | ||
65 | Qt::Key code; | ||
66 | char *utext; | ||
67 | char *pix; | ||
68 | char *fpressedservice; | ||
69 | char *fpressedaction; | ||
70 | char *fheldservice; | ||
71 | char *fheldaction; | ||
72 | }; | ||
73 | } | 65 | } |
74 | } | 66 | } |
75 | } | 67 | } |
76 | 68 | ||
77 | #endif | 69 | #endif |