author | zecke <zecke> | 2004-10-13 13:00:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-13 13:00:45 (UTC) |
commit | 72065f1f1aa12882ae63f8b063312e96dd683156 (patch) (unidiff) | |
tree | 0e4a68f4aac3cc8686987d03adc323a795db6b5c /libopie2/opiecore/device/odevice_zaurus.cpp | |
parent | c931e96eb4bf7df64bca49c2343f2203bac637ba (diff) | |
download | opie-72065f1f1aa12882ae63f8b063312e96dd683156.zip opie-72065f1f1aa12882ae63f8b063312e96dd683156.tar.gz opie-72065f1f1aa12882ae63f8b063312e96dd683156.tar.bz2 |
-Create the QPE/System channel in ODevice to listen for button remapping
-Remove various connect and QCopChannel creation from actual device implementations
Let us see if that breaks anything, I hope SIMpad still will do fine. We might need to
guard if a qApp exists?
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 | |||
@@ -229,28 +229,24 @@ void Zaurus::initButtons() | |||
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) |