From cde931654d1966be6989e6c8f3cfacb23e6822a2 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 31 Aug 2005 10:21:12 +0000 Subject: - add support for the new Switches type in the Linux Input System (coming with 2.6.14) - use the new Switches support to rewrite the hinge sensor handling on Zaurus models w/ 2.6 - add Switches support to SysInfo, OInputSystem, oinputsystemdemo --- (limited to 'libopie2/opiecore/device/odevice_zaurus.h') diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h index 677e29f..bf30bc6 100644 --- a/libopie2/opiecore/device/odevice_zaurus.h +++ b/libopie2/opiecore/device/odevice_zaurus.h @@ -33,6 +33,7 @@ #include "odevice_abstractmobiledevice.h" /* QT */ +#include #include #ifndef ARRAY_SIZE @@ -99,6 +100,10 @@ class Zaurus : public OAbstractMobileDevice, public QWSServer::KeyboardFilter protected: virtual void init(const QString&); virtual void initButtons(); + void initHingeSensor(); + + protected slots: + void hingeSensorTriggered(); public: virtual bool setDisplayBrightness( int b ); @@ -128,6 +133,7 @@ class Zaurus : public OAbstractMobileDevice, public QWSServer::KeyboardFilter QString m_backlightdev; OLedState m_leds[1]; bool m_embedix; + QFile m_hinge; }; struct z_button { -- cgit v0.9.0.2