equal
deleted
inserted
replaced
332 // Lexicon have to be loaded |
332 // Lexicon have to be loaded |
333 // ----------------------------------------------------------------------------- |
333 // ----------------------------------------------------------------------------- |
334 // |
334 // |
335 void CSILexiconDB::GetAllPronunciationIDsL( TSILexiconID aLexiconID, RArray<TSIPronunciationID>& aPronunciationIDs ) |
335 void CSILexiconDB::GetAllPronunciationIDsL( TSILexiconID aLexiconID, RArray<TSIPronunciationID>& aPronunciationIDs ) |
336 { |
336 { |
|
337 CleanupClosePushL( aPronunciationIDs ); |
|
338 |
337 // Construct the table name using the provided Lexicon ID |
339 // Construct the table name using the provided Lexicon ID |
338 TBuf<40> KLexiconName(KSILexiconTable); |
340 TBuf<40> KLexiconName(KSILexiconTable); |
339 KLexiconName.AppendNumUC(aLexiconID); |
341 KLexiconName.AppendNumUC(aLexiconID); |
340 |
342 |
341 CSILexicon* newLexicon = LexiconL( aLexiconID) ;// Load the Lexicon from database |
343 CSILexicon* newLexicon = LexiconL( aLexiconID) ;// Load the Lexicon from database |
348 User::LeaveIfError(aPronunciationIDs.Append(aPronunciationID)); |
350 User::LeaveIfError(aPronunciationIDs.Append(aPronunciationID)); |
349 } |
351 } |
350 |
352 |
351 CleanupStack::PopAndDestroy(newLexicon); // newLexicon |
353 CleanupStack::PopAndDestroy(newLexicon); // newLexicon |
352 // GetAllIDsL(KLexiconName, KPronunciationIDColumn, aPronunciationIDs); |
354 // GetAllIDsL(KLexiconName, KPronunciationIDColumn, aPronunciationIDs); |
|
355 CleanupStack::Pop(); |
353 } |
356 } |
354 |
357 |
355 // ----------------------------------------------------------------------------- |
358 // ----------------------------------------------------------------------------- |
356 // CSILexiconDB::RemoveLexiconL |
359 // CSILexiconDB::RemoveLexiconL |
357 // Deletes a Lexicon table from the database. |
360 // Deletes a Lexicon table from the database. |