equal
deleted
inserted
replaced
24 * aViewId : the id of the view |
24 * aViewId : the id of the view |
25 * Return : None |
25 * Return : None |
26 */ |
26 */ |
27 IRBaseView::IRBaseView(IRApplication* aApplication, TIRViewId aViewId) : iApplication(aApplication), |
27 IRBaseView::IRBaseView(IRApplication* aApplication, TIRViewId aViewId) : iApplication(aApplication), |
28 iViewId(aViewId), |
28 iViewId(aViewId), |
29 iUseNetworkReason(EIR_UseNetwork_NoReason), |
29 iUseNetworkReason(EIR_UseNetwork_NoReason) |
30 iInitCompleted(false) |
|
31 { |
30 { |
|
31 iNetworkController = iApplication->getNetworkController(); |
|
32 iPlayController = iApplication->getPlayController(); |
|
33 iIsdsClient = iApplication->getIsdsClient(); |
|
34 iFavorites = iApplication->getFavoritesDB(); |
|
35 iSettings = iApplication->getSettings(); |
32 } |
36 } |
33 |
37 |
34 TIRViewId IRBaseView::id() const |
38 TIRViewId IRBaseView::id() const |
35 { |
39 { |
36 return iViewId; |
40 return iViewId; |
106 TIRUseNetworkReason IRBaseView::getUseNetworkReason() const |
110 TIRUseNetworkReason IRBaseView::getUseNetworkReason() const |
107 { |
111 { |
108 return iUseNetworkReason; |
112 return iUseNetworkReason; |
109 } |
113 } |
110 |
114 |
111 void IRBaseView::lazyInit() |
|
112 { |
|
113 if (!initCompleted()) |
|
114 { |
|
115 iNetworkController = iApplication->getNetworkController(); |
|
116 iPlayController = iApplication->getPlayController(); |
|
117 iIsdsClient = iApplication->getIsdsClient(); |
|
118 iFavorites = iApplication->getFavoritesDB(); |
|
119 iSettings = iApplication->getSettings(); |
|
120 } |
|
121 } |
|
122 |
115 |
123 /* |
116 /* |
124 * Description : return the pointer to the view manager object owned by application |
117 * Description : return the pointer to the view manager object owned by application |
125 * Parameters : None |
118 * Parameters : None |
126 * Return : the pointer to the view manager object owned by application |
119 * Return : the pointer to the view manager object owned by application |
145 default: |
138 default: |
146 break; |
139 break; |
147 } |
140 } |
148 } |
141 } |
149 |
142 |
150 void IRBaseView::setInitCompleted(bool aFlag) |
|
151 { |
|
152 iInitCompleted = aFlag; |
|
153 } |
|
154 |
|
155 bool IRBaseView::initCompleted() const |
|
156 { |
|
157 return iInitCompleted; |
|
158 } |
|