author | tille <tille> | 2002-07-06 13:53:48 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-06 13:53:48 (UTC) |
commit | ac76e913d1930cdf7903fed344bd7bcc1b7545c0 (patch) (side-by-side diff) | |
tree | 8c71a16a7bc80eccbe1affbc976b795be6807b62 /noncore/settings/netsystemtime/ntp.h | |
parent | 02b8c37db8d3fd197c8c730451bd7819e65817a1 (diff) | |
download | opie-ac76e913d1930cdf7903fed344bd7bcc1b7545c0.zip opie-ac76e913d1930cdf7903fed344bd7bcc1b7545c0.tar.gz opie-ac76e913d1930cdf7903fed344bd7bcc1b7545c0.tar.bz2 |
clockapplet uses qcop call to open settime dialog
Diffstat (limited to 'noncore/settings/netsystemtime/ntp.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/ntp.h | 9 |
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(); |