equal
deleted
inserted
replaced
100 LOG1("Mem Error: %d", err); |
100 LOG1("Mem Error: %d", err); |
101 // ToDo: Initiate termination |
101 // ToDo: Initiate termination |
102 return; |
102 return; |
103 } |
103 } |
104 |
104 |
105 err = iRefRequestList.Append( req ); |
105 iRefRequestList.Append( req ); |
106 if( err != KErrNone ) |
|
107 { |
|
108 LOG1("Failed to append req to the array:%d",err); |
|
109 return; |
|
110 } |
|
111 } |
106 } |
112 |
107 |
113 LOG1( "View State is %d", iState ); |
108 LOG1( "View State is %d", iState ); |
114 // Initiate processing of request queue only if the current state is |
109 // Initiate processing of request queue only if the current state is |
115 // idle. Processing of subsequent requests is automatically handled |
110 // idle. Processing of subsequent requests is automatically handled |
133 { |
128 { |
134 FUNC_ENTER("CLbtTriggerView::GetModifiedTriggers"); |
129 FUNC_ENTER("CLbtTriggerView::GetModifiedTriggers"); |
135 |
130 |
136 for( TInt index = 0; index < iModifiedTrgList.Count(); index++ ) |
131 for( TInt index = 0; index < iModifiedTrgList.Count(); index++ ) |
137 { |
132 { |
138 TInt error = aList.Append( iModifiedTrgList[index] ); |
133 aList.Append( iModifiedTrgList[index] ); |
139 if( error != KErrNone ) |
|
140 { |
|
141 LOG1("Failed to append trigger id:%d",error); |
|
142 return; |
|
143 } |
|
144 } |
134 } |
145 |
135 |
146 // This is done here because strategy engine invokes this method and evaluates all modified triggers |
136 // This is done here because strategy engine invokes this method and evaluates all modified triggers |
147 iModifiedTrgList.Reset(); |
137 iModifiedTrgList.Reset(); |
148 |
138 |
243 TUpdateRequestParam reqParam; |
233 TUpdateRequestParam reqParam; |
244 reqParam.areaType = aAreaType; |
234 reqParam.areaType = aAreaType; |
245 reqParam.posInfo = aPosInfo; |
235 reqParam.posInfo = aPosInfo; |
246 reqParam.trigger = aTrigger; |
236 reqParam.trigger = aTrigger; |
247 reqParam.dataMask = aDataMask; |
237 reqParam.dataMask = aDataMask; |
248 TInt error = iUpdateRequestList.Append( reqParam ); |
238 iUpdateRequestList.Append( reqParam ); |
249 if( error != KErrNone ) |
|
250 { |
|
251 LOG1("Failed to appenf reqParam:%d",error); |
|
252 } |
|
253 if( EIdle == iState ) |
239 if( EIdle == iState ) |
254 { |
240 { |
255 iState = ERefreshContainer; |
241 iState = ERefreshContainer; |
256 SetEvent(); |
242 SetEvent(); |
257 } |
243 } |