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
@@ -4,32 +4,37 @@
#include <qdatetime.h>
class OProcess;
class QString;
class QTimer;
class QSocket;
+class QCopChannel;
class Ntp : public SetDateTime
{
Q_OBJECT
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;
int _lookupDiff;
OProcess *ntpProcess;
QTimer *ntpTimer;
QSocket *ntpSock;
+ QCopChannel *channel;
float getTimeShift();
void readLookups();
void ntpOutPut(QString);
bool ntpDelayElapsed();
QString getNtpServer();