equal
deleted
inserted
replaced
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #include <hbtoolbar.h> |
|
18 #include <hbaction.h> |
17 #include <hbaction.h> |
19 #include <hblistview.h> |
18 #include <hblistview.h> |
20 |
19 |
21 #include "irapplication.h" |
20 #include "irapplication.h" |
22 #include "irviewmanager.h" |
21 #include "irviewmanager.h" |
202 { |
201 { |
203 normalInit(); |
202 normalInit(); |
204 |
203 |
205 //initialization from handleCommand() |
204 //initialization from handleCommand() |
206 handleCommand(EIR_ViewCommand_ACTIVATED, EIR_ViewCommandReason_Show); |
205 handleCommand(EIR_ViewCommand_ACTIVATED, EIR_ViewCommandReason_Show); |
|
206 emit applicationReady(); |
207 } |
207 } |
208 } |
208 } |
209 |
209 |
210 void IRMainView::normalInit() |
210 void IRMainView::normalInit() |
211 { |
211 { |
212 if (!initCompleted()) |
212 if (!initCompleted()) |
213 { |
213 { |
214 IrAbstractListViewBase::lazyInit(); |
214 IrAbstractListViewBase::lazyInit(); |
215 initToolBar(); |
215 |
216 setCheckedAction(); |
216 setCheckedAction(); |
217 |
217 |
218 connect(iNetworkController, SIGNAL(networkRequestNotified(IRQNetworkEvent)), |
218 connect(iNetworkController, SIGNAL(networkRequestNotified(IRQNetworkEvent)), |
219 this, SLOT(networkRequestNotified(IRQNetworkEvent))); |
219 this, SLOT(networkRequestNotified(IRQNetworkEvent))); |
220 |
220 |
223 iListView->setModel(iMainModel); |
223 iListView->setModel(iMainModel); |
224 |
224 |
225 setInitCompleted(true); |
225 setInitCompleted(true); |
226 } |
226 } |
227 } |
227 } |
228 |
|
229 void IRMainView::initToolBar() |
|
230 { |
|
231 HbToolBar *viewToolBar = toolBar(); |
|
232 viewToolBar->addAction(iGenresAction); |
|
233 viewToolBar->addAction(iCollectionsAction); |
|
234 viewToolBar->addAction(iFavoritesAction); |
|
235 viewToolBar->addAction(iSearchAction); |
|
236 } |
|