-rw-r--r-- | core/launcher/desktop.cpp | 28 | ||||
-rw-r--r-- | core/launcher/desktop.h | 4 |
2 files changed, 18 insertions, 14 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 649862b..6771a66 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -42,7 +42,4 @@ | |||
42 | #include "qpe/custom.h" | 42 | #include "qpe/custom.h" |
43 | #endif | 43 | #endif |
44 | #if defined(QT_QWS_IPAQ) | ||
45 | #include "qpe/custom-ipaq.h" | ||
46 | #endif | ||
47 | 44 | ||
48 | #include <qgfx_qws.h> | 45 | #include <qgfx_qws.h> |
@@ -169,10 +166,9 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data ) | |||
169 | int k; | 166 | int k; |
170 | QString c, m; | 167 | QString c, m; |
171 | |||
172 | stream >> k; | 168 | stream >> k; |
173 | stream >> c; | 169 | stream >> c; |
174 | stream >> m; | 170 | stream >> m; |
175 | 171 | ||
176 | qWarning("KeyRegisterRecieved: %i, %s, %s", k, (const char*)c, (const char *)m); | 172 | qWarning("KeyRegisterReceived: %i, %s, %s", k, (const char*)c, (const char *)m ); |
177 | keyRegisterList.append(QCopKeyRegister(k,c,m)); | 173 | keyRegisterList.append(QCopKeyRegister(k,c,m)); |
178 | } | 174 | } |
@@ -195,5 +191,5 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
195 | return TRUE; | 191 | return TRUE; |
196 | bool press = ke->simpleData.is_press; | 192 | bool press = ke->simpleData.is_press; |
197 | bool autoRepeat = ke ->simpleData.is_auto_repeat; | 193 | bool autoRepeat= ke->simpleData.is_auto_repeat; |
198 | if (!keyRegisterList.isEmpty()) | 194 | if (!keyRegisterList.isEmpty()) |
199 | { | 195 | { |
@@ -201,6 +197,8 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
201 | for( it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) | 197 | for( it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) |
202 | { | 198 | { |
203 | if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) | 199 | if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) { |
204 | QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); | 200 | if(press) qDebug("press"); else qDebug("release"); |
201 | QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); | ||
202 | } | ||
205 | } | 203 | } |
206 | } | 204 | } |
@@ -742,8 +740,13 @@ void Desktop::terminateServers() | |||
742 | void Desktop::rereadVolumes() | 740 | void Desktop::rereadVolumes() |
743 | { | 741 | { |
744 | Config cfg("Sound"); | 742 | Config cfg("qpe"); |
745 | cfg.setGroup("System"); | 743 | cfg.setGroup("Volume"); |
746 | touchclick = cfg.readBoolEntry("Touch"); | 744 | touchclick = cfg.readBoolEntry("TouchSound"); |
747 | keyclick = cfg.readBoolEntry("Key"); | 745 | keyclick = cfg.readBoolEntry("KeySound"); |
746 | alarmsound = cfg.readBoolEntry("AlarmSound"); | ||
747 | // Config cfg("Sound"); | ||
748 | // cfg.setGroup("System"); | ||
749 | // touchclick = cfg.readBoolEntry("Touch"); | ||
750 | // keyclick = cfg.readBoolEntry("Key"); | ||
748 | } | 751 | } |
749 | 752 | ||
@@ -767,4 +770,5 @@ void Desktop::soundAlarm() | |||
767 | { | 770 | { |
768 | #ifdef CUSTOM_SOUND_ALARM | 771 | #ifdef CUSTOM_SOUND_ALARM |
772 | if (alarmsound) | ||
769 | CUSTOM_SOUND_ALARM; | 773 | CUSTOM_SOUND_ALARM; |
770 | #endif | 774 | #endif |
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h index e094dc0..9bc4be9 100644 --- a/core/launcher/desktop.h +++ b/core/launcher/desktop.h | |||
@@ -76,5 +76,5 @@ private: | |||
76 | PowerStatus *ps; | 76 | PowerStatus *ps; |
77 | QTimer *cardSendTimer; | 77 | QTimer *cardSendTimer; |
78 | QCopChannel *channel; | 78 | QCopChannel *channel; |
79 | }; | 79 | }; |
80 | 80 | ||
@@ -129,5 +129,5 @@ private: | |||
129 | 129 | ||
130 | QDateTime suspendTime; | 130 | QDateTime suspendTime; |
131 | bool keyclick,touchclick; | 131 | bool keyclick,touchclick,alarmsound; |
132 | }; | 132 | }; |
133 | 133 | ||