phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclserviceuicontextimpl.cpp
equal
deleted
inserted
replaced
104 // |
104 // |
105 CPbkxRclServiceUiContextImpl::~CPbkxRclServiceUiContextImpl() |
105 CPbkxRclServiceUiContextImpl::~CPbkxRclServiceUiContextImpl() |
106 { |
106 { |
107 FUNC_LOG; |
107 FUNC_LOG; |
108 |
108 |
|
109 delete iWaitDialog; |
|
110 iWaitDialog = NULL; |
|
111 |
109 if( iTimer ) |
112 if( iTimer ) |
110 { |
113 { |
111 iTimer->Cancel(); |
114 iTimer->Cancel(); |
112 } |
115 } |
113 delete iTimer; |
116 delete iTimer; |
145 |
148 |
146 TFileName dllFileName; |
149 TFileName dllFileName; |
147 Dll::FileName( dllFileName ); |
150 Dll::FileName( dllFileName ); |
148 |
151 |
149 TParse parse; |
152 TParse parse; |
150 parse.Set( KResourceFile, &KDC_APP_RESOURCE_DIR, &dllFileName ); |
153 parse.Set( KResourceFile, &KDC_RESOURCE_FILES_DIR, &dllFileName ); |
151 TFileName resourceFile = parse.FullName(); |
154 TFileName resourceFile = parse.FullName(); |
152 BaflUtils::NearestLanguageFile( coeEnv->FsSession(), resourceFile ); |
155 BaflUtils::NearestLanguageFile( coeEnv->FsSession(), resourceFile ); |
153 |
156 |
154 TRAPD( status, |
157 TRAPD( status, |
155 iResourceFileOffset = coeEnv->AddResourceFileL( resourceFile ) ); |
158 iResourceFileOffset = coeEnv->AddResourceFileL( resourceFile ) ); |
433 break; |
436 break; |
434 case ERclCmdSendBusinessCard: |
437 case ERclCmdSendBusinessCard: |
435 iActionServiceWrapper->ExecuteActionL( |
438 iActionServiceWrapper->ExecuteActionL( |
436 KFscAtSendBusinessCard ); |
439 KFscAtSendBusinessCard ); |
437 break; |
440 break; |
438 case ERclCmdHelp: |
441 case EAknCmdHelp: |
439 { |
442 { |
440 CCoeAppUi* appUi = CCoeEnv::Static()->AppUi(); |
443 CCoeAppUi* appUi = CCoeEnv::Static()->AppUi(); |
441 CArrayFix<TCoeHelpContext>* contexts = appUi->AppHelpContextL(); |
444 CArrayFix<TCoeHelpContext>* contexts = appUi->AppHelpContextL(); |
442 HlpLauncher::LaunchHelpApplicationL( |
445 HlpLauncher::LaunchHelpApplicationL( |
443 CCoeEnv::Static()->WsSession(), |
446 CCoeEnv::Static()->WsSession(), |
677 TInt aDialogResourceId, |
680 TInt aDialogResourceId, |
678 const TDesC& aText ) |
681 const TDesC& aText ) |
679 { |
682 { |
680 FUNC_LOG; |
683 FUNC_LOG; |
681 |
684 |
682 iWaitDialog = new ( ELeave ) CAknWaitDialog( NULL, ETrue ); |
685 iWaitDialog = new ( ELeave ) CAknWaitDialog( reinterpret_cast<CEikDialog**>(&iWaitDialog), ETrue ); //TEROKOE |
683 iWaitDialog->SetTextL( aText ); |
686 iWaitDialog->SetTextL( aText ); |
684 iWaitDialog->SetCallback( this ); |
687 iWaitDialog->SetCallback( this ); |
685 iWaitDialog->ExecuteLD( aDialogResourceId ); |
688 iWaitDialog->ExecuteLD( aDialogResourceId ); |
686 |
689 |
687 } |
690 } |
748 { |
751 { |
749 FUNC_LOG; |
752 FUNC_LOG; |
750 |
753 |
751 if (iWaitDialog) |
754 if (iWaitDialog) |
752 { |
755 { |
753 iWaitDialog->ProcessFinishedL(); |
756 TRAP_IGNORE( iWaitDialog->ProcessFinishedL() ); |
|
757 //The below 2 lines just in case... ProcessFinishedL already took care of these |
|
758 delete iWaitDialog; |
754 iWaitDialog = NULL; |
759 iWaitDialog = NULL; |
755 } |
760 } |
756 } |
761 } |
757 |
762 |
758 // --------------------------------------------------------------------------- |
763 // --------------------------------------------------------------------------- |
804 |
809 |
805 UnsetState( EResultDlgOnTop ); |
810 UnsetState( EResultDlgOnTop ); |
806 SetState( EInitial ); |
811 SetState( EInitial ); |
807 } |
812 } |
808 else |
813 else |
809 { // iSearchResultDialog != NULL |
814 { // iSearchResultDialog != NULL |
810 |
815 iSearchResultDialog->SetMoreThanMaxResults(aShowTooManyResultsNote); |
811 |
|
812 iSearchResultDialog->UpdateDialogL(); |
816 iSearchResultDialog->UpdateDialogL(); |
813 } |
817 } |
814 } |
818 } |
815 // --------------------------------------------------------------------------- |
819 // --------------------------------------------------------------------------- |
816 // CPbkxRclServiceUiContextImpl::DisplayResultInfoDialogL |
820 // CPbkxRclServiceUiContextImpl::DisplayResultInfoDialogL |