Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h index 15cddbd..a4573f8 100644 --- a/noncore/settings/netsystemtime/ntp.h +++ b/noncore/settings/netsystemtime/ntp.h | |||
@@ -11,42 +11,44 @@ class QCopChannel; | |||
11 | 11 | ||
12 | class Ntp : public SetDateTime | 12 | class Ntp : public SetDateTime |
13 | { | 13 | { |
14 | Q_OBJECT | 14 | Q_OBJECT |
15 | 15 | ||
16 | public: | 16 | public: |
17 | Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 17 | Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
18 | ~Ntp(); | 18 | ~Ntp(); |
19 | 19 | ||
20 | public slots: | 20 | public slots: |
21 | void setDocument (const QString &); | 21 | void setDocument (const QString &); |
22 | protected: | 22 | protected: |
23 | virtual void accept( ); | ||
23 | QDateTime predictedTime; | 24 | QDateTime predictedTime; |
24 | void makeChannel(); | 25 | void makeChannel(); |
25 | protected slots: | 26 | protected slots: |
26 | void receive(const QCString &msg, const QByteArray &arg); | 27 | void receive(const QCString &msg, const QByteArray &arg); |
27 | private: | 28 | private: |
28 | QString _ntpOutput; | 29 | QString _ntpOutput; |
29 | float _shiftPerSec; | 30 | float _shiftPerSec; |
30 | int _lookupDiff; | 31 | int _lookupDiff; |
31 | OProcess *ntpProcess; | 32 | OProcess *ntpProcess; |
32 | QTimer *ntpTimer; | 33 | QTimer *ntpTimer; |
33 | QSocket *ntpSock; | 34 | QSocket *ntpSock; |
34 | QCopChannel *channel; | 35 | QCopChannel *channel; |
35 | bool _interactive; | 36 | bool _interactive; |
36 | float getTimeShift(); | 37 | float getTimeShift(); |
37 | void readLookups(); | 38 | void readLookups(); |
38 | void ntpOutPut(QString); | 39 | void ntpOutPut(QString); |
39 | bool ntpDelayElapsed(); | 40 | bool ntpDelayElapsed(); |
40 | QString getNtpServer(); | 41 | QString getNtpServer(); |
42 | void saveConfig(); | ||
41 | private slots: | 43 | private slots: |
42 | void slotTimerRunNtp(); | 44 | void slotTimerRunNtp(); |
43 | void slotButtonRunNtp(); | 45 | void slotButtonRunNtp(); |
44 | void slotRunNtp(); | 46 | void slotRunNtp(); |
45 | void getNtpOutput(OProcess *proc, char *buffer, int buflen); | 47 | void getNtpOutput(OProcess *proc, char *buffer, int buflen); |
46 | void ntpFinished(OProcess*); | 48 | void ntpFinished(OProcess*); |
47 | void preditctTime(); | 49 | void preditctTime(); |
48 | void slotCheckNtp(int); | 50 | void slotCheckNtp(int); |
49 | void setPredictTime(); | 51 | void setPredictTime(); |
50 | void showAdvancedFeatures(bool); | 52 | void showAdvancedFeatures(bool); |
51 | void slotProbeNtpServer(); | 53 | void slotProbeNtpServer(); |
52 | void slotNtpDelayChanged(int); | 54 | void slotNtpDelayChanged(int); |