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.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 @@
-#ifndef NTP_H
-#define NTP_H
-#include "settime.h"
-#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:
- virtual void accept( );
- virtual void reject( );
- 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;
- bool _interactive;
- float getTimeShift();
- void readLookups();
- void ntpOutPut(QString);
- bool ntpDelayElapsed();
- QString getNtpServer();
- void saveConfig();
-private slots:
- void slotTimerRunNtp();
- void slotButtonRunNtp();
- void slotRunNtp();
- void getNtpOutput(OProcess *proc, char *buffer, int buflen);
- void ntpFinished(OProcess*);
- void preditctTime();
- void slotCheckNtp(int);
- void setPredictTime();
- void showAdvancedFeatures(bool);
- void slotProbeNtpServer();
- void slotNtpDelayChanged(int);
-};
-
-#endif