equal
deleted
inserted
replaced
76 void NmMailboxListView::loadViewLayout() |
76 void NmMailboxListView::loadViewLayout() |
77 { |
77 { |
78 NM_FUNCTION; |
78 NM_FUNCTION; |
79 |
79 |
80 // Use document loader to load the view |
80 // Use document loader to load the view |
81 bool ok = false; |
81 bool ok(false); |
82 setObjectName(QString(NMUI_MAILBOX_LIST_VIEW)); |
82 setObjectName(QString(NMUI_MAILBOX_LIST_VIEW)); |
83 QObjectList objectList; |
|
84 objectList.append(this); |
|
85 // Pass the view to documentloader. Document loader uses this view |
83 // Pass the view to documentloader. Document loader uses this view |
86 // when docml is parsed, instead of creating new view. |
84 // when docml is parsed, instead of creating new view. |
87 if (mDocumentLoader) { |
85 if (mDocumentLoader) { |
88 mDocumentLoader->setObjectTree(objectList); |
|
89 mWidgetList = mDocumentLoader->load(NMUI_MAILBOX_LIST_VIEW_XML, &ok); |
86 mWidgetList = mDocumentLoader->load(NMUI_MAILBOX_LIST_VIEW_XML, &ok); |
90 } |
87 } |
91 |
88 |
92 if (ok == true && mWidgetList.count()) { |
89 if (ok == true && mWidgetList.count()) { |
93 // Create item context menu |
90 // Create item context menu |
209 NmUiStartParam *startParam = new NmUiStartParam(NmUiViewMessageList,mailbox->id(),inboxId); |
206 NmUiStartParam *startParam = new NmUiStartParam(NmUiViewMessageList,mailbox->id(),inboxId); |
210 mApplication.enterNmUiView(startParam); |
207 mApplication.enterNmUiView(startParam); |
211 } |
208 } |
212 } |
209 } |
213 |
210 |
214 /*! |
211 |
215 handleActionCommand. From NmMenuObserver, extension manager calls this |
|
216 call to handle menu command in the UI. |
|
217 */ |
|
218 |
|
219 void NmMailboxListView::handleActionCommand(NmActionResponse &actionResponse) |
|
220 { |
|
221 NM_FUNCTION; |
|
222 |
|
223 // Handle context menu commands here |
|
224 Q_UNUSED(actionResponse); |
|
225 } |
|
226 |
|
227 |
|