author | drw <drw> | 2003-04-13 22:32:47 (UTC) |
---|---|---|
committer | drw <drw> | 2003-04-13 22:32:47 (UTC) |
commit | 166ac140f8e01369a5d281c2918b0f8b9045f8e5 (patch) (unidiff) | |
tree | 672cbb8318703b6cedc7f83fb72c058d0b592c9e /noncore/settings/netsystemtime/ntp.h | |
parent | f47258125bac368987a90ca49a118721ecbc3a8b (diff) | |
download | opie-166ac140f8e01369a5d281c2918b0f8b9045f8e5.zip opie-166ac140f8e01369a5d281c2918b0f8b9045f8e5.tar.gz opie-166ac140f8e01369a5d281c2918b0f8b9045f8e5.tar.bz2 |
Revamped NetSystemTime! Changes include: 1. improved UI (e.g. ok/cancel work, timezone correctly changes date, new layout better suited for running in landscape mode, etc.) 2. improved code organization 3. smaller executable
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 | ||