17 |
17 |
18 #ifndef FTUDATETIMEVIEW_H |
18 #ifndef FTUDATETIMEVIEW_H |
19 #define FTUDATETIMEVIEW_H |
19 #define FTUDATETIMEVIEW_H |
20 |
20 |
21 // System includes |
21 // System includes |
22 #include <hbwidget.h> |
22 #include <QPointer> |
23 #include <hbview.h> |
23 #include <QDateTime> |
24 #include <hbdialog.h> |
24 #include <HbWidget> |
25 #include <qdatetime.h> |
25 #include <HbView> |
|
26 #include <HbDialog> |
26 #include "clockcityselectionlist.h" |
27 #include "clockcityselectionlist.h" |
27 |
28 |
28 // Forward declarations. |
29 // Forward declarations. |
29 class HbDataForm; |
30 class HbDataForm; |
30 class HbDataFormModel; |
31 class HbDataFormModel; |
54 |
55 |
55 private slots: |
56 private slots: |
56 void updateDate(); |
57 void updateDate(); |
57 void updateTime(); |
58 void updateTime(); |
58 void HandleLocationChange(LocationInfo); |
59 void HandleLocationChange(LocationInfo); |
|
60 void selectedAction(HbAction *action); |
59 |
61 |
60 private: |
62 private: |
61 void createMainLayout(); |
63 void createMainLayout(); |
62 void setItemDisplayed(); |
64 void setItemDisplayed(); |
63 void populateDateTimeGroup(); |
65 void populateDateTimeGroup(); |
64 void populatePlaceGroup(); |
66 void populatePlaceGroup(); |
65 void wizardEditedDate(const QDate &date); |
67 void wizardEditedDate(const QDate &date); |
66 |
68 |
|
69 private: |
67 HbDataForm* mDateTimePlaceForm; |
70 HbDataForm* mDateTimePlaceForm; |
68 HbDataFormModel* mDateTimePlaceModel; |
71 HbDataFormModel* mDateTimePlaceModel; |
69 |
72 |
70 HbDataFormModelItem *mDateItem; |
73 HbDataFormModelItem *mDateItem; |
71 HbDataFormModelItem *mTimeItem; |
74 HbDataFormModelItem *mTimeItem; |
72 HbDataFormModelItem *mAutoTimeUpdateItem; |
75 HbDataFormModelItem *mAutoTimeUpdateItem; |
73 HbDataFormModelItem *mPlaceGroup; |
76 HbDataFormModelItem *mPlaceGroup; |
74 HbDataFormModelItem *mCountryItem; |
77 HbDataFormModelItem *mCountryItem; |
75 HbDataFormModelItem *mCityItem; |
78 HbDataFormModelItem *mCityItem; |
76 |
79 |
77 HbDateTimePicker* mDatePicker; |
80 HbDateTimePicker* mDatePicker; |
78 HbDateTimePicker* mTimePicker; |
81 HbDateTimePicker* mTimePicker; |
79 HbDialog* mDatetimepopup; |
82 QPointer<HbDialog> mDatePickerDialog; |
|
83 QPointer<HbDialog> mTimePickerDialog; |
|
84 |
|
85 HbAction *mOkAction; |
|
86 HbAction *mCancelAction; |
80 SettingsUtility *mSettingsUtility; |
87 SettingsUtility *mSettingsUtility; |
81 |
88 |
82 TimezoneClient *mTimeZoneClient; |
89 TimezoneClient *mTimeZoneClient; |
83 ClockCitySelectionList* mCitySelectionList; |
90 ClockCitySelectionList* mCitySelectionList; |
84 bool mTimeAutoUpdate; |
91 bool mTimeAutoUpdate; |
85 }; |
92 }; |
86 |
93 |