summaryrefslogtreecommitdiff
path: root/core/launcher/main.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/main.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 347eee9..b3c331b 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -26,19 +26,19 @@
#include <qpe/network.h>
#include <qpe/config.h>
#if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ )
#include <qpe/custom.h>
#endif
+#include <opie/odevice.h>
+
#include <qfile.h>
#include <qwindowsystem_qws.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/alarmserver.h>
-#include <opie/ohwinfo.h>
-
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX)
@@ -190,13 +190,13 @@ class ModelKeyFilter : public QObject, public QWSServer::KeyboardFilter
{
public:
ModelKeyFilter ( ) : QObject ( 0, "MODEL_KEY_FILTER" )
{
bool doinst = false;
- m_model = OHwInfo::inst ( )-> model ( );
+ m_model = ODevice::inst ( )-> model ( );
m_power_timer = 0;
switch ( m_model ) {
case OMODEL_iPAQ_H31xx:
case OMODEL_iPAQ_H36xx:
case OMODEL_iPAQ_H37xx:
@@ -205,13 +205,13 @@ public:
default : break;
}
if ( doinst )
QWSServer::setKeyboardFilter ( this );
}
- virtual bool filter ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )
+ virtual bool filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, bool autoRepeat )
{
bool kill = false;
// Rotate cursor keys 180°
switch ( m_model ) {
case OMODEL_iPAQ_H31xx:
@@ -264,15 +264,14 @@ public:
m_power_timer = 0;
QWSServer::sendKeyEvent ( -1, Key_F35, 0, true, false );
QWSServer::sendKeyEvent ( -1, Key_F35, 0, false, false );
}
private:
- OHwModel m_model;
- bool m_power_press;
- int m_power_timer;
+ OModel m_model;
+ int m_power_timer;
};
int initApplication( int argc, char ** argv )
{