Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index a75f566..8a7e252 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -159,2 +159,3 @@ void Zaurus::init(const QString& cpu_info) { + qDebug( "Zaurus::init()" ); // Set the time to wait until the system is really suspended @@ -261,2 +262,3 @@ void Zaurus::init(const QString& cpu_info) case Model_Zaurus_SLC7x0: + initHingeSensor(); d->m_rotation = rotation(); @@ -291,2 +293,3 @@ void Zaurus::initButtons() { + qDebug( "Zaurus::initButtons()" ); if ( d->m_buttons ) @@ -309,5 +312,4 @@ void Zaurus::initButtons() if ( isQWS( ) ) - { // setup hinge sensor stuff + { addPreHandler(this); - initHingeSensor(); } @@ -603,2 +605,3 @@ Transformation Zaurus::rotation() const + qDebug( "Zaurus::rotation() - returning '%d'", rot ); return rot; @@ -707,3 +710,3 @@ void Zaurus::initHingeSensor() { - qDebug( "Zaurus::init() - Couldn't open /dev/input/event0 for read (%s)", strerror( errno ) ); + qWarning( "Zaurus::init() - Couldn't open /dev/input/event0 for read (%s)", strerror( errno ) ); return; @@ -713,2 +716,4 @@ void Zaurus::initHingeSensor() QObject::connect( sn, SIGNAL(activated(int)), this, SLOT(hingeSensorTriggered()) ); + + qDebug( "Zaurus::init() - Hinge Sensor Initialization successfully completed" ); } @@ -731,2 +736,9 @@ void Zaurus::hingeSensorTriggered() +void Zaurus::systemMessage( const QCString &msg, const QByteArray & ) +{ + if ( msg == "deviceButtonMappingChanged()" ) { + reloadButtonMapping(); + } +} + /* |