summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_ramses.h
authorschurig <schurig>2004-09-09 10:19:13 (UTC)
committer schurig <schurig>2004-09-09 10:19:13 (UTC)
commitb3259d2dcf3599828a4eaa0d8de8148ca1839aef (patch) (unidiff)
tree5a5395da0f2476e6fec73abd1d4a953517d4e1d9 /libopie2/opiecore/device/odevice_ramses.h
parent57549dc20fdaf0c5d7784d2adbbbdc8dfebb70fa (diff)
downloadopie-b3259d2dcf3599828a4eaa0d8de8148ca1839aef.zip
opie-b3259d2dcf3599828a4eaa0d8de8148ca1839aef.tar.gz
opie-b3259d2dcf3599828a4eaa0d8de8148ca1839aef.tar.bz2
updates to MNCI
Diffstat (limited to 'libopie2/opiecore/device/odevice_ramses.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ramses.h34
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
@@ -25,53 +25,45 @@
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
37namespace Opie { 48namespace Opie {
38namespace Core { 49namespace Core {
39namespace Internal { 50namespace Internal {
40 51
41class Ramses : public ODevice, public QWSServer::KeyboardFilter 52class 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
63struct 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