38 #include <hbaction.h> |
38 #include <hbaction.h> |
39 #include <hbtoolbar.h> |
39 #include <hbtoolbar.h> |
40 #include <dialpad.h> |
40 #include <dialpad.h> |
41 #include <hblineedit.h> |
41 #include <hblineedit.h> |
42 #include <hbgroupbox.h> |
42 #include <hbgroupbox.h> |
43 #include <hbmessagebox.h> |
|
44 #include <hbmainwindow.h> |
43 #include <hbmainwindow.h> |
45 #include <hbswipegesture.h> |
44 #include <hbswipegesture.h> |
|
45 #include <hbmessagebox.h> |
46 #include <QTimer> |
46 #include <QTimer> |
47 #include <hbactivitymanager.h> |
47 #include <hbactivitymanager.h> |
48 |
48 |
49 Q_DECLARE_METATYPE(LogsMatchesModel*) |
49 Q_DECLARE_METATYPE(LogsMatchesModel*) |
50 |
50 |
314 // |
314 // |
315 void LogsRecentCallsView::clearList() |
315 void LogsRecentCallsView::clearList() |
316 { |
316 { |
317 LOGS_QDEBUG( "logs [UI] -> LogsRecentCallsView::clearList()->" ); |
317 LOGS_QDEBUG( "logs [UI] -> LogsRecentCallsView::clearList()->" ); |
318 if ( mFilter ) { |
318 if ( mFilter ) { |
319 askConfirmation(hbTrId("txt_dialer_ui_title_clear_list"), |
319 HbMessageBox::question( |
320 hbTrId("txt_dialer_ui_info_all_call_events_will_be_remo"), |
320 hbTrId("txt_dialer_ui_info_all_call_events_will_be_remo"), |
321 this, |
321 this, |
322 SLOT(clearListOkAnswer())); |
322 SLOT(clearListAnswer(int)), |
323 |
323 HbMessageBox::Ok | HbMessageBox::Cancel, |
|
324 new HbLabel(hbTrId("txt_dialer_ui_title_clear_list"))); |
324 } |
325 } |
325 LOGS_QDEBUG( "logs [UI] -> LogsRecentCallsView::clearList()<-" ); |
326 LOGS_QDEBUG( "logs [UI] -> LogsRecentCallsView::clearList()<-" ); |
326 } |
327 } |
327 |
328 |
328 // ----------------------------------------------------------------------------- |
329 // ----------------------------------------------------------------------------- |
329 // LogsRecentCallsView::clearListOkAnswer |
330 // LogsRecentCallsView::clearListAnswer |
330 // ----------------------------------------------------------------------------- |
331 // ----------------------------------------------------------------------------- |
331 // |
332 // |
332 void LogsRecentCallsView::clearListOkAnswer() |
333 void LogsRecentCallsView::clearListAnswer(int action) |
333 { |
334 { |
334 LOGS_QDEBUG( "logs [UI] -> LogsRecentCallsView::clearListOkAnswer()" ); |
335 LOGS_QDEBUG( "logs [UI] -> LogsRecentCallsView::clearListAnswer()" ); |
335 if (mFilter) { |
336 if ((action == HbMessageBox::Ok) && mFilter) { |
336 mModel->clearList( mFilter->clearType() ); |
337 mModel->clearList( mFilter->clearType() ); |
337 } |
338 } |
338 LOGS_QDEBUG( "logs [UI] <- LogsRecentCallsView::clearListAnswer()" ); |
339 LOGS_QDEBUG( "logs [UI] <- LogsRecentCallsView::clearListAnswer()" ); |
339 } |
340 } |
340 |
341 |