summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.h
Side-by-side diff
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;
class QString;
class QTimer;
class QSocket;
+class QCopChannel;
class Ntp : public SetDateTime
{
@@ -16,10 +17,13 @@ public:
Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Ntp();
+public slots:
+ void setDocument (const QString &);
protected:
QDateTime predictedTime;
-
-
+ void makeChannel();
+protected slots:
+ void receive(const QCString &msg, const QByteArray &arg);
private:
QString _ntpOutput;
float _shiftPerSec;
@@ -27,6 +31,7 @@ private:
OProcess *ntpProcess;
QTimer *ntpTimer;
QSocket *ntpSock;
+ QCopChannel *channel;
float getTimeShift();
void readLookups();