summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.h
authortille <tille>2002-06-20 22:35:23 (UTC)
committer tille <tille>2002-06-20 22:35:23 (UTC)
commit43aa943f7d112e0e0853e0f2280d876d78346fe5 (patch) (unidiff)
tree73a5f9e3d85f5d87aa075a89bac083da95344888 /noncore/settings/netsystemtime/ntp.h
parent99acb72cb2bd8d5d647aad891f001d8ef2c8d96d (diff)
downloadopie-43aa943f7d112e0e0853e0f2280d876d78346fe5.zip
opie-43aa943f7d112e0e0853e0f2280d876d78346fe5.tar.gz
opie-43aa943f7d112e0e0853e0f2280d876d78346fe5.tar.bz2
again ;)
Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h
new file mode 100644
index 0000000..4dc04b1
--- a/dev/null
+++ b/noncore/settings/netsystemtime/ntp.h
@@ -0,0 +1,37 @@
1#ifndef NTP_H
2#define NTP_H
3#include "ntpbase.h"
4#include <qdatetime.h>
5#include <qtimer.h>
6
7class OProcess;
8class QString;
9
10
11class Ntp : public NtpBase
12{
13 Q_OBJECT
14
15public:
16 Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
17 ~Ntp();
18
19 OProcess *ntpProcess;
20
21private:
22 QString _ntpOutput;
23 int _maxOffset;
24 float _shiftPerSec;
25 QTimer *_nextCorrection;
26 int _minLookupDiff;
27
28 float getTimeShift();
29 void readLookups();
30private slots:
31 void slotRunNtp();
32 void getNtpOutput(OProcess *proc, char *buffer, int buflen);
33 void ntpFinished(OProcess*);
34 void correctClock();
35};
36
37#endif