summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_simpad.cpp2
-rw-r--r--libopie2/opiecore/device/odevice_simpad.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/libopie2/opiecore/device/odevice_simpad.cpp b/libopie2/opiecore/device/odevice_simpad.cpp
index 6d4624b..76f03a0 100644
--- a/libopie2/opiecore/device/odevice_simpad.cpp
+++ b/libopie2/opiecore/device/odevice_simpad.cpp
@@ -114,13 +114,12 @@ struct s_button simpad_buttons [] = {
void SIMpad::init(const QString&)
{
d->m_vendorstr = "SIEMENS";
d->m_vendor = Vendor_SIEMENS;
- QFile f ( "/proc/hal/model" );
//TODO Implement model checking
//FIXME For now we assume an SL4
d->m_modelstr = "SL4";
d->m_model = Model_SIMpad_SL4;
@@ -132,13 +131,12 @@ void SIMpad::init(const QString&)
d->m_holdtime = 1000; // 1000ms
break;
}
//Distribution detecting code is now in base class
-
m_leds [0] = m_leds [1] = Led_Off;
m_power_timer = 0;
}
diff --git a/libopie2/opiecore/device/odevice_simpad.h b/libopie2/opiecore/device/odevice_simpad.h
index 0f4e66f..d9ae5a5 100644
--- a/libopie2/opiecore/device/odevice_simpad.h
+++ b/libopie2/opiecore/device/odevice_simpad.h
@@ -37,13 +37,13 @@
namespace Opie {
namespace Core {
namespace Internal {
class SIMpad : public ODevice, public QWSServer::KeyboardFilter
-{
+{
protected:
virtual void init(const QString&);
virtual void initButtons();
public:
virtual bool setSoftSuspend( bool soft );
@@ -63,13 +63,13 @@ class SIMpad : public ODevice, public QWSServer::KeyboardFilter
protected:
virtual bool filter( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat );
virtual void timerEvent( QTimerEvent *te );
int m_power_timer;
- OLedState m_leds [1];
+ OLedState m_leds [2];
};
struct s_button {
uint model;
Qt::Key code;
char *utext;