Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntp.h | 58 |
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 | |||
6 | class OProcess; | ||
7 | class QString; | ||
8 | class QTimer; | ||
9 | class QSocket; | ||
10 | class QCopChannel; | ||
11 | |||
12 | class Ntp : public SetDateTime | ||
13 | { | ||
14 | Q_OBJECT | ||
15 | |||
16 | public: | ||
17 | Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
18 | ~Ntp(); | ||
19 | |||
20 | public slots: | ||
21 | void setDocument (const QString &); | ||
22 | protected: | ||
23 | virtual void accept( ); | ||
24 | virtual void reject( ); | ||
25 | QDateTime predictedTime; | ||
26 | void makeChannel(); | ||
27 | protected slots: | ||
28 | void receive(const QCString &msg, const QByteArray &arg); | ||
29 | private: | ||
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(); | ||
44 | private 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 | ||