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 | |||
@@ -2,7 +2,6 @@ | |||
2 | #define NTP_H | 2 | #define NTP_H |
3 | #include "settime.h" | 3 | #include "settime.h" |
4 | #include <qdatetime.h> | 4 | #include <qdatetime.h> |
5 | #include <qtimer.h> | ||
6 | 5 | ||
7 | class OProcess; | 6 | class OProcess; |
8 | class QString; | 7 | class QString; |
@@ -16,17 +15,14 @@ public: | |||
16 | Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 15 | Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
17 | ~Ntp(); | 16 | ~Ntp(); |
18 | 17 | ||
19 | OProcess *ntpProcess; | ||
20 | |||
21 | protected: | 18 | protected: |
22 | virtual void accept(); | 19 | QDateTime predictedTime; |
20 | |||
23 | 21 | ||
24 | private: | 22 | private: |
25 | QString _ntpOutput; | 23 | QString _ntpOutput; |
26 | int _maxOffset; | ||
27 | float _shiftPerSec; | 24 | float _shiftPerSec; |
28 | // QTimer *_nextCorrection; | 25 | OProcess *ntpProcess; |
29 | int _minLookupDiff; | ||
30 | 26 | ||
31 | float getTimeShift(); | 27 | float getTimeShift(); |
32 | void readLookups(); | 28 | void readLookups(); |
@@ -34,8 +30,9 @@ private slots: | |||
34 | void slotRunNtp(); | 30 | void slotRunNtp(); |
35 | void getNtpOutput(OProcess *proc, char *buffer, int buflen); | 31 | void getNtpOutput(OProcess *proc, char *buffer, int buflen); |
36 | void ntpFinished(OProcess*); | 32 | void ntpFinished(OProcess*); |
37 | // void correctClock(); | ||
38 | void preditctTime(); | 33 | void preditctTime(); |
34 | void slotCheckNtp(int); | ||
35 | void setPredictTime(); | ||
39 | }; | 36 | }; |
40 | 37 | ||
41 | #endif | 38 | #endif |