author | zecke <zecke> | 2004-07-13 13:20:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-13 13:20:17 (UTC) |
commit | 4a31bc0d4c9a30583200e866f21340448d41d1c2 (patch) (unidiff) | |
tree | 2123d65d18b6ca57227bdb8b3254e82d9ba31759 | |
parent | 37e0e077b51841971c3d4c25b287f4d39e750e2d (diff) | |
download | opie-4a31bc0d4c9a30583200e866f21340448d41d1c2.zip opie-4a31bc0d4c9a30583200e866f21340448d41d1c2.tar.gz opie-4a31bc0d4c9a30583200e866f21340448d41d1c2.tar.bz2 |
-Small clean up, we do not need to use the file anymore as all
model checking is done in the ODevice base class
-m_led[0] = m_led[1] = LedOff which size does m_led need? yeah two
-rw-r--r-- | libopie2/opiecore/device/odevice_simpad.cpp | 2 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_simpad.h | 4 |
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 | |||
@@ -116,9 +116,8 @@ void SIMpad::init(const QString&) | |||
116 | { | 116 | { |
117 | d->m_vendorstr = "SIEMENS"; | 117 | d->m_vendorstr = "SIEMENS"; |
118 | d->m_vendor = Vendor_SIEMENS; | 118 | d->m_vendor = Vendor_SIEMENS; |
119 | 119 | ||
120 | QFile f ( "/proc/hal/model" ); | ||
121 | 120 | ||
122 | //TODO Implement model checking | 121 | //TODO Implement model checking |
123 | //FIXME For now we assume an SL4 | 122 | //FIXME For now we assume an SL4 |
124 | 123 | ||
@@ -134,9 +133,8 @@ void SIMpad::init(const QString&) | |||
134 | break; | 133 | break; |
135 | } | 134 | } |
136 | 135 | ||
137 | //Distribution detecting code is now in base class | 136 | //Distribution detecting code is now in base class |
138 | |||
139 | m_leds [0] = m_leds [1] = Led_Off; | 137 | m_leds [0] = m_leds [1] = Led_Off; |
140 | 138 | ||
141 | m_power_timer = 0; | 139 | m_power_timer = 0; |
142 | 140 | ||
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 | |||
@@ -39,9 +39,9 @@ namespace Opie { | |||
39 | namespace Core { | 39 | namespace Core { |
40 | namespace Internal { | 40 | namespace Internal { |
41 | 41 | ||
42 | class SIMpad : public ODevice, public QWSServer::KeyboardFilter | 42 | class SIMpad : public ODevice, public QWSServer::KeyboardFilter |
43 | { | 43 | { |
44 | protected: | 44 | protected: |
45 | virtual void init(const QString&); | 45 | virtual void init(const QString&); |
46 | virtual void initButtons(); | 46 | virtual void initButtons(); |
47 | 47 | ||
@@ -65,9 +65,9 @@ class SIMpad : public ODevice, public QWSServer::KeyboardFilter | |||
65 | virtual void timerEvent( QTimerEvent *te ); | 65 | virtual void timerEvent( QTimerEvent *te ); |
66 | 66 | ||
67 | int m_power_timer; | 67 | int m_power_timer; |
68 | 68 | ||
69 | OLedState m_leds [1]; | 69 | OLedState m_leds [2]; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | struct s_button { | 72 | struct s_button { |
73 | uint model; | 73 | uint model; |