summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/settings/netsystemtime/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/mainwindow.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/settings/netsystemtime/mainwindow.h b/noncore/settings/netsystemtime/mainwindow.h
index d4a9713..8701803 100644
--- a/noncore/settings/netsystemtime/mainwindow.h
+++ b/noncore/settings/netsystemtime/mainwindow.h
@@ -31,69 +31,68 @@
31 31
32#include <qdialog.h> 32#include <qdialog.h>
33 33
34#include <opie2/oprocess.h> 34#include <opie2/oprocess.h>
35#include <opie2/otabwidget.h> 35#include <opie2/otabwidget.h>
36 36
37class TimeTabWidget; 37class TimeTabWidget;
38class FormatTabWidget; 38class FormatTabWidget;
39class SettingsTabWidget; 39class SettingsTabWidget;
40class NTPTabWidget; 40class NTPTabWidget;
41class PredictTabWidget; 41class PredictTabWidget;
42 42
43using Opie::OTabWidget;
44 43
45class QDateTime; 44class QDateTime;
46class QSocket; 45class QSocket;
47class QTimer; 46class QTimer;
48 47
49class MainWindow : public QDialog 48class MainWindow : public QDialog
50{ 49{
51 Q_OBJECT 50 Q_OBJECT
52 51
53public: 52public:
54 MainWindow( QWidget *parent = 0, const char *name = 0, bool modal = FALSE,WFlags f = 0); 53 MainWindow( QWidget *parent = 0, const char *name = 0, bool modal = FALSE,WFlags f = 0);
55 ~MainWindow(); 54 ~MainWindow();
56 static QString appName() { return QString::fromLatin1("systemtime"); } 55 static QString appName() { return QString::fromLatin1("systemtime"); }
57 56
58protected: 57protected:
59 void accept(); 58 void accept();
60 void reject(); 59 void reject();
61 60
62private: 61private:
63 OTabWidget *mainWidget; 62 Opie::Ui::OTabWidget *mainWidget;
64 63
65 TimeTabWidget *timeTab; 64 TimeTabWidget *timeTab;
66 FormatTabWidget *formatTab; 65 FormatTabWidget *formatTab;
67 SettingsTabWidget *settingsTab; 66 SettingsTabWidget *settingsTab;
68 NTPTabWidget *ntpTab; 67 NTPTabWidget *ntpTab;
69 PredictTabWidget *predictTab; 68 PredictTabWidget *predictTab;
70 69
71 bool ntpTabEnabled; 70 bool ntpTabEnabled;
72 bool predictTabEnabled; 71 bool predictTabEnabled;
73 72
74 OProcess *ntpProcess; 73 Opie::Core::OProcess *ntpProcess;
75 QTimer *ntpTimer; 74 QTimer *ntpTimer;
76 QSocket *ntpSock; 75 QSocket *ntpSock;
77 int ntpDelay; 76 int ntpDelay;
78 bool ntpInteractive; 77 bool ntpInteractive;
79 QString ntpOutput; 78 QString ntpOutput;
80 int _lookupDiff; 79 int _lookupDiff;
81 80
82 void runNTP(); 81 void runNTP();
83 bool ntpDelayElapsed(); 82 bool ntpDelayElapsed();
84 83
85private slots: 84private slots:
86 void slotSetTime( const QDateTime & ); 85 void slotSetTime( const QDateTime & );
87 void slotQCopReceive( const QCString &, const QByteArray & ); 86 void slotQCopReceive( const QCString &, const QByteArray & );
88 void slotDisplayNTPTab( bool ); 87 void slotDisplayNTPTab( bool );
89 void slotDisplayPredictTab( bool ); 88 void slotDisplayPredictTab( bool );
90 void slotGetNTPTime(); 89 void slotGetNTPTime();
91 void slotTimerGetNTPTime(); 90 void slotTimerGetNTPTime();
92 void slotProbeNTPServer(); 91 void slotProbeNTPServer();
93 void slotNtpOutput( OProcess *, char *, int ); 92 void slotNtpOutput( Opie::Core::OProcess *, char *, int );
94 void slotNtpFinished( OProcess* ); 93 void slotNtpFinished( Opie::Core::OProcess* );
95 void slotNTPDelayChanged( int ); 94 void slotNTPDelayChanged( int );
96 void slotCheckNtp( int ); 95 void slotCheckNtp( int );
97}; 96};
98 97
99#endif 98#endif