267 //------------------------------------------------------------------------------ |
267 //------------------------------------------------------------------------------ |
268 // |
268 // |
269 void CUSBClassChangeUIPluginContainer::ShowPopUpsL(TInt aIndex) |
269 void CUSBClassChangeUIPluginContainer::ShowPopUpsL(TInt aIndex) |
270 { |
270 { |
271 FLOG(_L("[CUSBClassChangeUIPlugin]\t CUSBClassChangeUIPluginContainer::ShowPopUpsL ")); |
271 FLOG(_L("[CUSBClassChangeUIPlugin]\t CUSBClassChangeUIPluginContainer::ShowPopUpsL ")); |
272 iPopupController->SetTimePopupInView( KMaxVisibleTime); |
272 if ( aIndex >= 0 && aIndex < iPopUpItems->Count() ) |
273 TPtrC chosen = iPopUpItems->MdcaPoint(aIndex); |
273 { |
274 iPopupController->SetTextL( chosen ); |
274 iPopupController->SetTimePopupInView( KMaxVisibleTime); |
275 iPopupController->SetPositionByHighlight( TRect( |
275 TPtrC chosen = iPopUpItems->MdcaPoint(aIndex); |
|
276 iPopupController->SetTextL( chosen ); |
|
277 iPopupController->SetPositionByHighlight( TRect( |
276 iUSBMainListBox->View()->ItemPos( aIndex + 1 ), |
278 iUSBMainListBox->View()->ItemPos( aIndex + 1 ), |
277 iUSBMainListBox->View()->ItemSize() ) ); |
279 iUSBMainListBox->View()->ItemSize() ) ); |
278 iPopupController->SetTimeDelayBeforeShow( KMsToWaitBeforePopup ); |
280 iPopupController->SetTimeDelayBeforeShow( KMsToWaitBeforePopup ); |
279 iPopupController->ShowInfoPopupNote(); |
281 iPopupController->ShowInfoPopupNote(); |
|
282 } |
280 FLOG(_L("[CUSBClassChangeUIPlugin]\t CUSBClassChangeUIPluginContainer::ShowPopUpsL complete")); |
283 FLOG(_L("[CUSBClassChangeUIPlugin]\t CUSBClassChangeUIPluginContainer::ShowPopUpsL complete")); |
281 |
284 |
282 } |
285 } |
283 |
286 |
284 // ---------------------------------------------------------------------------- |
287 // ---------------------------------------------------------------------------- |