summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_zaurus.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h
index c07fe07..f5c5172 100644
--- a/libopie2/opiecore/device/odevice_zaurus.h
+++ b/libopie2/opiecore/device/odevice_zaurus.h
@@ -39,51 +39,51 @@
39// _IO and friends are only defined in kernel headers ... 39// _IO and friends are only defined in kernel headers ...
40 40
41#define OD_IOC(dir,type,number,size) (( dir << 30 ) | ( type << 8 ) | ( number ) | ( size << 16 )) 41#define OD_IOC(dir,type,number,size) (( dir << 30 ) | ( type << 8 ) | ( number ) | ( size << 16 ))
42 42
43#define OD_IO(type,number) OD_IOC(0,type,number,0) 43#define OD_IO(type,number) OD_IOC(0,type,number,0)
44#define OD_IOW(type,number,size) OD_IOC(1,type,number,sizeof(size)) 44#define OD_IOW(type,number,size) OD_IOC(1,type,number,sizeof(size))
45#define OD_IOR(type,number,size) OD_IOC(2,type,number,sizeof(size)) 45#define OD_IOR(type,number,size) OD_IOC(2,type,number,sizeof(size))
46#define OD_IORW(type,number,size) OD_IOC(3,type,number,sizeof(size)) 46#define OD_IORW(type,number,size) OD_IOC(3,type,number,sizeof(size))
47 47
48using namespace Opie; 48using namespace Opie;
49 49
50class Zaurus : public ODevice 50class Zaurus : public ODevice
51{ 51{
52 52
53 protected: 53 protected:
54 virtual void init(); 54 virtual void init();
55 virtual void initButtons(); 55 virtual void initButtons();
56 56
57 public: 57 public:
58 virtual bool setSoftSuspend ( bool soft ); 58 virtual bool setSoftSuspend ( bool soft );
59 59
60 virtual bool setDisplayBrightness ( int b ); 60 virtual bool setDisplayBrightness ( int b );
61 virtual int displayBrightnessResolution() const; 61 virtual int displayBrightnessResolution() const;
62 62
63 virtual void alarmSound(); 63 virtual void playAlarmSound();
64 virtual void keySound(); 64 virtual void playKeySound();
65 virtual void touchSound(); 65 virtual void playTouchSound();
66 66
67 virtual QValueList <OLed> ledList() const; 67 virtual QValueList <OLed> ledList() const;
68 virtual QValueList <OLedState> ledStateList ( OLed led ) const; 68 virtual QValueList <OLedState> ledStateList ( OLed led ) const;
69 virtual OLedState ledState( OLed led ) const; 69 virtual OLedState ledState( OLed led ) const;
70 virtual bool setLedState( OLed led, OLedState st ); 70 virtual bool setLedState( OLed led, OLedState st );
71 71
72 virtual bool hasHingeSensor() const; 72 virtual bool hasHingeSensor() const;
73 virtual OHingeStatus readHingeSensor(); 73 virtual OHingeStatus readHingeSensor();
74 74
75 virtual bool suspend(); 75 virtual bool suspend();
76 virtual Transformation rotation() const; 76 virtual Transformation rotation() const;
77 virtual ODirection direction() const; 77 virtual ODirection direction() const;
78 78
79 protected: 79 protected:
80 virtual void buzzer ( int snd ); 80 virtual void buzzer ( int snd );
81 81
82 OLedState m_leds [1]; 82 OLedState m_leds [1];
83 bool m_embedix; 83 bool m_embedix;
84}; 84};
85 85
86struct z_button { 86struct z_button {
87 Qt::Key code; 87 Qt::Key code;
88 char *utext; 88 char *utext;
89 char *pix; 89 char *pix;