196 { |
196 { |
197 MakePublishIconsL(); // icons based on the member info |
197 MakePublishIconsL(); // icons based on the member info |
198 } |
198 } |
199 |
199 |
200 iPublishObserver->SetScanningState( ETrue ); |
200 iPublishObserver->SetScanningState( ETrue ); |
201 iPublishObserver->PublishContentL( iPublishIconArray, iTextLabel ); |
201 |
|
202 TRAPD( error, |
|
203 iPublishObserver->PublishContentL( iPublishIconArray, iTextLabel ) ); |
|
204 if ( error ) |
|
205 { |
|
206 LOG_WRITEF( "Publish failed - %d error ignored", error ); |
|
207 } |
202 } |
208 } |
203 |
209 |
204 |
210 |
205 // -------------------------------------------------------------------------- |
211 // -------------------------------------------------------------------------- |
206 // CWsfAiView::SelectedItem() |
212 // CWsfAiView::SelectedItem() |
220 void CWsfAiView::ForceRefreshingL() |
226 void CWsfAiView::ForceRefreshingL() |
221 { |
227 { |
222 LOG_ENTERFN( "CWsfAiView::ForceRefreshingL" ); |
228 LOG_ENTERFN( "CWsfAiView::ForceRefreshingL" ); |
223 } |
229 } |
224 |
230 |
|
231 |
225 // -------------------------------------------------------------------------- |
232 // -------------------------------------------------------------------------- |
226 // CWsfAiPlugin::SetRefreshingL |
233 // CWsfAiPlugin::SetRefreshingL |
227 // -------------------------------------------------------------------------- |
234 // -------------------------------------------------------------------------- |
228 // |
235 // |
229 void CWsfAiView::StartConnectingAnimationL() |
236 void CWsfAiView::StartConnectingAnimationL() |
230 { |
237 { |
|
238 LOG_ENTERFN( "CWsfAiView::StartConnectingAnimationL" ); |
231 iPublishObserver->StartConnectingL(); |
239 iPublishObserver->StartConnectingL(); |
232 } |
240 } |
|
241 |
233 |
242 |
234 // -------------------------------------------------------------------------- |
243 // -------------------------------------------------------------------------- |
235 // CWsfAiView::MultilineControl |
244 // CWsfAiView::MultilineControl |
236 // -------------------------------------------------------------------------- |
245 // -------------------------------------------------------------------------- |
237 // |
246 // |
265 TInt thirdTabPos = aString.Mid( |
274 TInt thirdTabPos = aString.Mid( |
266 secondTabPos +1 ).Locate( |
275 secondTabPos +1 ).Locate( |
267 delimiter ) + secondTabPos + 1; |
276 delimiter ) + secondTabPos + 1; |
268 |
277 |
269 // ok we have the tab positions read the values... |
278 // ok we have the tab positions read the values... |
270 |
|
271 TInt secVal = 0; |
|
272 //read the icons |
279 //read the icons |
273 TLex( aString.Mid( 0, firstTabPos )).Val( (TInt&)statusIcon ); |
280 TLex( aString.Mid( 0, firstTabPos )).Val( (TInt&)statusIcon ); |
274 TLex( aString.Mid( |
281 TLex( aString.Mid( |
275 secondTabPos+1 , thirdTabPos - (secondTabPos+1) ) |
282 secondTabPos+1 , thirdTabPos - (secondTabPos+1) ) |
276 ).Val( (TInt&) strengthIcon); |
283 ).Val( (TInt&) strengthIcon); |
277 |
284 |
278 TLex( aString.Mid( |
285 TLex( aString.Mid( |
279 thirdTabPos+1 , aString.Length() - ( thirdTabPos + 1 ) ) |
286 thirdTabPos+1 , aString.Length() - ( thirdTabPos + 1 ) ) |
280 ).Val( (TInt&) secureicon ); |
287 ).Val( (TInt&) secureicon ); |
281 |
|
282 secVal = secureicon; |
|
283 HBufC* secureString = NULL; |
|
284 |
|
285 iPublishObserver->SetStrengthAndSecure( NULL, secureString ); |
|
286 if ( secVal == ESecureNetworkIcon ) |
|
287 { |
|
288 delete secureString; |
|
289 secureString = NULL; |
|
290 } |
|
291 |
288 |
292 // and the label text |
289 // and the label text |
293 TPtrC labelText = aString.Mid( firstTabPos+1, |
290 TPtrC labelText = aString.Mid( firstTabPos+1, |
294 secondTabPos - ( firstTabPos + 1 ) ); |
291 secondTabPos - ( firstTabPos + 1 ) ); |
295 |
292 |
326 iCurrentText = KNullDesC(); |
323 iCurrentText = KNullDesC(); |
327 |
324 |
328 iUpdateStatusIconDeferred = iSavedUpdateStatusIconDeferred; |
325 iUpdateStatusIconDeferred = iSavedUpdateStatusIconDeferred; |
329 |
326 |
330 MakePublishIconsL(); |
327 MakePublishIconsL(); |
331 iPublishObserver->PublishContentL( iPublishIconArray, iTextLabel ); |
328 |
|
329 TRAPD( error, |
|
330 iPublishObserver->PublishContentL( iPublishIconArray, iTextLabel ) ); |
|
331 if ( error ) |
|
332 { |
|
333 LOG_WRITEF( "Publish failed - %d error ignored", error ); |
|
334 } |
|
335 |
332 iPublishObserver->SetRefreshingL( EFalse ); |
336 iPublishObserver->SetRefreshingL( EFalse ); |
333 } |
337 } |
334 |
338 |
335 |
339 |
336 // -------------------------------------------------------------------------- |
340 // -------------------------------------------------------------------------- |
366 iUpdateSecureIconDeferred = ETransparentIcon; |
370 iUpdateSecureIconDeferred = ETransparentIcon; |
367 iUpdateSignalStrengthIconDeferred = ETransparentIcon; |
371 iUpdateSignalStrengthIconDeferred = ETransparentIcon; |
368 iUpdateStatusIconDeferred = EWlanOffIcon; |
372 iUpdateStatusIconDeferred = EWlanOffIcon; |
369 iPublishObserver->SetScanningState( EFalse ); |
373 iPublishObserver->SetScanningState( EFalse ); |
370 MakePublishIconsL(); |
374 MakePublishIconsL(); |
371 iPublishObserver->PublishContentL( iPublishIconArray, iTextLabel ); |
375 |
|
376 TRAPD( error, |
|
377 iPublishObserver->PublishContentL( iPublishIconArray, iTextLabel ) ); |
|
378 if ( error ) |
|
379 { |
|
380 LOG_WRITEF( "Publish failed - %d error ignored", error ); |
|
381 } |
372 } |
382 } |
373 |
383 |
374 |
384 |
375 // -------------------------------------------------------------------------- |
385 // -------------------------------------------------------------------------- |
376 // CWsfAiView::ActivateRefreshTimer() |
386 // CWsfAiView::ActivateRefreshTimer() |
399 iPublishIconArray->Reset(); |
409 iPublishIconArray->Reset(); |
400 iPublishIconArray->AppendL( iUpdateStatusIconDeferred ); |
410 iPublishIconArray->AppendL( iUpdateStatusIconDeferred ); |
401 iPublishIconArray->AppendL( iUpdateSecureIconDeferred ); |
411 iPublishIconArray->AppendL( iUpdateSecureIconDeferred ); |
402 iPublishIconArray->AppendL( iUpdateSignalStrengthIconDeferred ); |
412 iPublishIconArray->AppendL( iUpdateSignalStrengthIconDeferred ); |
403 } |
413 } |
404 |
|
405 } |
414 } |
406 |
415 |
407 |
416 |
408 // -------------------------------------------------------------------------- |
417 // -------------------------------------------------------------------------- |
409 // CWsfAiView::MakeTransparentPublishIconsL() |
418 // CWsfAiView::MakeTransparentPublishIconsL() |
424 |
433 |
425 iUpdateSecureIconDeferred = tmp2; |
434 iUpdateSecureIconDeferred = tmp2; |
426 iUpdateSignalStrengthIconDeferred = tmp3; |
435 iUpdateSignalStrengthIconDeferred = tmp3; |
427 } |
436 } |
428 |
437 |
|
438 |
|
439 // -------------------------------------------------------------------------- |
|
440 // CWsfAiView::UpdateViewL() |
|
441 // -------------------------------------------------------------------------- |
|
442 // |
429 void CWsfAiView::UpdateViewL( MDesCArray* aItemTextArray ) |
443 void CWsfAiView::UpdateViewL( MDesCArray* aItemTextArray ) |
430 { |
444 { |
431 LOG_ENTERFN( "CWsfAiView::UpdateViewL" ); |
445 LOG_ENTERFN( "CWsfAiView::UpdateViewL" ); |
432 TChar delimiter('\t'); |
446 TChar delimiter('\t'); |
433 TWsfPluginIcons statusIcon; |
447 TWsfPluginIcons statusIcon; |