Diffstat (limited to 'noncore/settings/netsystemtime/settime.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/settime.h | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/noncore/settings/netsystemtime/settime.h b/noncore/settings/netsystemtime/settime.h deleted file mode 100644 index 58d1006..0000000 --- a/noncore/settings/netsystemtime/settime.h +++ b/dev/null | |||
@@ -1,102 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef SYSTEM_TIME_H | ||
21 | #define SYSTEM_TIME_H | ||
22 | |||
23 | |||
24 | #include <qdatetime.h> | ||
25 | #include <qdialog.h> | ||
26 | |||
27 | #include <qpe/timestring.h> | ||
28 | #include "ntpbase.h" | ||
29 | |||
30 | class QToolButton; | ||
31 | class QSpinBox; | ||
32 | class QLabel; | ||
33 | class TimeZoneSelector; | ||
34 | class DateBookMonth; | ||
35 | class QComboBox; | ||
36 | |||
37 | class SetTime : public QWidget | ||
38 | { | ||
39 | Q_OBJECT | ||
40 | public: | ||
41 | SetTime( QWidget *parent=0, const char *name=0 ); | ||
42 | |||
43 | QTime time() const; | ||
44 | void setTime( QDateTime ); | ||
45 | |||
46 | public slots: | ||
47 | void slotTzChange( const QString& tz ); | ||
48 | void show12hourTime( int ); | ||
49 | |||
50 | protected slots: | ||
51 | void slotClockTick(); | ||
52 | void hourChanged( int value ); | ||
53 | void minuteChanged( int value ); | ||
54 | |||
55 | void checkedPM( int ); | ||
56 | |||
57 | protected: | ||
58 | int hour; | ||
59 | int minute; | ||
60 | bool use12hourTime; | ||
61 | QDateTime _time; | ||
62 | QTimer *clock; | ||
63 | QComboBox *ampm; | ||
64 | QSpinBox *sbHour; | ||
65 | QSpinBox *sbMin; | ||
66 | }; | ||
67 | |||
68 | class DateButton; | ||
69 | |||
70 | class SetDateTime : public NtpBase | ||
71 | { | ||
72 | Q_OBJECT | ||
73 | public: | ||
74 | SetDateTime( QWidget *parent=0, const char *name=0, WFlags f=0 ); | ||
75 | ~SetDateTime(); | ||
76 | |||
77 | protected slots: | ||
78 | void commitTime(); | ||
79 | void tzChange( const QString &tz ); | ||
80 | void formatChanged(int); | ||
81 | void updateSystem(); | ||
82 | |||
83 | protected: | ||
84 | void setTime(QDateTime dt); | ||
85 | void writeSettings(); | ||
86 | |||
87 | SetTime *timeButton; | ||
88 | DateButton *dateButton; | ||
89 | TimeZoneSelector *tz; | ||
90 | QString _oldTimeZone; | ||
91 | QComboBox *weekStartCombo; | ||
92 | QComboBox *ampmCombo; | ||
93 | QComboBox *dateFormatCombo; | ||
94 | QComboBox *clockAppletCombo; | ||
95 | QPushButton *ButtonSetTime; | ||
96 | |||
97 | DateFormat date_formats[4]; | ||
98 | }; | ||
99 | |||
100 | |||
101 | #endif | ||
102 | |||