59 // Initialize the user response |
65 // Initialize the user response |
60 mUserResponse = Other; |
66 mUserResponse = Other; |
61 |
67 |
62 // TODO: Gestures not working. Integrate once support is available from Qt |
68 // TODO: Gestures not working. Integrate once support is available from Qt |
63 grabGesture(Qt::SwipeGesture); |
69 grabGesture(Qt::SwipeGesture); |
|
70 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_ALARMALERTDIALOGPRIVATE_EXIT ); |
64 } |
71 } |
65 |
72 |
66 // --------------------------------------------------------- |
73 // --------------------------------------------------------- |
67 // AlarmAlertDialogPrivate::~AlarmAlertDialogPrivate |
74 // AlarmAlertDialogPrivate::~AlarmAlertDialogPrivate |
68 // rest of the details are commented in the header |
75 // rest of the details are commented in the header |
69 // --------------------------------------------------------- |
76 // --------------------------------------------------------- |
70 // |
77 // |
71 AlarmAlertDialogPrivate::~AlarmAlertDialogPrivate() |
78 AlarmAlertDialogPrivate::~AlarmAlertDialogPrivate() |
72 { |
79 { |
|
80 OstTraceFunctionEntry0( DUP1_ALARMALERTDIALOGPRIVATE_ALARMALERTDIALOGPRIVATE_ENTRY ); |
73 // Cleanup |
81 // Cleanup |
74 if (mAlertDocLoader) { |
82 if (mAlertDocLoader) { |
75 delete mAlertDocLoader; |
83 delete mAlertDocLoader; |
76 } |
84 } |
77 // Cancel any ongoing animations |
85 // Cancel any ongoing animations |
84 // Remove the translator |
92 // Remove the translator |
85 if (mTranslator) { |
93 if (mTranslator) { |
86 delete mTranslator; |
94 delete mTranslator; |
87 mTranslator = 0; |
95 mTranslator = 0; |
88 } |
96 } |
|
97 OstTraceFunctionExit0( DUP1_ALARMALERTDIALOGPRIVATE_ALARMALERTDIALOGPRIVATE_EXIT ); |
89 } |
98 } |
90 |
99 |
91 // --------------------------------------------------------- |
100 // --------------------------------------------------------- |
92 // AlarmAlertDialogPrivate::setDeviceDialogParameters |
101 // AlarmAlertDialogPrivate::setDeviceDialogParameters |
93 // rest of the details are commented in the header |
102 // rest of the details are commented in the header |
94 // --------------------------------------------------------- |
103 // --------------------------------------------------------- |
95 // |
104 // |
96 bool AlarmAlertDialogPrivate::setDeviceDialogParameters(const QVariantMap ¶meters) |
105 bool AlarmAlertDialogPrivate::setDeviceDialogParameters(const QVariantMap ¶meters) |
97 { |
106 { |
|
107 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_SETDEVICEDIALOGPARAMETERS_ENTRY ); |
98 Q_UNUSED(parameters); |
108 Q_UNUSED(parameters); |
99 |
109 |
100 //TODO: Handle parameters to be set |
110 //TODO: Handle parameters to be set |
|
111 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_SETDEVICEDIALOGPARAMETERS_EXIT ); |
101 return 0; |
112 return 0; |
102 } |
113 } |
103 |
114 |
104 // --------------------------------------------------------- |
115 // --------------------------------------------------------- |
105 // AlarmAlertDialogPrivate::deviceDialogError |
116 // AlarmAlertDialogPrivate::deviceDialogError |
106 // rest of the details are commented in the header |
117 // rest of the details are commented in the header |
107 // --------------------------------------------------------- |
118 // --------------------------------------------------------- |
108 // |
119 // |
109 int AlarmAlertDialogPrivate::deviceDialogError() const |
120 int AlarmAlertDialogPrivate::deviceDialogError() const |
110 { |
121 { |
|
122 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_DEVICEDIALOGERROR_ENTRY ); |
111 // TODO: Return any errors that might have occured |
123 // TODO: Return any errors that might have occured |
|
124 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_DEVICEDIALOGERROR_EXIT ); |
112 return 0; |
125 return 0; |
113 } |
126 } |
114 |
127 |
115 // --------------------------------------------------------- |
128 // --------------------------------------------------------- |
116 // AlarmAlertDialogPrivate::AlarmAlertDialogPrivate |
129 // AlarmAlertDialogPrivate::AlarmAlertDialogPrivate |
117 // rest of the details are commented in the header |
130 // rest of the details are commented in the header |
118 // --------------------------------------------------------- |
131 // --------------------------------------------------------- |
119 // |
132 // |
120 void AlarmAlertDialogPrivate::closeDeviceDialog(bool byClient) |
133 void AlarmAlertDialogPrivate::closeDeviceDialog(bool byClient) |
121 { |
134 { |
|
135 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_CLOSEDEVICEDIALOG_ENTRY ); |
122 Q_UNUSED(byClient); |
136 Q_UNUSED(byClient); |
123 mClosedByClient = byClient; |
137 mClosedByClient = byClient; |
124 close(); |
138 close(); |
|
139 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_CLOSEDEVICEDIALOG_EXIT ); |
125 } |
140 } |
126 |
141 |
127 // --------------------------------------------------------- |
142 // --------------------------------------------------------- |
128 // AlarmAlertDialogPrivate::deviceDialogWidget |
143 // AlarmAlertDialogPrivate::deviceDialogWidget |
129 // rest of the details are commented in the header |
144 // rest of the details are commented in the header |
130 // --------------------------------------------------------- |
145 // --------------------------------------------------------- |
131 // |
146 // |
132 HbDialog *AlarmAlertDialogPrivate::deviceDialogWidget() const |
147 HbDialog *AlarmAlertDialogPrivate::deviceDialogWidget() const |
133 { |
148 { |
|
149 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_DEVICEDIALOGWIDGET_ENTRY ); |
134 return const_cast<AlarmAlertDialogPrivate*> (this); |
150 return const_cast<AlarmAlertDialogPrivate*> (this); |
135 } |
151 } |
136 |
152 |
137 // --------------------------------------------------------- |
153 // --------------------------------------------------------- |
138 // AlarmAlertDialogPrivate::showEvent |
154 // AlarmAlertDialogPrivate::showEvent |
139 // rest of the details are commented in the header |
155 // rest of the details are commented in the header |
140 // --------------------------------------------------------- |
156 // --------------------------------------------------------- |
141 // |
157 // |
142 void AlarmAlertDialogPrivate::showEvent(QShowEvent *event) |
158 void AlarmAlertDialogPrivate::showEvent(QShowEvent *event) |
143 { |
159 { |
|
160 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_SHOWEVENT_ENTRY ); |
144 HbDialog::showEvent(event); |
161 HbDialog::showEvent(event); |
145 QVariantMap param; |
162 QVariantMap param; |
146 param.insert(alarmCommand, mUserResponse); |
163 param.insert(alarmCommand, mUserResponse); |
147 emit deviceDialogData(param); |
164 emit deviceDialogData(param); |
|
165 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_SHOWEVENT_EXIT ); |
148 } |
166 } |
149 |
167 |
150 // --------------------------------------------------------- |
168 // --------------------------------------------------------- |
151 // AlarmAlertDialogPrivate::closeEvent |
169 // AlarmAlertDialogPrivate::closeEvent |
152 // rest of the details are commented in the header |
170 // rest of the details are commented in the header |
153 // --------------------------------------------------------- |
171 // --------------------------------------------------------- |
154 // |
172 // |
155 void AlarmAlertDialogPrivate::closeEvent(QCloseEvent *event) |
173 void AlarmAlertDialogPrivate::closeEvent(QCloseEvent *event) |
156 { |
174 { |
|
175 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_CLOSEEVENT_ENTRY ); |
157 |
176 |
158 // Do not notify the client back if the close was initiated by client itself |
177 // Do not notify the client back if the close was initiated by client itself |
159 if(!mClosedByClient) { |
178 if(!mClosedByClient) { |
160 // Package the user response and send it |
179 // Package the user response and send it |
161 QVariantMap param; |
180 QVariantMap param; |
165 // This signal has to be emitted so that the dialog can be cleaned up later |
184 // This signal has to be emitted so that the dialog can be cleaned up later |
166 emit deviceDialogClosed(); |
185 emit deviceDialogClosed(); |
167 |
186 |
168 // Forward the call to the base class |
187 // Forward the call to the base class |
169 HbDialog::closeEvent(event); |
188 HbDialog::closeEvent(event); |
|
189 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_CLOSEEVENT_EXIT ); |
170 } |
190 } |
171 |
191 |
172 // --------------------------------------------------------- |
192 // --------------------------------------------------------- |
173 // AlarmAlertDialogPrivate::handleOrientationChange |
193 // AlarmAlertDialogPrivate::handleOrientationChange |
174 // rest of the details are commented in the header |
194 // rest of the details are commented in the header |
175 // --------------------------------------------------------- |
195 // --------------------------------------------------------- |
176 // |
196 // |
177 void AlarmAlertDialogPrivate::handleOrientationChange () |
197 void AlarmAlertDialogPrivate::handleOrientationChange () |
178 { |
198 { |
|
199 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_HANDLEORIENTATIONCHANGE_ENTRY ); |
179 // TODO: Need to change this as per the UI concept |
200 // TODO: Need to change this as per the UI concept |
|
201 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_HANDLEORIENTATIONCHANGE_EXIT ); |
180 } |
202 } |
181 |
203 |
182 // --------------------------------------------------------- |
204 // --------------------------------------------------------- |
183 // AlarmAlertDialogPrivate::snoozed |
205 // AlarmAlertDialogPrivate::snoozed |
184 // rest of the details are commented in the header |
206 // rest of the details are commented in the header |
185 // --------------------------------------------------------- |
207 // --------------------------------------------------------- |
186 // |
208 // |
187 void AlarmAlertDialogPrivate::snoozed() |
209 void AlarmAlertDialogPrivate::snoozed() |
188 { |
210 { |
|
211 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_SNOOZED_ENTRY ); |
189 mUserResponse = Snooze; |
212 mUserResponse = Snooze; |
190 close(); |
213 close(); |
|
214 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_SNOOZED_EXIT ); |
191 } |
215 } |
192 |
216 |
193 // --------------------------------------------------------- |
217 // --------------------------------------------------------- |
194 // AlarmAlertDialogPrivate::silenced |
218 // AlarmAlertDialogPrivate::silenced |
195 // rest of the details are commented in the header |
219 // rest of the details are commented in the header |
196 // --------------------------------------------------------- |
220 // --------------------------------------------------------- |
197 // |
221 // |
198 void AlarmAlertDialogPrivate::silenced() |
222 void AlarmAlertDialogPrivate::silenced() |
199 { |
223 { |
|
224 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_SILENCED_ENTRY ); |
200 if (mIsSilenceKey) { |
225 if (mIsSilenceKey) { |
201 mUserResponse = Silence; |
226 mUserResponse = Silence; |
202 mSnoozeAction->setText(hbTrId("txt_calendar_button_alarm_snooze")); |
227 mSnoozeAction->setText(hbTrId("txt_calendar_button_alarm_snooze")); |
203 mIsSilenceKey = false; |
228 mIsSilenceKey = false; |
204 QVariantMap param; |
229 QVariantMap param; |
206 emit deviceDialogData(param); |
231 emit deviceDialogData(param); |
207 }else { |
232 }else { |
208 mUserResponse = Snooze; |
233 mUserResponse = Snooze; |
209 close(); |
234 close(); |
210 } |
235 } |
|
236 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_SILENCED_EXIT ); |
211 } |
237 } |
212 |
238 |
213 // --------------------------------------------------------- |
239 // --------------------------------------------------------- |
214 // AlarmAlertDialogPrivate::aboutToDisplay |
240 // AlarmAlertDialogPrivate::aboutToDisplay |
215 // rest of the details are commented in the header |
241 // rest of the details are commented in the header |
216 // --------------------------------------------------------- |
242 // --------------------------------------------------------- |
217 // |
243 // |
218 void AlarmAlertDialogPrivate::aboutToDisplay() |
244 void AlarmAlertDialogPrivate::aboutToDisplay() |
219 { |
245 { |
|
246 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_ABOUTTODISPLAY_ENTRY ); |
220 mUserResponse = Shown; |
247 mUserResponse = Shown; |
221 QVariantMap param; |
248 QVariantMap param; |
222 param.insert(alarmCommand, mUserResponse); |
249 param.insert(alarmCommand, mUserResponse); |
223 emit deviceDialogData(param); |
250 emit deviceDialogData(param); |
|
251 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_ABOUTTODISPLAY_EXIT ); |
224 } |
252 } |
225 |
253 |
226 // --------------------------------------------------------- |
254 // --------------------------------------------------------- |
227 // AlarmAlertDialogPrivate::dismissed |
255 // AlarmAlertDialogPrivate::dismissed |
228 // rest of the details are commented in the header |
256 // rest of the details are commented in the header |
229 // --------------------------------------------------------- |
257 // --------------------------------------------------------- |
230 // |
258 // |
231 void AlarmAlertDialogPrivate::dismissed() |
259 void AlarmAlertDialogPrivate::dismissed() |
232 { |
260 { |
|
261 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_DISMISSED_ENTRY ); |
233 mUserResponse = Stop; |
262 mUserResponse = Stop; |
234 close(); |
263 close(); |
|
264 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_DISMISSED_EXIT ); |
235 } |
265 } |
236 |
266 |
237 // --------------------------------------------------------- |
267 // --------------------------------------------------------- |
238 // AlarmAlertDialogPrivate::parseAndFetchParams |
268 // AlarmAlertDialogPrivate::parseAndFetchParams |
239 // rest of the details are commented in the header |
269 // rest of the details are commented in the header |
240 // --------------------------------------------------------- |
270 // --------------------------------------------------------- |
241 // |
271 // |
242 void AlarmAlertDialogPrivate::parseAndFetchParams(const QVariantMap ¶meters) |
272 void AlarmAlertDialogPrivate::parseAndFetchParams(const QVariantMap ¶meters) |
243 { |
273 { |
|
274 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_PARSEANDFETCHPARAMS_ENTRY ); |
244 // Iterate thru the list and extract all relevant parameters |
275 // Iterate thru the list and extract all relevant parameters |
245 QVariantMap::const_iterator iter = parameters.constBegin(); |
276 QVariantMap::const_iterator iter = parameters.constBegin(); |
246 int count = parameters.size(); |
277 int count = parameters.size(); |
247 while (iter != parameters.constEnd()) { |
278 while (iter != parameters.constEnd()) { |
248 QString key(iter.key()); |
279 QString key(iter.key()); |
265 }else { |
296 }else { |
266 break; |
297 break; |
267 } |
298 } |
268 iter++; |
299 iter++; |
269 } |
300 } |
|
301 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_PARSEANDFETCHPARAMS_EXIT ); |
270 } |
302 } |
271 |
303 |
272 // --------------------------------------------------------- |
304 // --------------------------------------------------------- |
273 // AlarmAlertDialogPrivate::setupNormalUI |
305 // AlarmAlertDialogPrivate::setupNormalUI |
274 // rest of the details are commented in the header |
306 // rest of the details are commented in the header |
275 // --------------------------------------------------------- |
307 // --------------------------------------------------------- |
276 // |
308 // |
277 |
309 |
278 void AlarmAlertDialogPrivate::setupNormalUI(AlarmAlertDocLoader *alertDocLoader) |
310 void AlarmAlertDialogPrivate::setupNormalUI(AlarmAlertDocLoader *alertDocLoader) |
279 { |
311 { |
|
312 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_SETUPNORMALUI_ENTRY ); |
280 if(!alertDocLoader) { |
313 if(!alertDocLoader) { |
281 // Nothing can be done. Simply return |
314 // Nothing can be done. Simply return |
|
315 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_SETUPNORMALUI_EXIT ); |
282 return; |
316 return; |
283 } |
317 } |
284 mAlertDocLoader = alertDocLoader; |
318 mAlertDocLoader = alertDocLoader; |
285 |
319 |
286 if (mAlarmAlertType == ClockAlarm) { |
320 if (mAlarmAlertType == ClockAlarm) { |
288 }else if(mAlarmAlertType == TodoAlarm) { |
322 }else if(mAlarmAlertType == TodoAlarm) { |
289 handleToDoAlarms(); |
323 handleToDoAlarms(); |
290 }else if(mAlarmAlertType == CalendarAlarm) { |
324 }else if(mAlarmAlertType == CalendarAlarm) { |
291 handleCalendarAlarms(); |
325 handleCalendarAlarms(); |
292 } |
326 } |
|
327 OstTraceFunctionExit0( DUP1_ALARMALERTDIALOGPRIVATE_SETUPNORMALUI_EXIT ); |
293 } |
328 } |
294 |
329 |
295 // --------------------------------------------------------- |
330 // --------------------------------------------------------- |
296 // AlarmAlertDialogPrivate::handleClockAlarms |
331 // AlarmAlertDialogPrivate::handleClockAlarms |
297 // rest of the details are commented in the header |
332 // rest of the details are commented in the header |
298 // --------------------------------------------------------- |
333 // --------------------------------------------------------- |
299 // |
334 // |
300 void AlarmAlertDialogPrivate::handleClockAlarms() |
335 void AlarmAlertDialogPrivate::handleClockAlarms() |
301 { |
336 { |
|
337 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_HANDLECLOCKALARMS_ENTRY ); |
302 QGraphicsWidget *headingWidget = mAlertDocLoader->findWidget("heading"); |
338 QGraphicsWidget *headingWidget = mAlertDocLoader->findWidget("heading"); |
303 if (!headingWidget) { |
339 if (!headingWidget) { |
304 qFatal("Unable to load the heading Widget"); |
340 qFatal("Unable to load the heading Widget"); |
305 } |
341 } |
306 |
342 |
340 HbAction *stopAction = qobject_cast<HbAction*> ( |
374 HbAction *stopAction = qobject_cast<HbAction*> ( |
341 mAlertDocLoader->findObject("stopAction")); |
375 mAlertDocLoader->findObject("stopAction")); |
342 if (!stopAction) { |
376 if (!stopAction) { |
343 qFatal("Unable to load the stopAction softkey"); |
377 qFatal("Unable to load the stopAction softkey"); |
344 } |
378 } |
345 stopAction->setText(hbTrId("txt_calendar_button_alarm_dialog_snooze")); |
379 stopAction->setText(hbTrId("txt_calendar_button_alarm_stop")); |
346 disconnect(stopAction, SIGNAL(triggered()), this, SLOT(close())); |
380 disconnect(stopAction, SIGNAL(triggered()), this, SLOT(close())); |
347 connect(stopAction, SIGNAL(triggered()), this, SLOT(dismissed())); |
381 connect(stopAction, SIGNAL(triggered()), this, SLOT(dismissed())); |
348 |
382 |
349 if (!mCanSnooze) { |
383 if (!mCanSnooze) { |
350 snoozeAction->setVisible(false); |
384 snoozeAction->setVisible(false); |
351 } |
385 } |
|
386 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_HANDLECLOCKALARMS_EXIT ); |
352 } |
387 } |
353 |
388 |
354 // --------------------------------------------------------- |
389 // --------------------------------------------------------- |
355 // AlarmAlertDialogPrivate::handleCalendarAlarms |
390 // AlarmAlertDialogPrivate::handleCalendarAlarms |
356 // rest of the details are commented in the header |
391 // rest of the details are commented in the header |
357 // --------------------------------------------------------- |
392 // --------------------------------------------------------- |
358 // |
393 // |
359 void AlarmAlertDialogPrivate::handleCalendarAlarms() |
394 void AlarmAlertDialogPrivate::handleCalendarAlarms() |
360 { |
395 { |
|
396 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_HANDLECALENDARALARMS_ENTRY ); |
361 bool success = false; |
397 bool success = false; |
362 HbExtendedLocale locale = HbExtendedLocale::system(); |
398 HbExtendedLocale locale = HbExtendedLocale::system(); |
363 // Check if the alarm has the time info or not. |
399 // Check if the alarm has the time info or not. |
364 // For all day events the time label has to be hidden |
400 // For all day events the time label has to be hidden |
365 // So load the proper sections accordingly |
401 // So load the proper sections accordingly |
372 mAlarmDateTime = qobject_cast<HbLabel*> ( |
408 mAlarmDateTime = qobject_cast<HbLabel*> ( |
373 mAlertDocLoader->findWidget("alarmTime")); |
409 mAlertDocLoader->findWidget("alarmTime")); |
374 if (!mAlarmDateTime) { |
410 if (!mAlarmDateTime) { |
375 qFatal("Unable to find the alarmTime label"); |
411 qFatal("Unable to find the alarmTime label"); |
376 } |
412 } |
377 mAlarmDateTime->setPlainText( |
413 mAlarmDateTime->setPlainText(mAlarmTime); |
378 hbTrId("txt_calendar_info_alarm_start_time").arg(mAlarmTime)); |
|
379 HbLabel *alarmDate = qobject_cast<HbLabel*> ( |
414 HbLabel *alarmDate = qobject_cast<HbLabel*> ( |
380 mAlertDocLoader->findWidget("alarmDate")); |
415 mAlertDocLoader->findWidget("alarmDate")); |
381 if (!alarmDate) { |
416 if (!alarmDate) { |
382 qFatal("Unable to find the alarmDate label"); |
417 qFatal("Unable to find the alarmDate label"); |
383 } |
418 } |
384 alarmDate->setPlainText( |
419 alarmDate->setPlainText(mAlarmDate); |
385 hbTrId("txt_calendar_info_alarm_start_date").arg(mAlarmDate)); |
|
386 HbLabel *alarmDateNonTimed = qobject_cast<HbLabel*> ( |
420 HbLabel *alarmDateNonTimed = qobject_cast<HbLabel*> ( |
387 mAlertDocLoader->findWidget("nonTimedAlarmDate")); |
421 mAlertDocLoader->findWidget("nonTimedAlarmDate")); |
388 if (!alarmDateNonTimed) { |
422 if (!alarmDateNonTimed) { |
389 qFatal("Unable to find the nonTimedAlarmDate label"); |
423 qFatal("Unable to find the nonTimedAlarmDate label"); |
390 } |
424 } |
461 HbAction *stopAction = qobject_cast<HbAction*> ( |
494 HbAction *stopAction = qobject_cast<HbAction*> ( |
462 mAlertDocLoader->findObject("stopAction")); |
495 mAlertDocLoader->findObject("stopAction")); |
463 if (!stopAction) { |
496 if (!stopAction) { |
464 qFatal("Unable to find the stopAction softkey"); |
497 qFatal("Unable to find the stopAction softkey"); |
465 } |
498 } |
466 stopAction->setText(hbTrId("txt_calendar_button_alarm_dialog_snooze")); |
499 stopAction->setText(hbTrId("txt_calendar_button_alarm_stop")); |
467 disconnect(stopAction, SIGNAL(triggered()), this, SLOT(close())); |
500 disconnect(stopAction, SIGNAL(triggered()), this, SLOT(close())); |
468 connect(stopAction, SIGNAL(triggered()), this, SLOT(dismissed())); |
501 connect(stopAction, SIGNAL(triggered()), this, SLOT(dismissed())); |
|
502 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_HANDLECALENDARALARMS_EXIT ); |
469 } |
503 } |
470 |
504 |
471 // --------------------------------------------------------- |
505 // --------------------------------------------------------- |
472 // AlarmAlertDialogPrivate::handleToDoAlarms |
506 // AlarmAlertDialogPrivate::handleToDoAlarms |
473 // rest of the details are commented in the header |
507 // rest of the details are commented in the header |
474 // --------------------------------------------------------- |
508 // --------------------------------------------------------- |
475 // |
509 // |
476 void AlarmAlertDialogPrivate::handleToDoAlarms() |
510 void AlarmAlertDialogPrivate::handleToDoAlarms() |
477 { |
511 { |
|
512 OstTraceFunctionEntry0( ALARMALERTDIALOGPRIVATE_HANDLETODOALARMS_ENTRY ); |
478 QGraphicsWidget *headingWidget = mAlertDocLoader->findWidget("heading"); |
513 QGraphicsWidget *headingWidget = mAlertDocLoader->findWidget("heading"); |
479 if (!headingWidget) { |
514 if (!headingWidget) { |
480 qFatal("Unable to load the heading widget"); |
515 qFatal("Unable to load the heading widget"); |
481 } |
516 } |
482 HbExtendedLocale locale = HbExtendedLocale::system(); |
517 HbExtendedLocale locale = HbExtendedLocale::system(); |
522 HbAction *stopAction = qobject_cast<HbAction*> ( |
556 HbAction *stopAction = qobject_cast<HbAction*> ( |
523 mAlertDocLoader->findObject("stopAction")); |
557 mAlertDocLoader->findObject("stopAction")); |
524 if (!stopAction) { |
558 if (!stopAction) { |
525 qFatal("Unable to load the stopAction softkey"); |
559 qFatal("Unable to load the stopAction softkey"); |
526 } |
560 } |
527 stopAction->setText(hbTrId("txt_calendar_button_alarm_dialog_snooze")); |
561 stopAction->setText(hbTrId("txt_calendar_button_alarm_stop")); |
528 disconnect(stopAction, SIGNAL(triggered()), this, SLOT(close())); |
562 disconnect(stopAction, SIGNAL(triggered()), this, SLOT(close())); |
529 connect(stopAction, SIGNAL(triggered()), this, SLOT(dismissed())); |
563 connect(stopAction, SIGNAL(triggered()), this, SLOT(dismissed())); |
|
564 OstTraceFunctionExit0( ALARMALERTDIALOGPRIVATE_HANDLETODOALARMS_EXIT ); |
530 } |
565 } |
531 |
566 |
532 // End of file --Don't remove this. |
567 // End of file --Don't remove this. |