summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.h
authordrw <drw>2003-04-13 22:32:47 (UTC)
committer drw <drw>2003-04-13 22:32:47 (UTC)
commit166ac140f8e01369a5d281c2918b0f8b9045f8e5 (patch) (unidiff)
tree672cbb8318703b6cedc7f83fb72c058d0b592c9e /noncore/settings/netsystemtime/ntp.h
parentf47258125bac368987a90ca49a118721ecbc3a8b (diff)
downloadopie-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) (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