author | mickeyl <mickeyl> | 2005-09-03 18:01:49 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-09-03 18:01:49 (UTC) |
commit | de950b18690b8981a2bddaca68cbd5d48c71f689 (patch) (unidiff) | |
tree | 53e111efa326b6fbfb4e157c4c7d3776ea9af17b /libopie2/opiecore/device/odevice_zaurus.h | |
parent | ed772cdd53070ccc61c87a3b0e96769a9f558f71 (diff) | |
download | opie-de950b18690b8981a2bddaca68cbd5d48c71f689.zip opie-de950b18690b8981a2bddaca68cbd5d48c71f689.tar.gz opie-de950b18690b8981a2bddaca68cbd5d48c71f689.tar.bz2 |
fun with namespaces and moc... this patch fixes the hinge sensor on clamshell Zaurii
Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h index bf30bc6..8a66f9c 100644 --- a/libopie2/opiecore/device/odevice_zaurus.h +++ b/libopie2/opiecore/device/odevice_zaurus.h | |||
@@ -76,55 +76,58 @@ | |||
76 | #define SHARP_IOCTL_GET_ROTATION 0x413c | 76 | #define SHARP_IOCTL_GET_ROTATION 0x413c |
77 | 77 | ||
78 | #define APM_IOCGEVTSRC OD_IOR( 'A', 203, int ) | 78 | #define APM_IOCGEVTSRC OD_IOR( 'A', 203, int ) |
79 | #define APM_IOCSEVTSRC OD_IORW( 'A', 204, int ) | 79 | #define APM_IOCSEVTSRC OD_IORW( 'A', 204, int ) |
80 | #define APM_EVT_POWER_BUTTON (1 << 0) | 80 | #define APM_EVT_POWER_BUTTON (1 << 0) |
81 | 81 | ||
82 | // Brightness Embedix | 82 | // Brightness Embedix |
83 | #define SHARP_FL_IOCTL_DEVICE "/dev/sharp_fl" | 83 | #define SHARP_FL_IOCTL_DEVICE "/dev/sharp_fl" |
84 | #define SHARP_FL_IOCTL_ON 1 | 84 | #define SHARP_FL_IOCTL_ON 1 |
85 | #define SHARP_FL_IOCTL_OFF 2 | 85 | #define SHARP_FL_IOCTL_OFF 2 |
86 | #define SHARP_FL_IOCTL_STEP_CONTRAST 100 | 86 | #define SHARP_FL_IOCTL_STEP_CONTRAST 100 |
87 | #define SHARP_FL_IOCTL_GET_STEP_CONTRAST 101 | 87 | #define SHARP_FL_IOCTL_GET_STEP_CONTRAST 101 |
88 | #define SHARP_FL_IOCTL_GET_STEP 102 | 88 | #define SHARP_FL_IOCTL_GET_STEP 102 |
89 | 89 | ||
90 | // Vesa Standard | 90 | // Vesa Standard |
91 | #define FB_BLANK_UNBLANK 0 | 91 | #define FB_BLANK_UNBLANK 0 |
92 | #define FB_BLANK_POWERDOWN 4 | 92 | #define FB_BLANK_POWERDOWN 4 |
93 | 93 | ||
94 | namespace Opie { | 94 | namespace Opie { |
95 | namespace Core { | 95 | namespace Core { |
96 | namespace Internal { | 96 | namespace Internal { |
97 | 97 | ||
98 | class Zaurus : public OAbstractMobileDevice, public QWSServer::KeyboardFilter | 98 | class Zaurus : public OAbstractMobileDevice, public QWSServer::KeyboardFilter |
99 | { | 99 | { |
100 | Q_OBJECT | ||
101 | |||
100 | protected: | 102 | protected: |
101 | virtual void init(const QString&); | 103 | virtual void init(const QString&); |
102 | virtual void initButtons(); | 104 | virtual void initButtons(); |
103 | void initHingeSensor(); | 105 | void initHingeSensor(); |
104 | 106 | ||
105 | protected slots: | 107 | protected slots: |
106 | void hingeSensorTriggered(); | 108 | void hingeSensorTriggered(); |
109 | void systemMessage( const QCString &msg, const QByteArray & ); | ||
107 | 110 | ||
108 | public: | 111 | public: |
109 | virtual bool setDisplayBrightness( int b ); | 112 | virtual bool setDisplayBrightness( int b ); |
110 | virtual bool setDisplayStatus( bool on ); | 113 | virtual bool setDisplayStatus( bool on ); |
111 | virtual int displayBrightnessResolution() const; | 114 | virtual int displayBrightnessResolution() const; |
112 | 115 | ||
113 | virtual void playAlarmSound(); | 116 | virtual void playAlarmSound(); |
114 | virtual void playKeySound(); | 117 | virtual void playKeySound(); |
115 | virtual void playTouchSound(); | 118 | virtual void playTouchSound(); |
116 | 119 | ||
117 | virtual QValueList <OLed> ledList() const; | 120 | virtual QValueList <OLed> ledList() const; |
118 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; | 121 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; |
119 | virtual OLedState ledState( OLed led ) const; | 122 | virtual OLedState ledState( OLed led ) const; |
120 | virtual bool setLedState( OLed led, OLedState st ); | 123 | virtual bool setLedState( OLed led, OLedState st ); |
121 | 124 | ||
122 | virtual bool hasHingeSensor() const; | 125 | virtual bool hasHingeSensor() const; |
123 | virtual OHingeStatus readHingeSensor() const; | 126 | virtual OHingeStatus readHingeSensor() const; |
124 | 127 | ||
125 | virtual Transformation rotation() const; | 128 | virtual Transformation rotation() const; |
126 | virtual ODirection direction() const; | 129 | virtual ODirection direction() const; |
127 | virtual bool suspend(); | 130 | virtual bool suspend(); |
128 | 131 | ||
129 | protected: | 132 | protected: |
130 | virtual void buzzer( int snd ); | 133 | virtual void buzzer( int snd ); |