summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/settime.h
Unidiff
Diffstat (limited to 'noncore/settings/netsystemtime/settime.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/settime.h97
1 files changed, 97 insertions, 0 deletions
diff --git a/noncore/settings/netsystemtime/settime.h b/noncore/settings/netsystemtime/settime.h
new file mode 100644
index 0000000..053d17a
--- a/dev/null
+++ b/noncore/settings/netsystemtime/settime.h
@@ -0,0 +1,97 @@
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
30class QToolButton;
31class QSpinBox;
32class QLabel;
33class TimeZoneSelector;
34class DateBookMonth;
35class QComboBox;
36//class QPEDialogListener;
37
38class SetTime : public QWidget
39{
40 Q_OBJECT
41public:
42 SetTime( QWidget *parent=0, const char *name=0 );
43
44 QTime time() const;
45
46public slots:
47 void slotTzChange( const QString& tz );
48 void show12hourTime( int );
49
50protected slots:
51 void hourChanged( int value );
52 void minuteChanged( int value );
53
54 void checkedPM( int );
55
56protected:
57 int hour;
58 int minute;
59 bool use12hourTime;
60 QComboBox *ampm;
61 QSpinBox *sbHour;
62 QSpinBox *sbMin;
63};
64
65class DateButton;
66
67class SetDateTime : public NtpBase
68{
69 Q_OBJECT
70public:
71 SetDateTime( QWidget *parent=0, const char *name=0, WFlags f=0 );
72
73protected slots:
74 void tzChange( const QString &tz );
75 void formatChanged(int);
76
77protected:
78 void commitTime();
79 virtual void accept();
80 virtual void done(int);
81
82 SetTime *timeButton;
83 DateButton *dateButton;
84 TimeZoneSelector *tz;
85 QComboBox *weekStartCombo;
86 QComboBox *ampmCombo;
87 QComboBox *dateFormatCombo;
88 QComboBox *clockAppletCombo;
89
90// QPEDialogListener *dl;
91
92 DateFormat date_formats[4];
93};
94
95
96#endif
97