summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.h
authortille <tille>2002-06-25 20:10:42 (UTC)
committer tille <tille>2002-06-25 20:10:42 (UTC)
commit4c671979117dc8ec75c91ce543c7039730530a63 (patch) (side-by-side diff)
tree69995a8c917fba569814fd0475e7819a95d65ac5 /noncore/settings/netsystemtime/ntp.h
parentaf4a3940dd672423da28b54e5d955cc5d33cecda (diff)
downloadopie-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.h13
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 @@
#define NTP_H
#include "settime.h"
#include <qdatetime.h>
-#include <qtimer.h>
class OProcess;
class QString;
@@ -16,17 +15,14 @@ public:
Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Ntp();
- OProcess *ntpProcess;
-
protected:
- virtual void accept();
+ QDateTime predictedTime;
+
private:
QString _ntpOutput;
- int _maxOffset;
float _shiftPerSec;
-// QTimer *_nextCorrection;
- int _minLookupDiff;
+ OProcess *ntpProcess;
float getTimeShift();
void readLookups();
@@ -34,8 +30,9 @@ private slots:
void slotRunNtp();
void getNtpOutput(OProcess *proc, char *buffer, int buflen);
void ntpFinished(OProcess*);
-// void correctClock();
void preditctTime();
+ void slotCheckNtp(int);
+ void setPredictTime();
};
#endif