Diffstat (limited to 'libopie2/opiecore/device/odevice_ramses.h') (more/less context) (ignore 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 | |||
@@ -35,9 +35,20 @@ | |||
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: |
@@ -45,30 +56,11 @@ class Ramses : public ODevice, public QWSServer::KeyboardFilter | |||
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 | } |