Diffstat (limited to 'noncore/tools/clock/clock.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/clock/clock.cpp | 13 |
1 files changed, 11 insertions, 2 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 @@ -307,4 +307,4 @@ void Clock::slotSetAlarm() if(ampm) { - if ( hour == 12 ) - hour = 0; + if ( hour == 12 ) + hour = 0; @@ -389,4 +389,13 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data) if ( msg == "alarm(QDateTime,int)" ) { + Config config( "qpe" ); + config.setGroup("Time"); + if(config.readBoolEntry("mp3Alarm",0)){ + + QCopEnvelope e("QPE/Application/opieplayer","setDocument(QString)"); + e<<config.readEntry("mp3File",""); + } else { + Sound::soundAlarm(); stopTimer = startTimer( timerStay); + } } |