srsf/sispeechrecognitiondata/src/nsssispeechrecognitiondatadevasr.cpp
branchRCL_3
changeset 15 6347473a7bb2
parent 0 bf1d17376201
child 17 46625afeb3de
equal deleted inserted replaced
12:fc313e1df071 15:6347473a7bb2
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <e32std.h>
    21 #include <e32std.h>
    22 #include <s32mem.h>
    22 #include <s32mem.h>
       
    23 #include <mmf\common\mmfcontrollerpluginresolver.h>
    23 #include "nsssispeechrecognitiondatadevasr.h"
    24 #include "nsssispeechrecognitiondatadevasr.h"
    24 #include "nsssispeechrecognitiondatatest.h"
    25 #include "nsssispeechrecognitiondatatest.h"
    25 #include "nsssidataserialize.h"
    26 #include "nsssidataserialize.h"
    26 
    27 
    27 #include "rubydebug.h"
    28 #include "rubydebug.h"
  2126 //
  2127 //
  2127 EXPORT_C void CSITtpWordList::GetPronunciationsL( 
  2128 EXPORT_C void CSITtpWordList::GetPronunciationsL( 
  2128 												 const TInt aIndex,
  2129 												 const TInt aIndex,
  2129 												 RPointerArray<CSIPronunciationInfo>& aPronunciations ) const
  2130 												 RPointerArray<CSIPronunciationInfo>& aPronunciations ) const
  2130 {
  2131 {
       
  2132 	CleanupResetAndDestroyPushL( aPronunciations ); 
  2131 	// clear given array
  2133 	// clear given array
  2132 	aPronunciations.Reset();
  2134 	aPronunciations.Reset();
  2133 	
  2135 	
  2134 	// add pronunciation which index match to given
  2136 	// add pronunciation which index match to given
  2135 	for ( TInt i(0); i < iIndexArray.Count(); i++ )
  2137 	for ( TInt i(0); i < iIndexArray.Count(); i++ )
  2138 		{
  2140 		{
  2139 			TInt error = aPronunciations.Append( iPronunciationArray[i] );
  2141 			TInt error = aPronunciations.Append( iPronunciationArray[i] );
  2140 			User::LeaveIfError( error );
  2142 			User::LeaveIfError( error );
  2141 		}
  2143 		}
  2142 	}
  2144 	}
       
  2145 	CleanupStack::Pop( &aPronunciations ); 
  2143 }
  2146 }
  2144 /*****************************************************************************/
  2147 /*****************************************************************************/
  2145 
  2148 
  2146 // -----------------------------------------------------------------------------
  2149 // -----------------------------------------------------------------------------
  2147 // CSIResult::CSIResult
  2150 // CSIResult::CSIResult