uiservicetab/vimpstui/src/cvimpstuisearchview.cpp
branchRCL_3
changeset 6 78867dafe7eb
parent 0 5e5d6b214f4f
child 9 9fdee5e1da30
equal deleted inserted replaced
4:f5911524345e 6:78867dafe7eb
   568 		return;	
   568 		return;	
   569 		}
   569 		}
   570 	
   570 	
   571     CVIMPSTUiSearchQueryDialog* querydialog = CVIMPSTUiSearchQueryDialog::NewL( fieldArray );
   571     CVIMPSTUiSearchQueryDialog* querydialog = CVIMPSTUiSearchQueryDialog::NewL( fieldArray );
   572    
   572    
   573     querydialog->ExecuteLD();
   573  
   574    
   574    
   575     if (querydialog)
   575     if (querydialog)
   576         {
   576         {
       
   577         querydialog->ExecuteLD();
   577         iEndKeyPressed = querydialog->IsEndKeyPressed();
   578         iEndKeyPressed = querydialog->IsEndKeyPressed();
   578         }
   579         }
   579     
   580     
   580     // we have to set the title pane with " Search results " string
   581     // we have to set the title pane with " Search results " string
   581     CCVIMPSTUiStatusPaneHandler* StatusPaneHandler = CCVIMPSTUiStatusPaneHandler::NewL();
   582     CCVIMPSTUiStatusPaneHandler* StatusPaneHandler = CCVIMPSTUiStatusPaneHandler::NewL();
   596 		HBufC* firstDataBuf = fieldArray.GetFirstEnteredFieldDataL().AllocLC();
   597 		HBufC* firstDataBuf = fieldArray.GetFirstEnteredFieldDataL().AllocLC();
   597 		TPtr searchStrPtr( firstDataBuf->Des() );
   598 		TPtr searchStrPtr( firstDataBuf->Des() );
   598 	
   599 	
   599 		iExtensionService.SetSearchStringL( searchStrPtr );
   600 		iExtensionService.SetSearchStringL( searchStrPtr );
   600 		UpdateNaviPaneTextL();
   601 		UpdateNaviPaneTextL();
   601 		if ( iContainer->ListBox()->Model()->NumberOfItems() > 0 )
   602 		if ( iContainer)
   602 	        {
   603 			{
   603 	        iContainer->ClearListBoxContents();  
   604 			if ( iContainer->ListBox()->Model()->NumberOfItems() > 0 )
   604 	        }
   605 		        {
   605 	    // set the empty string blank    
   606 		        iContainer->ClearListBoxContents();  
   606 		iContainer->SetSearchingTextToListboxL();   
   607 		        }
   607 		
   608 		    // set the empty string blank    
       
   609 			iContainer->SetSearchingTextToListboxL();   
       
   610 		  }
   608 		HBufC* searchWaitNoteText = StringLoader::LoadLC( R_QTN_SERVTAB_SEARCHING , searchStrPtr, CCoeEnv::Static() );
   611 		HBufC* searchWaitNoteText = StringLoader::LoadLC( R_QTN_SERVTAB_SEARCHING , searchStrPtr, CCoeEnv::Static() );
   609 		iWaitNote = CVIMPSTUtilsWaitNote::ShowWaitNoteL( *searchWaitNoteText, EFalse , ETrue  );  
   612 		iWaitNote = CVIMPSTUtilsWaitNote::ShowWaitNoteL( *searchWaitNoteText, EFalse , ETrue  );  
   610     	CleanupStack::PopAndDestroy(searchWaitNoteText); 
   613     	CleanupStack::PopAndDestroy(searchWaitNoteText); 
   611 		//searchWaitNoteText	
   614 		//searchWaitNoteText	
   612 		RArray<TVIMPSTSearchKeyData> keyDataArray;
   615 		RArray<TVIMPSTSearchKeyData> keyDataArray;