64 #define LOC_TB_EXTN_CONVERSATIONS hbTrId("txt_messaging_button_conversations") |
64 #define LOC_TB_EXTN_CONVERSATIONS hbTrId("txt_messaging_button_conversations") |
65 |
65 |
66 // Confirmation note |
66 // Confirmation note |
67 #define LOC_DELETE_MESSAGE hbTrId("txt_messaging_dialog_delete_message") |
67 #define LOC_DELETE_MESSAGE hbTrId("txt_messaging_dialog_delete_message") |
68 #define LOC_DELETE_ALL_DRAFTS hbTrId("txt_messaging_dialog_delate_all_drafts") |
68 #define LOC_DELETE_ALL_DRAFTS hbTrId("txt_messaging_dialog_delate_all_drafts") |
69 #define LOC_BUTTON_DELETE hbTrId("txt_common_button_delete") |
|
70 #define LOC_BUTTON_CANCEL hbTrId("txt_common_button_cancel") |
|
71 |
69 |
72 //--------------------------------------------------------------- |
70 //--------------------------------------------------------------- |
73 // DraftsListView::DraftsListView |
71 // DraftsListView::DraftsListView |
74 // @see header |
72 // @see header |
75 //--------------------------------------------------------------- |
73 //--------------------------------------------------------------- |
120 HbToolBarExtension *viewExtn = new HbToolBarExtension(); |
118 HbToolBarExtension *viewExtn = new HbToolBarExtension(); |
121 HbAction *viewAction = mToolBar->addExtension(viewExtn); |
119 HbAction *viewAction = mToolBar->addExtension(viewExtn); |
122 viewAction->setIcon(HbIcon(SORT_ICON)); |
120 viewAction->setIcon(HbIcon(SORT_ICON)); |
123 |
121 |
124 mViewExtnList = new HbListWidget(); |
122 mViewExtnList = new HbListWidget(); |
|
123 mViewExtnList->setSizePolicy(QSizePolicy::Preferred,QSizePolicy::Fixed); |
125 mViewExtnList->addItem(LOC_TB_EXTN_DRAFTS); |
124 mViewExtnList->addItem(LOC_TB_EXTN_DRAFTS); |
126 mViewExtnList->addItem(LOC_TB_EXTN_CONVERSATIONS); |
125 mViewExtnList->addItem(LOC_TB_EXTN_CONVERSATIONS); |
127 |
126 |
128 HbListViewItem *prototype = mViewExtnList->listItemPrototype(); |
127 HbListViewItem *prototype = mViewExtnList->listItemPrototype(); |
129 HbFrameBackground frame(POPUP_LIST_FRAME, HbFrameDrawer::NinePieces); |
128 HbFrameBackground frame(POPUP_LIST_FRAME, HbFrameDrawer::NinePieces); |
228 if (!index.isValid()) { |
227 if (!index.isValid()) { |
229 return; |
228 return; |
230 } |
229 } |
231 |
230 |
232 HbMessageBox::question(LOC_DELETE_MESSAGE, |
231 HbMessageBox::question(LOC_DELETE_MESSAGE, |
233 this,SLOT(onDialogDeleteMsg(HbAction*)), |
232 this,SLOT(onDialogDeleteMsg(HbAction*)), |
234 LOC_BUTTON_DELETE, LOC_BUTTON_CANCEL); |
233 HbMessageBox::Delete | HbMessageBox::Cancel); |
235 |
234 |
236 } |
235 } |
237 |
236 |
238 //------------------------------------------------------------------------------ |
237 //------------------------------------------------------------------------------ |
239 // DraftsListView::deleteAllDraftMessage |
238 // DraftsListView::deleteAllDraftMessage |
240 // @see header |
239 // @see header |
241 //------------------------------------------------------------------------------ |
240 //------------------------------------------------------------------------------ |
242 void DraftsListView::deleteAllDraftMessage() |
241 void DraftsListView::deleteAllDraftMessage() |
243 { |
242 { |
244 HbMessageBox::question(LOC_DELETE_ALL_DRAFTS, |
243 HbMessageBox::question(LOC_DELETE_ALL_DRAFTS, |
245 this,SLOT(onDialogDeleteAllMessages(HbAction*)), |
244 this,SLOT(onDialogDeleteAllMessages(HbAction*)), |
246 LOC_BUTTON_DELETE, |
245 HbMessageBox::Delete | HbMessageBox::Cancel); |
247 LOC_BUTTON_CANCEL); |
|
248 } |
246 } |
249 |
247 |
250 //------------------------------------------------------------------------------ |
248 //------------------------------------------------------------------------------ |
251 // DraftsListView::createNewMessage |
249 // DraftsListView::createNewMessage |
252 // @see header |
250 // @see header |