author | tille <tille> | 2002-06-25 20:10:42 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-25 20:10:42 (UTC) |
commit | 4c671979117dc8ec75c91ce543c7039730530a63 (patch) (side-by-side diff) | |
tree | 69995a8c917fba569814fd0475e7819a95d65ac5 /noncore/settings/netsystemtime/ntp.h | |
parent | af4a3940dd672423da28b54e5d955cc5d33cecda (diff) | |
download | opie-4c671979117dc8ec75c91ce543c7039730530a63.zip opie-4c671979117dc8ec75c91ce543c7039730530a63.tar.gz opie-4c671979117dc8ec75c91ce543c7039730530a63.tar.bz2 |
working
Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntp.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h index d2e238d..284ae27 100644 --- a/noncore/settings/netsystemtime/ntp.h +++ b/noncore/settings/netsystemtime/ntp.h @@ -3,5 +3,4 @@ #include "settime.h" #include <qdatetime.h> -#include <qtimer.h> class OProcess; @@ -17,15 +16,12 @@ public: ~Ntp(); - OProcess *ntpProcess; - protected: - virtual void accept(); + QDateTime predictedTime; + private: QString _ntpOutput; - int _maxOffset; float _shiftPerSec; -// QTimer *_nextCorrection; - int _minLookupDiff; + OProcess *ntpProcess; float getTimeShift(); @@ -35,6 +31,7 @@ private slots: void getNtpOutput(OProcess *proc, char *buffer, int buflen); void ntpFinished(OProcess*); -// void correctClock(); void preditctTime(); + void slotCheckNtp(int); + void setPredictTime(); }; |