1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: The view class for the FTU wizard plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FTUDATETIMEVIEW_H |
|
19 #define FTUDATETIMEVIEW_H |
|
20 |
|
21 // System includes |
|
22 #include <QPointer> |
|
23 #include <QDateTime> |
|
24 #include <HbWidget> |
|
25 #include <HbView> |
|
26 #include <HbDialog> |
|
27 #include "clockcityselectionlist.h" |
|
28 |
|
29 // Forward declarations. |
|
30 class HbDataForm; |
|
31 class HbDataFormModel; |
|
32 class HbDataFormModelItem; |
|
33 class HbDateTimePicker; |
|
34 class HbPushButton; |
|
35 class SettingsUtility; |
|
36 class QDate; |
|
37 class TimezoneClient; |
|
38 |
|
39 class FtuDateTimeView : public HbView |
|
40 { |
|
41 Q_OBJECT |
|
42 |
|
43 public: |
|
44 FtuDateTimeView(); |
|
45 ~FtuDateTimeView(); |
|
46 void constructView(); |
|
47 QDate getWizardCompletedDate(); |
|
48 void setAutomaticTimeUpdateOff(bool value); |
|
49 |
|
50 public slots: |
|
51 void populateDatePicker(); |
|
52 void populateTimePicker(); |
|
53 void setAutoTimeupDate(); |
|
54 void populateCitySelectionList(); |
|
55 |
|
56 private slots: |
|
57 void updateDate(); |
|
58 void updateTime(); |
|
59 void HandleLocationChange(LocationInfo); |
|
60 void selectedAction(HbAction *action); |
|
61 |
|
62 private: |
|
63 void createMainLayout(); |
|
64 void setItemDisplayed(); |
|
65 void populateDateTimeGroup(); |
|
66 void populatePlaceGroup(); |
|
67 void wizardEditedDate(const QDate &date); |
|
68 |
|
69 private: |
|
70 HbDataForm* mDateTimePlaceForm; |
|
71 HbDataFormModel* mDateTimePlaceModel; |
|
72 |
|
73 HbDataFormModelItem *mDateItem; |
|
74 HbDataFormModelItem *mTimeItem; |
|
75 HbDataFormModelItem *mAutoTimeUpdateItem; |
|
76 HbDataFormModelItem *mPlaceGroup; |
|
77 HbDataFormModelItem *mCountryItem; |
|
78 HbDataFormModelItem *mCityItem; |
|
79 |
|
80 HbDateTimePicker* mDatePicker; |
|
81 HbDateTimePicker* mTimePicker; |
|
82 QPointer<HbDialog> mDatePickerDialog; |
|
83 QPointer<HbDialog> mTimePickerDialog; |
|
84 |
|
85 HbAction *mOkAction; |
|
86 HbAction *mCancelAction; |
|
87 SettingsUtility *mSettingsUtility; |
|
88 |
|
89 TimezoneClient *mTimeZoneClient; |
|
90 ClockCitySelectionList* mCitySelectionList; |
|
91 bool mTimeAutoUpdate; |
|
92 }; |
|
93 |
|
94 #endif // FTUDATETIMEVIEW_H |
|
95 |
|
96 // End of file --Don't remove this. |
|