Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 733479e..ebe1949 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -217,52 +217,48 @@ void Zaurus::initButtons() | |||
217 | buttoncount = ARRAY_SIZE(z_buttons_c700); | 217 | buttoncount = ARRAY_SIZE(z_buttons_c700); |
218 | break; | 218 | break; |
219 | default: | 219 | default: |
220 | pz_buttons = z_buttons; | 220 | pz_buttons = z_buttons; |
221 | buttoncount = ARRAY_SIZE(z_buttons); | 221 | buttoncount = ARRAY_SIZE(z_buttons); |
222 | break; | 222 | break; |
223 | } | 223 | } |
224 | 224 | ||
225 | for ( int i = 0; i < buttoncount; i++ ) { | 225 | for ( int i = 0; i < buttoncount; i++ ) { |
226 | struct z_button *zb = pz_buttons + i; | 226 | struct z_button *zb = pz_buttons + i; |
227 | ODeviceButton b; | 227 | ODeviceButton b; |
228 | 228 | ||
229 | b. setKeycode ( zb->code ); | 229 | b. setKeycode ( zb->code ); |
230 | b. setUserText ( QObject::tr ( "Button", zb->utext )); | 230 | b. setUserText ( QObject::tr ( "Button", zb->utext )); |
231 | b. setPixmap ( Resource::loadPixmap ( zb->pix )); | 231 | b. setPixmap ( Resource::loadPixmap ( zb->pix )); |
232 | b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( zb->fpressedservice ), | 232 | b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( zb->fpressedservice ), |
233 | zb->fpressedaction )); | 233 | zb->fpressedaction )); |
234 | b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( zb->fheldservice ), | 234 | b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( zb->fheldservice ), |
235 | zb->fheldaction )); | 235 | zb->fheldaction )); |
236 | 236 | ||
237 | d->m_buttons->append ( b ); | 237 | d->m_buttons->append ( b ); |
238 | } | 238 | } |
239 | 239 | ||
240 | reloadButtonMapping(); | 240 | reloadButtonMapping(); |
241 | |||
242 | QCopChannel *sysch = new QCopChannel ( "QPE/System", this ); | ||
243 | connect ( sysch, SIGNAL( received(const QCString&,const QByteArray&)), | ||
244 | this, SLOT( systemMessage(const QCString&,const QByteArray&))); | ||
245 | } | 241 | } |
246 | 242 | ||
247 | #include <unistd.h> | 243 | #include <unistd.h> |
248 | #include <fcntl.h> | 244 | #include <fcntl.h> |
249 | #include <sys/ioctl.h> | 245 | #include <sys/ioctl.h> |
250 | 246 | ||
251 | //#include <asm/sharp_char.h> // including kernel headers is evil ... | 247 | //#include <asm/sharp_char.h> // including kernel headers is evil ... |
252 | 248 | ||
253 | #define SHARP_DEV_IOCTL_COMMAND_START 0x5680 | 249 | #define SHARP_DEV_IOCTL_COMMAND_START 0x5680 |
254 | 250 | ||
255 | #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) | 251 | #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) |
256 | #define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) | 252 | #define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) |
257 | 253 | ||
258 | #define SHARP_BUZ_TOUCHSOUND 1 /* touch panel sound */ | 254 | #define SHARP_BUZ_TOUCHSOUND 1 /* touch panel sound */ |
259 | #define SHARP_BUZ_KEYSOUND 2 /* key sound */ | 255 | #define SHARP_BUZ_KEYSOUND 2 /* key sound */ |
260 | #define SHARP_BUZ_SCHEDULE_ALARM 11 /* schedule alarm */ | 256 | #define SHARP_BUZ_SCHEDULE_ALARM 11 /* schedule alarm */ |
261 | 257 | ||
262 | /* --- for SHARP_BUZZER device --- */ | 258 | /* --- for SHARP_BUZZER device --- */ |
263 | 259 | ||
264 | //#defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) | 260 | //#defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) |
265 | //#define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) | 261 | //#define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) |
266 | 262 | ||
267 | #define SHARP_BUZZER_SETVOLUME (SHARP_BUZZER_IOCTL_START+1) | 263 | #define SHARP_BUZZER_SETVOLUME (SHARP_BUZZER_IOCTL_START+1) |
268 | #define SHARP_BUZZER_GETVOLUME (SHARP_BUZZER_IOCTL_START+2) | 264 | #define SHARP_BUZZER_GETVOLUME (SHARP_BUZZER_IOCTL_START+2) |