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.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h
index c78dc55..56e0131 100644
--- a/noncore/settings/netsystemtime/ntp.h
+++ b/noncore/settings/netsystemtime/ntp.h
@@ -7,6 +7,7 @@ class OProcess;
7class QString; 7class QString;
8class QTimer; 8class QTimer;
9class QSocket; 9class QSocket;
10class QCopChannel;
10 11
11class Ntp : public SetDateTime 12class Ntp : public SetDateTime
12{ 13{
@@ -16,10 +17,13 @@ public:
16 Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 17 Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
17 ~Ntp(); 18 ~Ntp();
18 19
20public slots:
21 void setDocument (const QString &);
19protected: 22protected:
20 QDateTime predictedTime; 23 QDateTime predictedTime;
21 24 void makeChannel();
22 25protected slots:
26 void receive(const QCString &msg, const QByteArray &arg);
23private: 27private:
24 QString _ntpOutput; 28 QString _ntpOutput;
25 float _shiftPerSec; 29 float _shiftPerSec;
@@ -27,6 +31,7 @@ private:
27 OProcess *ntpProcess; 31 OProcess *ntpProcess;
28 QTimer *ntpTimer; 32 QTimer *ntpTimer;
29 QSocket *ntpSock; 33 QSocket *ntpSock;
34 QCopChannel *channel;
30 35
31 float getTimeShift(); 36 float getTimeShift();
32 void readLookups(); 37 void readLookups();