author | zautrix <zautrix> | 2005-04-08 23:40:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-08 23:40:38 (UTC) |
commit | a74c23d91e80343cd1ccfd1fe712958fad1d5891 (patch) (unidiff) | |
tree | 2dc90dffe822e1425ace17cdbf9e420fa0be6ac7 /kalarmd/simplealarmdaemonimpl.cpp | |
parent | c4bab697d650c249cdff45b753b9e6df2a817877 (diff) | |
download | kdepimpi-a74c23d91e80343cd1ccfd1fe712958fad1d5891.zip kdepimpi-a74c23d91e80343cd1ccfd1fe712958fad1d5891.tar.gz kdepimpi-a74c23d91e80343cd1ccfd1fe712958fad1d5891.tar.bz2 |
ad fix
Diffstat (limited to 'kalarmd/simplealarmdaemonimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index 294ce7d..2a463b3 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp | |||
@@ -302,13 +302,15 @@ void SimpleAlarmDaemonImpl::recieve( const QCString& msg, const QByteArray& ) | |||
302 | error = true; | 302 | error = true; |
303 | } | 303 | } |
304 | if ( error ) { | 304 | if ( error ) { |
305 | mAlarmMessage = "Procedure Alarm\nError - File not found\n"; | 305 | mAlarmMessage = "Procedure Alarm\nError - File not found\n"; |
306 | mAlarmMessage += mess.mid( 10+len+3+9 ); | 306 | mAlarmMessage += mess.mid( 10+len+3+9 ); |
307 | } else { | 307 | } else { |
308 | QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent"); | 308 | { |
309 | QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent"); | ||
310 | } | ||
309 | //qDebug("-----system command %s ",tempfilename.latin1() ); | 311 | //qDebug("-----system command %s ",tempfilename.latin1() ); |
310 | if ( vfork () == 0 ) { | 312 | if ( vfork () == 0 ) { |
311 | execl ( tempfilename.latin1(), 0 ); | 313 | execl ( tempfilename.latin1(), 0 ); |
312 | return; | 314 | return; |
313 | } | 315 | } |
314 | return; | 316 | return; |
@@ -615,14 +617,15 @@ void SimpleAlarmDaemonImpl::confTimer( int time ) | |||
615 | timerMesssage = mess; | 617 | timerMesssage = mess; |
616 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.latin1()); | 618 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.latin1()); |
617 | mTimerTime = 1; | 619 | mTimerTime = 1; |
618 | } | 620 | } |
619 | 621 | ||
620 | void SimpleAlarmDaemonImpl::writeFile() | 622 | void SimpleAlarmDaemonImpl::writeFile() |
621 | { | 623 | { |
622 | QCopEnvelope e("QPE/Application/kopi", "-writeFile"); | 624 | QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent"); |
625 | //QCopEnvelope e("QPE/Application/kopi", "-writeFile"); | ||
623 | } | 626 | } |
624 | void SimpleAlarmDaemonImpl::showWN() | 627 | void SimpleAlarmDaemonImpl::showWN() |
625 | { | 628 | { |
626 | QCopEnvelope e("QPE/Application/kopi", "-showWN"); | 629 | QCopEnvelope e("QPE/Application/kopi", "-showWN"); |
627 | } | 630 | } |
628 | void SimpleAlarmDaemonImpl::newTodo() | 631 | void SimpleAlarmDaemonImpl::newTodo() |