summaryrefslogtreecommitdiff
path: root/core
authorllornkcor <llornkcor>2002-05-23 02:01:23 (UTC)
committer llornkcor <llornkcor>2002-05-23 02:01:23 (UTC)
commit7cec3bc3d3b8945e80c9171b9173d3d2dbdd2eaf (patch) (unidiff)
tree6c196a83ee8688a692e843279dae918960418163 /core
parentae177d167999f204a968ea21ae4a4a804d939e6d (diff)
downloadopie-7cec3bc3d3b8945e80c9171b9173d3d2dbdd2eaf.zip
opie-7cec3bc3d3b8945e80c9171b9173d3d2dbdd2eaf.tar.gz
opie-7cec3bc3d3b8945e80c9171b9173d3d2dbdd2eaf.tar.bz2
make sound conform to sharps sense of conf
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/desktop.cpp24
-rw-r--r--core/launcher/desktop.h2
2 files changed, 15 insertions, 11 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
@@ -43,5 +43,2 @@
43#endif 43#endif
44#if defined(QT_QWS_IPAQ)
45#include "qpe/custom-ipaq.h"
46#endif
47 44
@@ -170,3 +167,2 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data )
170 QString c, m; 167 QString c, m;
171
172 stream >> k; 168 stream >> k;
@@ -175,3 +171,3 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data )
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));
@@ -202,3 +198,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
202 { 198 {
203 if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) 199 if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) {
200 if(press) qDebug("press"); else qDebug("release");
204 QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); 201 QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8());
@@ -206,2 +203,3 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
206 } 203 }
204 }
207 205
@@ -743,6 +741,11 @@ 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}
@@ -768,2 +771,3 @@ void Desktop::soundAlarm()
768#ifdef CUSTOM_SOUND_ALARM 771#ifdef CUSTOM_SOUND_ALARM
772 if (alarmsound)
769 CUSTOM_SOUND_ALARM; 773 CUSTOM_SOUND_ALARM;
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
@@ -130,3 +130,3 @@ private:
130 QDateTime suspendTime; 130 QDateTime suspendTime;
131 bool keyclick,touchclick; 131 bool keyclick,touchclick,alarmsound;
132}; 132};