# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1263838830 -7200 # Node ID b13cd05eeb2f2b95a224d135f3103a63aca5bc2f # Parent bf1d173762019154cd39e7cecdeea93a411622c4 Revision: 201001 Kit: 201003 diff -r bf1d17376201 -r b13cd05eeb2f speechsrv_plat/ui_voice_recognition_api/inc/vuivoicerecogdefs.h --- a/speechsrv_plat/ui_voice_recognition_api/inc/vuivoicerecogdefs.h Thu Dec 17 08:46:30 2009 +0200 +++ b/speechsrv_plat/ui_voice_recognition_api/inc/vuivoicerecogdefs.h Mon Jan 18 20:20:30 2010 +0200 @@ -27,6 +27,7 @@ const TInt KMaxPhoneNumberLength = 48; // taken from Phonebook const TInt KMaxNameLength = 110; // taken from Phonebook +const TInt KMaxFieldLength = 150; // taken from Phonebook, EMail address length const TInt KSindMaxResults = 6; // The number of voice tags needed for the N-Best List. diff -r bf1d17376201 -r b13cd05eeb2f srsf/devasr/src/devasrrecognitionalgmgr.cpp --- a/srsf/devasr/src/devasrrecognitionalgmgr.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/srsf/devasr/src/devasrrecognitionalgmgr.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -753,7 +753,7 @@ } // Do not load empty lexicon - if ( iSILexicon->Count() == 0 ) + if ( iSILexicon && iSILexicon->Count() == 0 ) { iSILexicon = NULL; iRecAlgMgrObserver->LoadLexiconComplete( KErrArgument ); @@ -844,7 +844,7 @@ error = KErrArgument; } - if ( iSIModelBank->Count() < 1 ) + if ( iSIModelBank && iSIModelBank->Count() < 1 ) { iSIModelBank = NULL; iRecAlgMgrObserver->LoadModelsComplete( KErrArgument ); diff -r bf1d17376201 -r b13cd05eeb2f srsf/nssvasapi/nssvasdb/src/nssvascvasdatabase.cpp --- a/srsf/nssvasapi/nssvasdb/src/nssvascvasdatabase.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/srsf/nssvasapi/nssvasdb/src/nssvascvasdatabase.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -403,6 +403,8 @@ RArray tagIdArray; + ASSERT( aTagArray ); + TInt arrayCount = aTagArray ? aTagArray->Count() : 0; if( arrayCount == 0 ) { diff -r bf1d17376201 -r b13cd05eeb2f srsf/nssvascontacthdlr/src/nssvasccontacthandler.cpp --- a/srsf/nssvascontacthdlr/src/nssvasccontacthandler.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/srsf/nssvascontacthdlr/src/nssvasccontacthandler.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -18,7 +18,7 @@ // INCLUDE FILES -#include "NssVasCContactHandler.h" +#include "nssvasccontacthandler.h" #include "nssvasccontacthandlerimpl.h" #include "rubydebug.h" diff -r bf1d17376201 -r b13cd05eeb2f srsf/sisrscontrollerplugin/src/sicontrollerplugin.cpp --- a/srsf/sisrscontrollerplugin/src/sicontrollerplugin.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/srsf/sisrscontrollerplugin/src/sicontrollerplugin.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -3343,10 +3343,13 @@ RUBY_DEBUG1( "CSIControllerPlugin::RunL. KAddVoiceTags. HandleLoadGrammarL Left with error [%d]", iResult ); // Clean up the iTrainArrays - iTrainArrays->ResetAndDestroy(); - iTrainArrays->Close(); - delete iTrainArrays; - iTrainArrays = NULL; + if ( iTrainArrays ) + { + iTrainArrays->ResetAndDestroy(); + iTrainArrays->Close(); + delete iTrainArrays; + iTrainArrays = NULL; + } // Send error message iControllerIf.SendSrsEvent( KUidAsrEventAddVoiceTags, iResult ); } diff -r bf1d17376201 -r b13cd05eeb2f srsf/vcommandmanager/src/vcmanagerapp.cpp --- a/srsf/vcommandmanager/src/vcmanagerapp.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/srsf/vcommandmanager/src/vcmanagerapp.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -18,7 +18,7 @@ // INCLUDE FILES #include -#include +#include #include #include "nssvoiceuipluginhandler.h" #include "vcmanagerapp.h" diff -r bf1d17376201 -r b13cd05eeb2f srsf/vcommandmanager/src/vcmanagerappui.cpp --- a/srsf/vcommandmanager/src/vcmanagerappui.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/srsf/vcommandmanager/src/vcmanagerappui.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -21,8 +21,8 @@ #include #include #include -#include -#include +#include +#include #include #include "nssvoiceuipluginhandler.h" #include "rubydebug.h" diff -r bf1d17376201 -r b13cd05eeb2f voiceui/vccontrolpanelplugin/inc/vccontrolpanelplugin.h --- a/voiceui/vccontrolpanelplugin/inc/vccontrolpanelplugin.h Thu Dec 17 08:46:30 2009 +0200 +++ b/voiceui/vccontrolpanelplugin/inc/vccontrolpanelplugin.h Mon Jan 18 20:20:30 2010 +0200 @@ -18,11 +18,11 @@ #ifndef VCCONTROLPANELPLUGIN_H #define VCCONTROLPANELPLUGIN_H -#include +#include #include -#include +#include #include -#include +#include #include "vccontrolpanelpluginuids.hrh" class CAknNavigationDecorator; diff -r bf1d17376201 -r b13cd05eeb2f voiceui/voiceuivoicerecognition/src/vuiccontactresultsstate.cpp --- a/voiceui/voiceuivoicerecognition/src/vuiccontactresultsstate.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/voiceui/voiceuivoicerecognition/src/vuiccontactresultsstate.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -514,7 +514,7 @@ DataStorage().PbkHandler()->FindContactFieldL( aTag ); - TBufC phoneNumber = DataStorage().PbkHandler()->TextL(); + TBufC phoneNumber = DataStorage().PbkHandler()->TextL(); type.Set( GetContactIconType( DataStorage().PbkHandler()->FieldTypeL() ) ); aBuffer.Zero(); diff -r bf1d17376201 -r b13cd05eeb2f voiceui/voiceuivoicerecognition/src/vuicglobalprogressdialog.cpp --- a/voiceui/voiceuivoicerecognition/src/vuicglobalprogressdialog.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/voiceui/voiceuivoicerecognition/src/vuicglobalprogressdialog.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -315,6 +315,7 @@ // Don't set blank icon if ( aIconId != KAknsIIDQgnStatBtBlank ) { + ASSERT ( iconId < KSindNumberOfIcons ); TRAP_IGNORE( AknsUtils::CreateIconL( skin, aIconId, bitmap, mask, fileName, KBitmapId[ iconId ], KMaskId[ iconId ] ); diff -r bf1d17376201 -r b13cd05eeb2f voiceui/voiceuivoicerecognition/src/vuickeygrabber.cpp --- a/voiceui/voiceuivoicerecognition/src/vuickeygrabber.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/voiceui/voiceuivoicerecognition/src/vuickeygrabber.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -88,6 +88,9 @@ iWsSession.EventReady( &iStatus ); SetActive(); + //fix for ESLI-7YSA3 we terminate Vcommand when received EKeyNull. + if ( event.Key()->iCode == EKeyNull ) + iKeyObserver->HandleKeypressL( event.Key()->iCode ); if ( event.Key()->iCode == EKeyCamera || event.Key()->iCode == EKeyPoC || event.Key()->iCode == EKeyPowerOff || diff -r bf1d17376201 -r b13cd05eeb2f voiceui/voiceuivoicerecognition/src/vuicplaystate.cpp --- a/voiceui/voiceuivoicerecognition/src/vuicplaystate.cpp Thu Dec 17 08:46:30 2009 +0200 +++ b/voiceui/voiceuivoicerecognition/src/vuicplaystate.cpp Mon Jan 18 20:20:30 2010 +0200 @@ -167,7 +167,7 @@ if ( iInternalState == ENotStarted ) { - TBuf phoneNumber; + TBuf phoneNumber; TFieldType fieldType; TName name;