summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntp.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h
index 284ae27..7cc309f 100644
--- a/noncore/settings/netsystemtime/ntp.h
+++ b/noncore/settings/netsystemtime/ntp.h
@@ -1,38 +1,43 @@
#ifndef NTP_H
#define NTP_H
#include "settime.h"
#include <qdatetime.h>
class OProcess;
class QString;
-
+class QTimer;
+class QSocket;
class Ntp : public SetDateTime
{
Q_OBJECT
public:
Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Ntp();
protected:
QDateTime predictedTime;
private:
QString _ntpOutput;
float _shiftPerSec;
OProcess *ntpProcess;
+ QTimer *ntpTimer;
+ QSocket *ntpSock;
float getTimeShift();
void readLookups();
private slots:
void slotRunNtp();
void getNtpOutput(OProcess *proc, char *buffer, int buflen);
void ntpFinished(OProcess*);
void preditctTime();
void slotCheckNtp(int);
void setPredictTime();
+ void slotProbeNtpServer();
+ void slotNtpDelayChanged(int);
};
#endif