-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 | |||
@@ -384,15 +384,24 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data) | |||
384 | { | 384 | { |
385 | int stopTimer = 0; | 385 | int stopTimer = 0; |
386 | int timerStay = 5000; | 386 | int timerStay = 5000; |
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(); |
396 | setActiveWindow(); | 405 | setActiveWindow(); |
397 | } | 406 | } |
398 | 407 | ||