-rw-r--r-- | noncore/tools/clock/clock.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index a47793b..69d8214 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp | |||
@@ -387,9 +387,18 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data) | |||
387 | bSound=TRUE; | 387 | bSound=TRUE; |
388 | qDebug("Message received in clock"); | 388 | qDebug("Message received in clock"); |
389 | if ( msg == "alarm(QDateTime,int)" ) { | 389 | if ( msg == "alarm(QDateTime,int)" ) { |
390 | Config config( "qpe" ); | ||
391 | config.setGroup("Time"); | ||
392 | if(config.readBoolEntry("mp3Alarm",0)){ | ||
393 | |||
394 | QCopEnvelope e("QPE/Application/opieplayer","setDocument(QString)"); | ||
395 | e<<config.readEntry("mp3File",""); | ||
396 | } else { | ||
397 | |||
390 | Sound::soundAlarm(); | 398 | Sound::soundAlarm(); |
391 | stopTimer = startTimer( timerStay); | 399 | stopTimer = startTimer( timerStay); |
392 | } | 400 | } |
401 | } | ||
393 | show(); | 402 | show(); |
394 | raise(); | 403 | raise(); |
395 | QPEApplication::setKeepRunning(); | 404 | QPEApplication::setKeepRunning(); |