summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.h
Unidiff
Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h
deleted file mode 100644
index 150140e..0000000
--- a/noncore/settings/netsystemtime/ntp.h
+++ b/dev/null
@@ -1,58 +0,0 @@
1#ifndef NTP_H
2#define NTP_H
3#include "settime.h"
4#include <qdatetime.h>
5
6class OProcess;
7class QString;
8class QTimer;
9class QSocket;
10class QCopChannel;
11
12class Ntp : public SetDateTime
13{
14 Q_OBJECT
15
16public:
17 Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
18 ~Ntp();
19
20public slots:
21 void setDocument (const QString &);
22protected:
23 virtual void accept( );
24 virtual void reject( );
25 QDateTime predictedTime;
26 void makeChannel();
27protected slots:
28 void receive(const QCString &msg, const QByteArray &arg);
29private:
30 QString _ntpOutput;
31 float _shiftPerSec;
32 int _lookupDiff;
33 OProcess *ntpProcess;
34 QTimer *ntpTimer;
35 QSocket *ntpSock;
36 QCopChannel *channel;
37 bool _interactive;
38 float getTimeShift();
39 void readLookups();
40 void ntpOutPut(QString);
41 bool ntpDelayElapsed();
42 QString getNtpServer();
43 void saveConfig();
44private slots:
45 void slotTimerRunNtp();
46 void slotButtonRunNtp();
47 void slotRunNtp();
48 void getNtpOutput(OProcess *proc, char *buffer, int buflen);
49 void ntpFinished(OProcess*);
50 void preditctTime();
51 void slotCheckNtp(int);
52 void setPredictTime();
53 void showAdvancedFeatures(bool);
54 void slotProbeNtpServer();
55 void slotNtpDelayChanged(int);
56};
57
58#endif