Diffstat (limited to 'noncore/settings/netsystemtime/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/mainwindow.h | 75 |
1 files changed, 39 insertions, 36 deletions
diff --git a/noncore/settings/netsystemtime/mainwindow.h b/noncore/settings/netsystemtime/mainwindow.h index 1cdbc1a..d4a9713 100644 --- a/noncore/settings/netsystemtime/mainwindow.h +++ b/noncore/settings/netsystemtime/mainwindow.h @@ -10,87 +10,90 @@ - . .-<_> .<> Foundation; either version 2 of the License, ._= =} : or (at your option) any later version. .%`+i> _;_. .i_,=:_. -<s. This file is distributed in the hope that + . -:. = it will be useful, but WITHOUT ANY WARRANTY; : .. .:, . . . without even the implied warranty of =_ + =;=|` MERCHANTABILITY or FITNESS FOR A _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General ..}^=.= = ; Public License for more details. ++= -. .` .: : = ...= . :.=- You should have received a copy of the GNU -. .:....=;==+<; General Public License along with this file; -_. . . )=. = see the file COPYING. If not, write to the -- :-=` Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <qdialog.h> +#include <opie2/oprocess.h> +#include <opie2/otabwidget.h> + class TimeTabWidget; class FormatTabWidget; class SettingsTabWidget; class NTPTabWidget; class PredictTabWidget; -class OProcess; -class OTabWidget; +using Opie::OTabWidget; + class QDateTime; class QSocket; class QTimer; class MainWindow : public QDialog { - Q_OBJECT + Q_OBJECT public: - MainWindow( QWidget *parent = 0, const char *name = 0, bool modal = FALSE,WFlags f = 0); - ~MainWindow(); - static QString appName() { return QString::fromLatin1("systemtime"); } + MainWindow( QWidget *parent = 0, const char *name = 0, bool modal = FALSE,WFlags f = 0); + ~MainWindow(); + static QString appName() { return QString::fromLatin1("systemtime"); } protected: - void accept(); - void reject(); + void accept(); + void reject(); private: - OTabWidget *mainWidget; + OTabWidget *mainWidget; - TimeTabWidget *timeTab; - FormatTabWidget *formatTab; - SettingsTabWidget *settingsTab; - NTPTabWidget *ntpTab; - PredictTabWidget *predictTab; + TimeTabWidget *timeTab; + FormatTabWidget *formatTab; + SettingsTabWidget *settingsTab; + NTPTabWidget *ntpTab; + PredictTabWidget *predictTab; - bool ntpTabEnabled; - bool predictTabEnabled; + bool ntpTabEnabled; + bool predictTabEnabled; - OProcess *ntpProcess; - QTimer *ntpTimer; - QSocket *ntpSock; - int ntpDelay; - bool ntpInteractive; - QString ntpOutput; - int _lookupDiff; + OProcess *ntpProcess; + QTimer *ntpTimer; + QSocket *ntpSock; + int ntpDelay; + bool ntpInteractive; + QString ntpOutput; + int _lookupDiff; - void runNTP(); - bool ntpDelayElapsed(); + void runNTP(); + bool ntpDelayElapsed(); private slots: - void slotSetTime( const QDateTime & ); - void slotQCopReceive( const QCString &, const QByteArray & ); - void slotDisplayNTPTab( bool ); - void slotDisplayPredictTab( bool ); - void slotGetNTPTime(); - void slotTimerGetNTPTime(); - void slotProbeNTPServer(); - void slotNtpOutput( OProcess *, char *, int ); - void slotNtpFinished( OProcess* ); - void slotNTPDelayChanged( int ); - void slotCheckNtp( int ); + void slotSetTime( const QDateTime & ); + void slotQCopReceive( const QCString &, const QByteArray & ); + void slotDisplayNTPTab( bool ); + void slotDisplayPredictTab( bool ); + void slotGetNTPTime(); + void slotTimerGetNTPTime(); + void slotProbeNTPServer(); + void slotNtpOutput( OProcess *, char *, int ); + void slotNtpFinished( OProcess* ); + void slotNTPDelayChanged( int ); + void slotCheckNtp( int ); }; #endif |