From c2eb66bc5c5ac4225edff8b369026bd208f8c148 Mon Sep 17 00:00:00 2001 From: tille Date: Thu, 20 Jun 2002 22:13:34 +0000 Subject: here it is... --- (limited to 'example/ntp.h') diff --git a/example/ntp.h b/example/ntp.h new file mode 100644 index 0000000..c9c2e9b --- a/dev/null +++ b/example/ntp.h @@ -0,0 +1,35 @@ +#ifndef NTP_H +#define NTP_H +#include "ntpbase.h" +#include +#include + +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 -- cgit v0.9.0.2