summaryrefslogtreecommitdiff
path: root/example/ntp.h
Side-by-side diff
Diffstat (limited to 'example/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--example/ntp.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/example/ntp.h b/example/ntp.h
deleted file mode 100644
index c9c2e9b..0000000
--- a/example/ntp.h
+++ b/dev/null
@@ -1,35 +0,0 @@
-#ifndef NTP_H
-#define NTP_H
-#include "ntpbase.h"
-#include <qdatetime.h>
-#include <qtimer.h>
-
-class OProcess;
-class QString;
-
-
-class Ntp : public NtpBase
-{
- Q_OBJECT
-
-public:
- Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~Ntp();
-
- OProcess *ntpProcess;
-
-private:
- QString _ntpOutput;
- int _maxOffset;
- float _shiftPerSec;
- QTimer *_nextCorrection;
- float getTimeShift();
- int _minLookupDiff;
-private slots:
- void slotRunNtp();
- void getNtpOutput(OProcess *proc, char *buffer, int buflen);
- void ntpFinished(OProcess*);
- void correctClock();
-};
-
-#endif