author | tille <tille> | 2002-07-06 16:11:39 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-06 16:11:39 (UTC) |
commit | 8beb5fcdbca8110dc586a7e620bf8eae892087fb (patch) (unidiff) | |
tree | e3f96de0e645f160fd54bdcb6b4c36a25f4437c1 | |
parent | b83751deab22e8e25d21265bd59ab53766109ca2 (diff) | |
download | opie-8beb5fcdbca8110dc586a7e620bf8eae892087fb.zip opie-8beb5fcdbca8110dc586a7e620bf8eae892087fb.tar.gz opie-8beb5fcdbca8110dc586a7e620bf8eae892087fb.tar.bz2 |
qcop calls
-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 10 | ||||
-rw-r--r-- | noncore/settings/netsystemtime/settime.cpp | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 2b779fa..15dae93 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp | |||
@@ -307,16 +307,20 @@ void Ntp::makeChannel() | |||
307 | } | 307 | } |
308 | 308 | ||
309 | 309 | ||
310 | 310 | ||
311 | void Ntp::receive(const QCString &msg, const QByteArray &arg) | 311 | void Ntp::receive(const QCString &msg, const QByteArray &arg) |
312 | { | 312 | { |
313 | qDebug("QCop "+msg+" "+QCString(arg)); | 313 | qDebug("QCop(Ntp) "+msg+" "+QCString(arg)); |
314 | if ( msg == "open(QString)" ) | 314 | if ( msg == "ntpLookup(QString)" ) |
315 | { | 315 | { |
316 | //qApp->exec(); | 316 | slotRunNtp(); |
317 | } | ||
318 | if ( msg == "setPredictedTime(QString)" ) | ||
319 | { | ||
320 | setPredictTime(); | ||
317 | }else{ | 321 | }else{ |
318 | qDebug("Ntp::receive: Huh what do ya want"); | 322 | qDebug("Ntp::receive: Huh what do ya want"); |
319 | } | 323 | } |
320 | } | 324 | } |
321 | 325 | ||
322 | void Ntp::setDocument(const QString &fileName) | 326 | void Ntp::setDocument(const QString &fileName) |
diff --git a/noncore/settings/netsystemtime/settime.cpp b/noncore/settings/netsystemtime/settime.cpp index 9c5323a..b0fcb74 100644 --- a/noncore/settings/netsystemtime/settime.cpp +++ b/noncore/settings/netsystemtime/settime.cpp | |||
@@ -265,15 +265,15 @@ void SetDateTime::setTime(QDateTime dt) | |||
265 | ::settimeofday( &myTv, 0 ); | 265 | ::settimeofday( &myTv, 0 ); |
266 | Global::writeHWClock(); | 266 | Global::writeHWClock(); |
267 | // since time has changed quickly load in the datebookdb | 267 | // since time has changed quickly load in the datebookdb |
268 | // to allow the alarm server to get a better grip on itself | 268 | // to allow the alarm server to get a better grip on itself |
269 | // (example re-trigger alarms for when we travel back in time) | 269 | // (example re-trigger alarms for when we travel back in time) |
270 | DateBookDB db; | 270 | DateBookDB db; |
271 | // Restore screensaver | 271 | // Restore screensaver |
272 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 272 | QCopEnvelope enableScreenSaver( "QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
273 | enableScreenSaver << -1 << -1 << -1; | 273 | enableScreenSaver << -1 << -1 << -1; |
274 | } | 274 | } |
275 | 275 | ||
276 | void SetDateTime::updateSystem(int i) | 276 | void SetDateTime::updateSystem(int i) |
277 | { | 277 | { |
278 | // really turn off the screensaver before doing anything | 278 | // really turn off the screensaver before doing anything |
279 | { | 279 | { |