48 \param parent Parent of type HbDataFormModelItem |
48 \param parent Parent of type HbDataFormModelItem |
49 */ |
49 */ |
50 DateTimeSettingsView::DateTimeSettingsView( |
50 DateTimeSettingsView::DateTimeSettingsView( |
51 CpItemDataHelper &itemDataHelper, const QString &text, |
51 CpItemDataHelper &itemDataHelper, const QString &text, |
52 const QString &description, const HbIcon &icon, |
52 const QString &description, const HbIcon &icon, |
53 const HbDataFormModelItem *parent): |
53 const HbDataFormModelItem *parent, HbTranslator *translator): |
54 CpSettingFormEntryItemData( |
54 CpSettingFormEntryItemData( |
55 itemDataHelper, text, description, icon, parent) |
55 itemDataHelper, text, description, icon, parent) |
56 { |
56 { |
57 OstTraceFunctionEntry0( DATETIMESETTINGSVIEW_DATETIMESETTINGSVIEW_ENTRY ); |
57 OstTraceFunctionEntry0( DATETIMESETTINGSVIEW_DATETIMESETTINGSVIEW_ENTRY ); |
58 // Construct the timezone client. |
58 // Construct the timezone client. |
|
59 mTranslator = translator; |
59 mTimezoneClient = TimezoneClient::getInstance(); |
60 mTimezoneClient = TimezoneClient::getInstance(); |
60 connect( |
61 connect( |
61 mTimezoneClient, SIGNAL(timechanged()), |
62 mTimezoneClient, SIGNAL(timechanged()), |
62 this, SLOT(updateDisplayTime())); |
63 this, SLOT(updateDisplayTime())); |
63 |
64 |
93 Launches the clock settings view. |
94 Launches the clock settings view. |
94 */ |
95 */ |
95 void DateTimeSettingsView::onLaunchView() |
96 void DateTimeSettingsView::onLaunchView() |
96 { |
97 { |
97 OstTraceFunctionEntry0( DATETIMESETTINGSVIEW_ONLAUNCHVIEW_ENTRY ); |
98 OstTraceFunctionEntry0( DATETIMESETTINGSVIEW_ONLAUNCHVIEW_ENTRY ); |
98 ClockSettingsView *settingsView = new ClockSettingsView(this); |
99 ClockSettingsView *settingsView = new ClockSettingsView(this, mTranslator, false); |
99 settingsView->loadSettingsView(); |
100 settingsView->loadSettingsView(); |
100 OstTraceFunctionExit0( DATETIMESETTINGSVIEW_ONLAUNCHVIEW_EXIT ); |
101 OstTraceFunctionExit0( DATETIMESETTINGSVIEW_ONLAUNCHVIEW_EXIT ); |
101 } |
102 } |
102 |
103 |
103 /*! |
104 /*! |