textinput/ptienginev2/src/PtiEngine.cpp
changeset 0 eb1f2e154e89
child 9 e6a39382bb9c
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Predective text input engine API implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "PtiEngine.h"
       
    21 #include "PtiEngineImpl.h"
       
    22 #include "PtiHwrRecognizer.h"
       
    23 	
       
    24 //
       
    25 // CPtiEngine
       
    26 //
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CPtiEngineImpl::NewL
       
    30 // 
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 EXPORT_C CPtiEngine* CPtiEngine::NewL(TBool aUseDefaultUserDictionary)
       
    34 	{
       
    35 	CPtiEngine *engine = new (ELeave) CPtiEngine();
       
    36 	CleanupStack::PushL( engine );
       
    37 	engine->ConstructL(aUseDefaultUserDictionary);
       
    38 	CleanupStack::Pop(); // engine
       
    39 	return engine;
       
    40 	}
       
    41 
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // CPtiEngineImpl::NewL
       
    45 // 
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C CPtiEngine* CPtiEngine::NewL(const TDesC& /*aCoreName*/, TBool /*aUseDefaultUserDictionary*/)
       
    49 	{
       
    50 	// Deprecated.
       
    51 	User::Leave(KErrNotSupported);
       
    52 	return NULL;
       
    53 	}
       
    54 
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // CPtiEngineImpl::NewL
       
    58 // 
       
    59 // ---------------------------------------------------------------------------
       
    60 //
       
    61 EXPORT_C CPtiEngine* CPtiEngine::NewL(const TUid aCoreUid, TBool aUseDefaultUserDictionary)
       
    62 	{
       
    63 	CPtiEngine *engine = new (ELeave) CPtiEngine();
       
    64 	CleanupStack::PushL( engine );
       
    65 	engine->ConstructL(aCoreUid, aUseDefaultUserDictionary);
       
    66 	CleanupStack::Pop(); // engine
       
    67 	return engine;
       
    68 	}
       
    69 
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // CPtiEngineImpl::CPtiEngine
       
    73 // 
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 CPtiEngine::CPtiEngine()
       
    77 	{	
       
    78 	}
       
    79 
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // CPtiEngineImpl::~CPtiEngine
       
    83 // 
       
    84 // ---------------------------------------------------------------------------
       
    85 //
       
    86 EXPORT_C CPtiEngine::~CPtiEngine()
       
    87 	{	
       
    88 	delete iImpl;
       
    89 	}
       
    90 
       
    91 
       
    92 // ---------------------------------------------------------------------------
       
    93 // CPtiEngineImpl::ConstructL
       
    94 // 
       
    95 // ---------------------------------------------------------------------------
       
    96 //
       
    97 void CPtiEngine::ConstructL(TBool aUseDefaultUserDictionary)
       
    98 	{
       
    99 	iImpl = CPtiEngineImpl::NewL(this);
       
   100 	iImpl->InitializeL(aUseDefaultUserDictionary);
       
   101 	}
       
   102 
       
   103 
       
   104 // ---------------------------------------------------------------------------
       
   105 // CPtiEngineImpl::ConstructL
       
   106 // 
       
   107 // ---------------------------------------------------------------------------
       
   108 //
       
   109 void CPtiEngine::ConstructL(const TUid /*aCoreUid*/, TBool aUseDefaultUserDictionary)
       
   110 	{
       
   111 	iImpl = CPtiEngineImpl::NewL(this);
       
   112 	iImpl->InitializeL(aUseDefaultUserDictionary);
       
   113 	}
       
   114 
       
   115 
       
   116 // ---------------------------------------------------------------------------
       
   117 // CPtiEngineImpl::GetLanguage
       
   118 // 
       
   119 // ---------------------------------------------------------------------------
       
   120 //
       
   121 EXPORT_C MPtiLanguage* CPtiEngine::GetLanguage(TInt aCode) const
       
   122 	{
       
   123 	return iImpl->GetLanguage( aCode );
       
   124 	}
       
   125 
       
   126 
       
   127 // ---------------------------------------------------------------------------
       
   128 // CPtiEngineImpl::GetAvailableLanguagesL
       
   129 // 
       
   130 // ---------------------------------------------------------------------------
       
   131 //
       
   132 EXPORT_C void CPtiEngine::GetAvailableLanguagesL(CArrayFix<TInt>* aResult)
       
   133 	{
       
   134 	iImpl->GetAvailableLanguagesL( aResult );
       
   135 	}
       
   136 
       
   137 
       
   138 // ---------------------------------------------------------------------------
       
   139 // CPtiEngineImpl::CreateUserDictionaryL
       
   140 // 
       
   141 // ---------------------------------------------------------------------------
       
   142 //
       
   143 EXPORT_C TInt CPtiEngine::CreateUserDictionaryL(TDesC& aFileName, CDesCArrayFlat* aWords, TPtiEngineInputMode aMode) 
       
   144 	{
       
   145 	return iImpl->CreateUserDictionaryL(aFileName, aWords, aMode);
       
   146 	}
       
   147 
       
   148 
       
   149 // ---------------------------------------------------------------------------
       
   150 // CPtiEngineImpl::AttachUserDictionaryL
       
   151 // 
       
   152 // ---------------------------------------------------------------------------
       
   153 //
       
   154 EXPORT_C MPtiUserDictionary* CPtiEngine::AttachUserDictionaryL(TDesC& aFileName)
       
   155 	{
       
   156 	return iImpl->AttachUserDictionaryL (aFileName );
       
   157 	}
       
   158 
       
   159 
       
   160 // ---------------------------------------------------------------------------
       
   161 // CPtiEngineImpl::DetachUserDictionary
       
   162 // 
       
   163 // ---------------------------------------------------------------------------
       
   164 //
       
   165 EXPORT_C TInt CPtiEngine::DetachUserDictionary(TDesC& aFileName)
       
   166 	{
       
   167 	return iImpl->DetachUserDictionary( aFileName );
       
   168 	}
       
   169 
       
   170 
       
   171 // ---------------------------------------------------------------------------
       
   172 // CPtiEngineImpl::DetachUserDictionary
       
   173 // 
       
   174 // ---------------------------------------------------------------------------
       
   175 //
       
   176 EXPORT_C TInt CPtiEngine::DetachUserDictionary(TInt aId)
       
   177 	{
       
   178 	return iImpl->DetachUserDictionary( aId );
       
   179 	}
       
   180 
       
   181 
       
   182 // ---------------------------------------------------------------------------
       
   183 // CPtiEngineImpl::SetCurrentWord
       
   184 // 
       
   185 // ---------------------------------------------------------------------------
       
   186 //
       
   187 EXPORT_C TInt CPtiEngine::SetCurrentWord(TPtrC aWord)
       
   188 	{
       
   189 	return iImpl->SetCurrentWord( aWord );
       
   190 	}
       
   191 
       
   192 
       
   193 // ---------------------------------------------------------------------------
       
   194 // CPtiEngineImpl::ActivateLanguageL
       
   195 // 
       
   196 // ---------------------------------------------------------------------------
       
   197 //
       
   198 EXPORT_C TInt CPtiEngine::ActivateLanguageL(TInt aEpocLanguageID, TPtiEngineInputMode aMode)
       
   199 	{
       
   200 	return iImpl->ActivateLanguageL(aEpocLanguageID, aMode);
       
   201 	}
       
   202 
       
   203 
       
   204 // ---------------------------------------------------------------------------
       
   205 // CPtiEngineImpl::CloseCurrentLanguageL
       
   206 // 
       
   207 // ---------------------------------------------------------------------------
       
   208 //	
       
   209 EXPORT_C void CPtiEngine::CloseCurrentLanguageL()
       
   210 	{
       
   211 	iImpl->CloseCurrentLanguageL();
       
   212 	}
       
   213 
       
   214 
       
   215 // ---------------------------------------------------------------------------
       
   216 // CPtiEngineImpl::SetInputMode
       
   217 // 
       
   218 // ---------------------------------------------------------------------------
       
   219 //
       
   220 EXPORT_C TInt CPtiEngine::SetInputMode(TPtiEngineInputMode aMode)
       
   221 	{
       
   222 	return iImpl->SetInputMode( aMode );
       
   223 	}
       
   224 
       
   225 
       
   226 // ---------------------------------------------------------------------------
       
   227 // CPtiEngineImpl::GetNextWordCandidateListL
       
   228 // 
       
   229 // ---------------------------------------------------------------------------
       
   230 //
       
   231 EXPORT_C TInt CPtiEngine::GetNextWordCandidateListL(CDesCArray& aList)
       
   232 	{
       
   233 	return iImpl->GetNextWordCandidateListL( aList );
       
   234 	}
       
   235 
       
   236 
       
   237 // ---------------------------------------------------------------------------
       
   238 // CPtiEngineImpl::AppendKeyPress
       
   239 // 
       
   240 // ---------------------------------------------------------------------------
       
   241 //		
       
   242 EXPORT_C TPtrC CPtiEngine::AppendKeyPress(TPtiKey aKey)
       
   243 	{
       
   244 	return iImpl->AppendKeyPress( aKey );
       
   245 	}
       
   246 
       
   247 
       
   248 // ---------------------------------------------------------------------------
       
   249 // CPtiEngineImpl::DeleteKeyPress
       
   250 // 
       
   251 // ---------------------------------------------------------------------------
       
   252 //
       
   253 EXPORT_C TPtrC CPtiEngine::DeleteKeyPress()
       
   254 	{
       
   255 	return iImpl->DeleteKeyPress();
       
   256 	}
       
   257 
       
   258 
       
   259 // ---------------------------------------------------------------------------
       
   260 // CPtiEngineImpl::GetLocalizedLanguageName
       
   261 // 
       
   262 // ---------------------------------------------------------------------------
       
   263 //
       
   264 EXPORT_C void CPtiEngine::GetLocalizedLanguageName(TInt aLangCode, TDes& aResult)
       
   265 	{
       
   266 	TRAP_IGNORE(iImpl->GetLocalizedLanguageNameL(aLangCode, aResult));
       
   267 	}
       
   268 
       
   269 
       
   270 // ---------------------------------------------------------------------------
       
   271 // CPtiEngineImpl::GetCandidateListL
       
   272 // 
       
   273 // ---------------------------------------------------------------------------
       
   274 //
       
   275 EXPORT_C TInt CPtiEngine::GetCandidateListL(CDesCArray& aList)
       
   276 	{
       
   277 	return iImpl->GetCandidateListL( aList );
       
   278 	}
       
   279 
       
   280 
       
   281 // ---------------------------------------------------------------------------
       
   282 // CPtiEngineImpl::FirstCandidate
       
   283 // 
       
   284 // ---------------------------------------------------------------------------
       
   285 //
       
   286 EXPORT_C TPtrC CPtiEngine::FirstCandidate()
       
   287 	{
       
   288 	return iImpl->FirstCandidate();
       
   289 	}
       
   290 
       
   291 
       
   292 // ---------------------------------------------------------------------------
       
   293 // CPtiEngineImpl::NextCandidate
       
   294 // 
       
   295 // ---------------------------------------------------------------------------
       
   296 //	
       
   297 EXPORT_C TPtrC CPtiEngine::NextCandidate()
       
   298 	{
       
   299 	return iImpl->NextCandidate();
       
   300 	}
       
   301 
       
   302 
       
   303 // ---------------------------------------------------------------------------
       
   304 // CPtiEngineImpl::PreviousCandidate
       
   305 // 
       
   306 // ---------------------------------------------------------------------------
       
   307 //
       
   308 EXPORT_C TPtrC CPtiEngine::PreviousCandidate()
       
   309 	{
       
   310 	return iImpl->PreviousCandidate();
       
   311 	}
       
   312 
       
   313 
       
   314 // ---------------------------------------------------------------------------
       
   315 // CPtiEngineImpl::CoreInfo
       
   316 // 
       
   317 // ---------------------------------------------------------------------------
       
   318 //
       
   319 EXPORT_C MPtiCoreInfo* CPtiEngine::CoreInfo(TPtiEngineInputMode aMode) const
       
   320 	{
       
   321 	return iImpl->CoreInfo( aMode );
       
   322 	}
       
   323 
       
   324 
       
   325 // ---------------------------------------------------------------------------
       
   326 // CPtiEngineImpl::NumberOfCandidates
       
   327 // 
       
   328 // ---------------------------------------------------------------------------
       
   329 //
       
   330 EXPORT_C TInt CPtiEngine::NumberOfCandidates()
       
   331 	{	
       
   332 	return iImpl->NumberOfCandidates();
       
   333 	}
       
   334 
       
   335 
       
   336 // ---------------------------------------------------------------------------
       
   337 // CPtiEngineImpl::SetReordering
       
   338 // 
       
   339 // ---------------------------------------------------------------------------
       
   340 //
       
   341 EXPORT_C TInt CPtiEngine::SetReordering(TBool aStatus)
       
   342 	{
       
   343 	return iImpl->SetReordering( aStatus );
       
   344 	}
       
   345 
       
   346 
       
   347 // ---------------------------------------------------------------------------
       
   348 // CPtiEngineImpl::ClearCurrentWord
       
   349 // 
       
   350 // ---------------------------------------------------------------------------
       
   351 //			
       
   352 EXPORT_C void CPtiEngine::ClearCurrentWord()
       
   353 	{
       
   354 	iImpl->ClearCurrentWord();
       
   355 	}
       
   356 	
       
   357 
       
   358 // ---------------------------------------------------------------------------
       
   359 // CPtiEngineImpl::CommitCurrentWord
       
   360 // 
       
   361 // ---------------------------------------------------------------------------
       
   362 //
       
   363 EXPORT_C TInt CPtiEngine::CommitCurrentWord()
       
   364 	{
       
   365 	return iImpl->CommitCurrentWord();
       
   366 	}
       
   367 
       
   368 
       
   369 // ---------------------------------------------------------------------------
       
   370 // CPtiEngineImpl::AddCoreL
       
   371 // 
       
   372 // ---------------------------------------------------------------------------
       
   373 //
       
   374 EXPORT_C TInt CPtiEngine::AddCoreL(const TDesC& /*aFileName*/, TBool /*aUseDefaultUserDictionary*/)
       
   375 	{
       
   376 	User::Leave(KErrNotSupported);
       
   377 	return KErrNotSupported;
       
   378 	}
       
   379 
       
   380 
       
   381 // ---------------------------------------------------------------------------
       
   382 // CPtiEngineImpl::AddCoreL
       
   383 // 
       
   384 // ---------------------------------------------------------------------------
       
   385 //
       
   386 EXPORT_C TInt CPtiEngine::AddCoreL(const TUid aCoreUid, TBool aUseDefaultUserDictionary)
       
   387 	{
       
   388 	return iImpl->AddCoreL(aCoreUid, aUseDefaultUserDictionary);
       
   389 	}
       
   390 
       
   391 
       
   392 // ---------------------------------------------------------------------------
       
   393 // CPtiEngineImpl::CharConversion
       
   394 // 
       
   395 // ---------------------------------------------------------------------------
       
   396 //
       
   397 EXPORT_C TInt CPtiEngine::CharConversion(TPtiCharConversion aType,
       
   398 			                         TAny* aInput,
       
   399 									 TInt aInputLength,
       
   400 									 TAny* aOutput)
       
   401 	{
       
   402 	return iImpl->CharConversion(aType, aInput, aInputLength, aOutput);
       
   403 	}
       
   404 
       
   405 
       
   406 // ---------------------------------------------------------------------------
       
   407 // CPtiEngineImpl::AvailableCharConversions
       
   408 // 
       
   409 // ---------------------------------------------------------------------------
       
   410 //
       
   411 EXPORT_C TUint32 CPtiEngine::AvailableCharConversions() const
       
   412 	{
       
   413 	return iImpl->AvailableCharConversions();
       
   414 	}
       
   415 
       
   416 
       
   417 // ---------------------------------------------------------------------------
       
   418 // CPtiEngineImpl::SetExternalKeyMapL
       
   419 // 
       
   420 // ---------------------------------------------------------------------------
       
   421 //
       
   422 EXPORT_C TInt CPtiEngine::SetExternalKeyMapL(TPtiEngineInputMode aMode,
       
   423 			                                 TPtiKey aKey,
       
   424 										     TDesC& aKeyMap,
       
   425 											 TPtiTextCase aCase)
       
   426 	{
       
   427 	return iImpl->SetExternalKeyMapL(aMode, aKey, aKeyMap, aCase);
       
   428 	}
       
   429 
       
   430 
       
   431 // ---------------------------------------------------------------------------
       
   432 // CPtiEngineImpl::GetSpelling
       
   433 // 
       
   434 // ---------------------------------------------------------------------------
       
   435 //
       
   436 EXPORT_C TInt CPtiEngine::GetSpelling(TUint16 aInput, TDes& aOutput, TPtiSpelling aType)
       
   437 	{
       
   438 	return iImpl->GetSpelling(aInput, aOutput, aType);
       
   439 	}
       
   440 
       
   441 
       
   442 // ---------------------------------------------------------------------------
       
   443 // CPtiEngineImpl::CancelTimerActivity
       
   444 // 
       
   445 // ---------------------------------------------------------------------------
       
   446 //
       
   447 EXPORT_C TInt CPtiEngine::CancelTimerActivity()
       
   448 	{
       
   449 	return iImpl->CancelTimerActivity();
       
   450 	}
       
   451 
       
   452 
       
   453 // ---------------------------------------------------------------------------
       
   454 // CPtiEngineImpl::CharacterToKey
       
   455 // 
       
   456 // ---------------------------------------------------------------------------
       
   457 //
       
   458 EXPORT_C TPtiKey CPtiEngine::CharacterToKey(TUint16 aChar)
       
   459 	{
       
   460 	return iImpl->CharacterToKey( aChar );
       
   461 	}
       
   462 
       
   463 
       
   464 // ---------------------------------------------------------------------------
       
   465 // CPtiEngineImpl::AddUserDictionaryEntry
       
   466 // 
       
   467 // ---------------------------------------------------------------------------
       
   468 //
       
   469 EXPORT_C TInt CPtiEngine::AddUserDictionaryEntry(MPtiUserDictionaryEntry& aEntry)
       
   470 	{
       
   471 	return iImpl->AddUserDictionaryEntry( aEntry );
       
   472 	}
       
   473 
       
   474 
       
   475 // ---------------------------------------------------------------------------
       
   476 // CPtiEngineImpl::AddUserDictionaryEntry
       
   477 // 
       
   478 // ---------------------------------------------------------------------------
       
   479 //
       
   480 EXPORT_C TInt CPtiEngine::AddUserDictionaryEntry(MPtiUserDictionaryEntry& aEntry, TInt aId)
       
   481 	{
       
   482 	return iImpl->AddUserDictionaryEntry(aEntry, aId);
       
   483 	}
       
   484 
       
   485 
       
   486 // ---------------------------------------------------------------------------
       
   487 // CPtiEngineImpl::RemoveEntryFromUserDictionary
       
   488 // 
       
   489 // ---------------------------------------------------------------------------
       
   490 //
       
   491 EXPORT_C TInt CPtiEngine::RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry& aEntry)
       
   492 	{
       
   493 	return iImpl->RemoveEntryFromUserDictionary( aEntry );
       
   494 	}
       
   495 
       
   496 
       
   497 // ---------------------------------------------------------------------------
       
   498 // CPtiEngineImpl::RemoveEntryFromUserDictionary
       
   499 // 
       
   500 // ---------------------------------------------------------------------------
       
   501 //	
       
   502 EXPORT_C TInt CPtiEngine::RemoveEntryFromUserDictionary(MPtiUserDictionaryEntry& aEntry, TInt aId)
       
   503 	{
       
   504 	return iImpl->RemoveEntryFromUserDictionary(aEntry, aId);
       
   505 	}
       
   506 
       
   507 
       
   508 // ---------------------------------------------------------------------------
       
   509 // CPtiEngineImpl::NumberOfEntriesInUserDictionary
       
   510 // 
       
   511 // ---------------------------------------------------------------------------
       
   512 //
       
   513 EXPORT_C TInt CPtiEngine::NumberOfEntriesInUserDictionary()
       
   514 	{
       
   515 	return iImpl->NumberOfEntriesInUserDictionary();
       
   516 	}
       
   517 
       
   518 
       
   519 // ---------------------------------------------------------------------------
       
   520 // CPtiEngineImpl::HandleCommandL
       
   521 // 
       
   522 // ---------------------------------------------------------------------------
       
   523 //
       
   524 EXPORT_C TInt CPtiEngine::HandleCommandL(TPtiEngineCommand aCommand, TAny* aParams)
       
   525 	{
       
   526 	return iImpl->HandleCommandL(aCommand, aParams);
       
   527 	}
       
   528 
       
   529 
       
   530 // ---------------------------------------------------------------------------
       
   531 // CPtiEngineImpl::CandidatePage
       
   532 // 
       
   533 // ---------------------------------------------------------------------------
       
   534 //
       
   535 EXPORT_C TPtrC CPtiEngine::CandidatePage()
       
   536 	{
       
   537 	return iImpl->CandidatePage();
       
   538 	}
       
   539 
       
   540 
       
   541 // ---------------------------------------------------------------------------
       
   542 // CPtiEngineImpl::NextCandidatePage
       
   543 // 
       
   544 // ---------------------------------------------------------------------------
       
   545 //
       
   546 EXPORT_C TBool CPtiEngine::NextCandidatePage()
       
   547 	{
       
   548 	return iImpl->NextCandidatePage();
       
   549 	}
       
   550 
       
   551 
       
   552 // ---------------------------------------------------------------------------
       
   553 // CPtiEngineImpl::PreviousCandidatePage
       
   554 // 
       
   555 // ---------------------------------------------------------------------------
       
   556 //
       
   557 EXPORT_C TBool CPtiEngine::PreviousCandidatePage()
       
   558 	{
       
   559 	return iImpl->PreviousCandidatePage();
       
   560 	}
       
   561 
       
   562 
       
   563 // ---------------------------------------------------------------------------
       
   564 // CPtiEngineImpl::MoreCandidatePages
       
   565 // 
       
   566 // ---------------------------------------------------------------------------
       
   567 //
       
   568 EXPORT_C TBool CPtiEngine::MoreCandidatePages()
       
   569 	{
       
   570 	return iImpl->MoreCandidatePages();
       
   571 	}
       
   572 
       
   573 
       
   574 // ---------------------------------------------------------------------------
       
   575 // CPtiEngineImpl::SetCandidatePageLength
       
   576 // 
       
   577 // ---------------------------------------------------------------------------
       
   578 //
       
   579 EXPORT_C void CPtiEngine::SetCandidatePageLength(TInt aLength)
       
   580 	{
       
   581 	iImpl->SetCandidatePageLength( aLength );
       
   582 	}
       
   583 
       
   584 
       
   585 // ---------------------------------------------------------------------------
       
   586 // CPtiEngineImpl::CompositionData
       
   587 // 
       
   588 // ---------------------------------------------------------------------------
       
   589 //
       
   590 EXPORT_C MPtiEngineCompositionDataInterface* CPtiEngine::CompositionData()
       
   591 	{
       
   592 	return iImpl->CompositionData();
       
   593 	}
       
   594 
       
   595 
       
   596 // ---------------------------------------------------------------------------
       
   597 // CPtiEngineImpl::DefaultUserDictionary
       
   598 // 
       
   599 // ---------------------------------------------------------------------------
       
   600 //
       
   601 EXPORT_C MPtiUserDictionary* CPtiEngine::DefaultUserDictionary(TPtiEngineInputMode aMode)
       
   602 	{	
       
   603 	return iImpl->DefaultUserDictionary( aMode );
       
   604 	}
       
   605 
       
   606 
       
   607 // ---------------------------------------------------------------------------
       
   608 // CPtiEngineImpl::GetUserDictionaryEntry
       
   609 // 
       
   610 // ---------------------------------------------------------------------------
       
   611 //
       
   612 EXPORT_C TInt CPtiEngine::GetUserDictionaryEntry(TInt aIndex, MPtiUserDictionaryEntry& aResult)
       
   613 	{
       
   614 	return iImpl->GetUserDictionaryEntry(aIndex, aResult);
       
   615 	}
       
   616 
       
   617 
       
   618 // ---------------------------------------------------------------------------
       
   619 // CPtiEngineImpl::GetPhoneticSpelling
       
   620 // 
       
   621 // ---------------------------------------------------------------------------
       
   622 //
       
   623 EXPORT_C TPtrC CPtiEngine::GetPhoneticSpelling(TInt aIndex) const 
       
   624 	{
       
   625 	return iImpl->GetPhoneticSpelling( aIndex );
       
   626 	}
       
   627 
       
   628 
       
   629 // ---------------------------------------------------------------------------
       
   630 // CPtiEngineImpl::PhoneticSpellingCount
       
   631 // 
       
   632 // ---------------------------------------------------------------------------
       
   633 //
       
   634 EXPORT_C TInt CPtiEngine::PhoneticSpellingCount() const	
       
   635 	{
       
   636 	return iImpl->PhoneticSpellingCount();
       
   637 	}		
       
   638 	
       
   639 
       
   640 // ---------------------------------------------------------------------------
       
   641 // CPtiEngineImpl::SelectPhoneticSpelling
       
   642 // 
       
   643 // ---------------------------------------------------------------------------
       
   644 //
       
   645 EXPORT_C TBool CPtiEngine::SelectPhoneticSpelling(TInt aIndex)
       
   646 	{
       
   647 	return iImpl->SelectPhoneticSpelling( aIndex );
       
   648 	}
       
   649 
       
   650 
       
   651 // ---------------------------------------------------------------------------
       
   652 // CPtiEngineImpl::SelectedPhoneticSpelling
       
   653 // 
       
   654 // ---------------------------------------------------------------------------
       
   655 //
       
   656 EXPORT_C TInt CPtiEngine::SelectedPhoneticSpelling() const
       
   657 	{
       
   658 	return iImpl->SelectedPhoneticSpelling();
       
   659 	}
       
   660 
       
   661 
       
   662 // ---------------------------------------------------------------------------
       
   663 // CPtiEngineImpl::ReadingTextL
       
   664 // 
       
   665 // ---------------------------------------------------------------------------
       
   666 //
       
   667 EXPORT_C TPtrC CPtiEngine::ReadingTextL()
       
   668 	{
       
   669 	return iImpl->ReadingTextL();
       
   670 	}
       
   671 
       
   672 
       
   673 // ---------------------------------------------------------------------------
       
   674 // CPtiEngineImpl::EnableToneMarks
       
   675 // 
       
   676 // ---------------------------------------------------------------------------
       
   677 //
       
   678 EXPORT_C void CPtiEngine::EnableToneMarks(TBool aValue)
       
   679 	{
       
   680 	iImpl->EnableToneMarks( aValue );
       
   681 	}
       
   682 
       
   683 
       
   684 // ---------------------------------------------------------------------------
       
   685 // CPtiEngineImpl::ResetToneMark
       
   686 // 
       
   687 // ---------------------------------------------------------------------------
       
   688 //
       
   689 EXPORT_C void CPtiEngine::ResetToneMark()
       
   690 	{
       
   691 	iImpl->ResetToneMark();
       
   692 	}
       
   693 
       
   694 
       
   695 // ---------------------------------------------------------------------------
       
   696 // CPtiEngineImpl::ToneMark
       
   697 // 
       
   698 // ---------------------------------------------------------------------------
       
   699 //
       
   700 EXPORT_C TBool CPtiEngine::ToneMark(TText& aToneMark) const
       
   701 	{
       
   702 	return iImpl->ToneMark( aToneMark );
       
   703 	}
       
   704 
       
   705 
       
   706 // ---------------------------------------------------------------------------
       
   707 // CPtiEngineImpl::IsToneMarkValidForSpelling
       
   708 // 
       
   709 // ---------------------------------------------------------------------------
       
   710 //
       
   711 EXPORT_C TBool CPtiEngine::IsToneMarkValidForSpelling() const
       
   712 	{
       
   713 	return iImpl->IsToneMarkValidForSpelling();
       
   714 	}
       
   715 
       
   716 
       
   717 // ---------------------------------------------------------------------------
       
   718 // CPtiEngineImpl::IncrementToneMark
       
   719 // 
       
   720 // ---------------------------------------------------------------------------
       
   721 //
       
   722 EXPORT_C TBool CPtiEngine::IncrementToneMark(TBool aOverrideInvalid)
       
   723 	{
       
   724 	return iImpl->IncrementToneMark( aOverrideInvalid );
       
   725 	}
       
   726 
       
   727 
       
   728 // ---------------------------------------------------------------------------
       
   729 // CPtiEngineImpl::SetPredictiveChineseChar
       
   730 // 
       
   731 // ---------------------------------------------------------------------------
       
   732 //
       
   733 EXPORT_C TBool CPtiEngine::SetPredictiveChineseChar(const TDesC& aChar)
       
   734 	{
       
   735 	return iImpl->SetPredictiveChineseChar( aChar );
       
   736 	}
       
   737 
       
   738 
       
   739 // ---------------------------------------------------------------------------
       
   740 // CPtiEngineImpl::GetModeNameIndexL
       
   741 // 
       
   742 // ---------------------------------------------------------------------------
       
   743 //
       
   744 EXPORT_C void CPtiEngine::GetModeNameIndexL(TPtiChineseVariant aVariant, RArray<TInt>& aResult)
       
   745 	{
       
   746 	iImpl->GetModeNameIndexL(aVariant, aResult);
       
   747 	}
       
   748 
       
   749 
       
   750 // ---------------------------------------------------------------------------
       
   751 // CPtiEngineImpl::CurrentLanguage
       
   752 // 
       
   753 // ---------------------------------------------------------------------------
       
   754 //
       
   755 EXPORT_C MPtiLanguage* CPtiEngine::CurrentLanguage() 
       
   756 	{
       
   757 	return iImpl->CurrentLanguage();
       
   758 	}
       
   759 
       
   760 
       
   761 // ---------------------------------------------------------------------------
       
   762 // CPtiEngineImpl::CurrentWord
       
   763 // 
       
   764 // ---------------------------------------------------------------------------
       
   765 //
       
   766 EXPORT_C TPtrC CPtiEngine::CurrentWord()
       
   767 	{
       
   768 	return iImpl->CurrentWord();	
       
   769 	}
       
   770 
       
   771 
       
   772 // ---------------------------------------------------------------------------
       
   773 // CPtiEngineImpl::InputMode
       
   774 // 
       
   775 // ---------------------------------------------------------------------------
       
   776 //
       
   777 EXPORT_C TPtiEngineInputMode CPtiEngine::InputMode() const
       
   778 	{
       
   779 	return iImpl->InputMode();
       
   780 	}
       
   781 
       
   782 
       
   783 // ---------------------------------------------------------------------------
       
   784 // CPtiEngineImpl::SetCase
       
   785 // 
       
   786 // ---------------------------------------------------------------------------
       
   787 //
       
   788 EXPORT_C void CPtiEngine::SetCase(TPtiTextCase aCase)
       
   789 	{
       
   790 	iImpl->SetCase( aCase );
       
   791 	}
       
   792 
       
   793 
       
   794 // ---------------------------------------------------------------------------
       
   795 // CPtiEngineImpl::Case
       
   796 // 
       
   797 // ---------------------------------------------------------------------------
       
   798 //
       
   799 EXPORT_C TPtiTextCase CPtiEngine::Case() const
       
   800 	{
       
   801 	return iImpl->Case();
       
   802 	}
       
   803 
       
   804 
       
   805 // ---------------------------------------------------------------------------
       
   806 // CPtiEngineImpl::NumberOfLanguages
       
   807 // 
       
   808 // ---------------------------------------------------------------------------
       
   809 //
       
   810 EXPORT_C TInt CPtiEngine::NumberOfLanguages() const
       
   811 	{
       
   812 	return iImpl->NumberOfLanguages();
       
   813 	}
       
   814 
       
   815 
       
   816 // ---------------------------------------------------------------------------
       
   817 // CPtiEngineImpl::LastEnteredKey
       
   818 // 
       
   819 // ---------------------------------------------------------------------------
       
   820 //
       
   821 EXPORT_C TPtiKey CPtiEngine::LastEnteredKey() const
       
   822 	{
       
   823 	return iImpl->LastEnteredKey();
       
   824 	}
       
   825 
       
   826 
       
   827 // ---------------------------------------------------------------------------
       
   828 // CPtiEngineImpl::Observer
       
   829 // 
       
   830 // ---------------------------------------------------------------------------
       
   831 //
       
   832 EXPORT_C MPtiObserver* CPtiEngine::Observer()
       
   833 	{
       
   834 	return iImpl->Observer();
       
   835 	}
       
   836 
       
   837 
       
   838 // ---------------------------------------------------------------------------
       
   839 // CPtiEngineImpl::SetObserver
       
   840 // 
       
   841 // ---------------------------------------------------------------------------
       
   842 //
       
   843 EXPORT_C void CPtiEngine::SetObserver(MPtiObserver* aObserver)
       
   844 	{
       
   845 	iImpl->SetObserver( aObserver );
       
   846 	}
       
   847 
       
   848 
       
   849 // ---------------------------------------------------------------------------
       
   850 // CPtiEngineImpl::CurrentInputSequence
       
   851 // 
       
   852 // ---------------------------------------------------------------------------
       
   853 //
       
   854 EXPORT_C TPtrC8 CPtiEngine::CurrentInputSequence() const
       
   855 	{
       
   856 	return iImpl->CurrentInputSequence();
       
   857 	}
       
   858 
       
   859 
       
   860 // ---------------------------------------------------------------------------
       
   861 // CPtiEngineImpl::GetPhoneticSpellingsL
       
   862 // 
       
   863 // ---------------------------------------------------------------------------
       
   864 //
       
   865 EXPORT_C TInt CPtiEngine::GetPhoneticSpellingsL(CDesCArray& aList)
       
   866 	{
       
   867 	return iImpl->GetPhoneticSpellingsL(aList);
       
   868 	}
       
   869 	
       
   870 
       
   871 // ---------------------------------------------------------------------------
       
   872 // CPtiEngineImpl::GetChinesePhraseCandidatesL
       
   873 // 
       
   874 // ---------------------------------------------------------------------------
       
   875 //
       
   876 EXPORT_C TInt CPtiEngine::GetChinesePhraseCandidatesL(CDesCArray& aList)
       
   877 	{
       
   878 	return iImpl->GetChinesePhraseCandidatesL(aList);
       
   879 	}
       
   880 
       
   881 
       
   882 // ---------------------------------------------------------------------------
       
   883 // CPtiEngineImpl::SetToneMark
       
   884 // 
       
   885 // ---------------------------------------------------------------------------
       
   886 //
       
   887 EXPORT_C TBool CPtiEngine::SetToneMark(TInt aToneMark)
       
   888 	{
       
   889 	return iImpl->SetToneMark(aToneMark);
       
   890 	}
       
   891 
       
   892 
       
   893 // ---------------------------------------------------------------------------
       
   894 // CPtiEngineImpl::GetAvailableLanguagesL
       
   895 // 
       
   896 // ---------------------------------------------------------------------------
       
   897 //
       
   898 EXPORT_C void CPtiEngine::GetAvailableLanguagesL(RArray<TInt>& aResult)
       
   899 	{
       
   900 	return iImpl->GetAvailableLanguagesL(aResult);
       
   901 	}
       
   902 	
       
   903 
       
   904 // ---------------------------------------------------------------------------
       
   905 // CPtiEngineImpl::CreateDefaultUserDictionaryFileL
       
   906 // 
       
   907 // ---------------------------------------------------------------------------
       
   908 //	
       
   909 EXPORT_C void CPtiEngine::CreateDefaultUserDictionaryFileL(TUid aCoreUid, TInt aSymbolClass)
       
   910 	{
       
   911 	iImpl->CreateDefaultUserDictionaryFileL(aCoreUid, aSymbolClass);
       
   912 	}
       
   913 	
       
   914 
       
   915 // ---------------------------------------------------------------------------
       
   916 // CPtiEngineImpl::AttachDefaultUserDictionaryL
       
   917 // 
       
   918 // ---------------------------------------------------------------------------
       
   919 //	
       
   920 EXPORT_C MPtiUserDictionary* CPtiEngine::AttachDefaultUserDictionaryL(TUid aCoreUid, TInt aSymbolClass)
       
   921 	{
       
   922 	return iImpl->AttachDefaultUserDictionaryL(aCoreUid, aSymbolClass);
       
   923 	}
       
   924 
       
   925 
       
   926 // ---------------------------------------------------------------------------
       
   927 // CPtiEngineImpl::WriteSecondaryDataFileL
       
   928 // 
       
   929 // ---------------------------------------------------------------------------
       
   930 //
       
   931 EXPORT_C void CPtiEngine::WriteSecondaryDataFileL(TUid aCoreUid, TInt aIndexNumber, HBufC8* aData)
       
   932 	{
       
   933 	iImpl->WriteSecondaryDataFileL(aCoreUid, aIndexNumber, aData);
       
   934 	}
       
   935 
       
   936 
       
   937 // ---------------------------------------------------------------------------
       
   938 // CPtiEngineImpl::ReadSecondaryDataFileL
       
   939 // 
       
   940 // ---------------------------------------------------------------------------
       
   941 //		
       
   942 EXPORT_C HBufC8* CPtiEngine::ReadSecondaryDataFileL(TUid aCoreUid, TInt aIndexNumber)
       
   943 	{
       
   944 	return iImpl->ReadSecondaryDataFileL(aCoreUid, aIndexNumber);	
       
   945 	}
       
   946 
       
   947 
       
   948 // ---------------------------------------------------------------------------
       
   949 // CPtiEngineImpl::MappingDataForKey
       
   950 // 
       
   951 // ---------------------------------------------------------------------------
       
   952 //
       
   953 EXPORT_C void CPtiEngine::MappingDataForKey(TPtiKey aKey, TDes& aResult, TPtiTextCase aCase)
       
   954 	{
       
   955 	iImpl->MappingDataForKey(aKey, aResult, aCase);
       
   956 	}
       
   957 
       
   958 
       
   959 // ---------------------------------------------------------------------------
       
   960 // CPtiEngineImpl::GetNumericModeKeysForQwertyL
       
   961 // 
       
   962 // ---------------------------------------------------------------------------
       
   963 //
       
   964 EXPORT_C void CPtiEngine::GetNumericModeKeysForQwertyL(TInt aLanguage, RArray<TPtiNumericKeyBinding>& aResult)
       
   965 	{
       
   966 	iImpl->GetNumericModeKeysForQwertyL(aLanguage, aResult);
       
   967 	}
       
   968 
       
   969 
       
   970 // ---------------------------------------------------------------------------
       
   971 // CPtiEngineImpl::GetCandidatesByInputString
       
   972 // 
       
   973 // ---------------------------------------------------------------------------
       
   974 //	
       
   975 EXPORT_C HBufC* CPtiEngine::GetCandidatesByInputString(const TDesC& aInputString, 
       
   976                                                        RPointerArray<HBufC>& aList,
       
   977                                                        const TBool aIsPredictive)
       
   978     {
       
   979     return iImpl->GetCandidatesByInputString(aInputString, aList, aIsPredictive);
       
   980     }
       
   981     
       
   982     
       
   983 // ---------------------------------------------------------------------------
       
   984 // CPtiEngine::GetHwrRecognizerL
       
   985 // (other items were commented in a header).
       
   986 // ---------------------------------------------------------------------------
       
   987 // 
       
   988 EXPORT_C MPtiHwrRecognizer* CPtiEngine::GetHwrRecognizerL(TLanguage aLanguage)
       
   989     {
       
   990     return iImpl->GetHwrRecognizerL(aLanguage);
       
   991     }
       
   992     
       
   993     
       
   994 // ---------------------------------------------------------------------------
       
   995 // CPtiEngine::GetHwrRecognizerL
       
   996 // (other items were commented in a header).
       
   997 // ---------------------------------------------------------------------------
       
   998 // 
       
   999 EXPORT_C MPtiHwrRecognizer* CPtiEngine::GetHwrRecognizerL(TInt aImpId)
       
  1000     {
       
  1001     return iImpl->GetHwrRecognizerL(aImpId);
       
  1002     }
       
  1003    
       
  1004     
       
  1005 // ---------------------------------------------------------------------------
       
  1006 // CPtiEngine::ListHwrRecognizerL
       
  1007 // (other items were commented in a header).
       
  1008 // ---------------------------------------------------------------------------
       
  1009 // 
       
  1010 EXPORT_C RArray<TUid>& CPtiEngine::ListHwrRecognizerL(TLanguage aLanguage)
       
  1011     {
       
  1012     return iImpl->ListHwrRecognizerL(aLanguage);
       
  1013     }
       
  1014 
       
  1015 
       
  1016 // ---------------------------------------------------------------------------
       
  1017 // CPtiEngine::GetHwrAvailableLanguagesL
       
  1018 // (other items were commented in a header).
       
  1019 // ---------------------------------------------------------------------------
       
  1020 // 
       
  1021 EXPORT_C void CPtiEngine::GetHwrAvailableLanguagesL(RArray<TInt>& aResult)
       
  1022     {
       
  1023     iImpl->GetHwrAvailableLanguagesL(aResult);
       
  1024     }
       
  1025 
       
  1026 
       
  1027 // ---------------------------------------------------------------------------
       
  1028 // CPtiEngineImpl::ExtendedNumericModeKeysForQwertyL
       
  1029 // 
       
  1030 // ---------------------------------------------------------------------------
       
  1031 //
       
  1032 EXPORT_C const RArray<TPtiNumericKeyBinding>& CPtiEngine::ExtendedNumericModeKeysForQwertyL(TInt aLanguage)
       
  1033 	{
       
  1034 	return iImpl->ExtendedNumericModeKeysForQwertyL(aLanguage);
       
  1035 	}
       
  1036 
       
  1037 
       
  1038 // ---------------------------------------------------------------------------
       
  1039 // CPtiEngine::SetAutoSubstitution
       
  1040 // 
       
  1041 // ---------------------------------------------------------------------------
       
  1042 //
       
  1043 EXPORT_C TInt CPtiEngine::SetAutoSubstitution(TBool aStatus)
       
  1044     {
       
  1045     return iImpl->SetAutoSubstitution(aStatus);    
       
  1046     }
       
  1047 
       
  1048 
       
  1049 // ---------------------------------------------------------------------------
       
  1050 // CPtiEngine::AddAutoSubstitutionEntry
       
  1051 // 
       
  1052 // ---------------------------------------------------------------------------
       
  1053 //    
       
  1054 EXPORT_C TInt CPtiEngine::AddAutoSubstitutionEntry(const TDesC& aShortcut,
       
  1055                                                    const TDesC& aSubstituition)
       
  1056     {
       
  1057     return iImpl->AddAutoSubstitutionEntry(aShortcut, aSubstituition);
       
  1058     }
       
  1059 
       
  1060      
       
  1061 // ---------------------------------------------------------------------------
       
  1062 // CPtiEngine::DeleteAutoSubstitutionEntry
       
  1063 // 
       
  1064 // ---------------------------------------------------------------------------
       
  1065 //      
       
  1066 EXPORT_C TInt CPtiEngine::DeleteAutoSubstitutionEntry(const TDesC& aShortcut)
       
  1067     {
       
  1068     return iImpl->DeleteAutoSubstitutionEntry(aShortcut);
       
  1069     }
       
  1070 
       
  1071      
       
  1072 // ---------------------------------------------------------------------------
       
  1073 // CPtiEngine::NumberOfAutoSubstitutionEntries
       
  1074 // 
       
  1075 // ---------------------------------------------------------------------------
       
  1076 //            
       
  1077 EXPORT_C TInt CPtiEngine::NumberOfAutoSubstitutionEntries() const
       
  1078     {
       
  1079     return iImpl->NumberOfAutoSubstitutionEntries();
       
  1080     }
       
  1081 
       
  1082      
       
  1083 // ---------------------------------------------------------------------------
       
  1084 // CPtiEngine::GetAutoSubstitutionEntry
       
  1085 // 
       
  1086 // ---------------------------------------------------------------------------
       
  1087 //
       
  1088 EXPORT_C TInt CPtiEngine::GetAutoSubstitutionEntry(TInt aIndex, TDes& aShortcut,
       
  1089                                                    TDes& aSubstitution)
       
  1090     {
       
  1091     return iImpl->GetAutoSubstitutionEntry(aIndex, aShortcut, aSubstitution);
       
  1092     }
       
  1093     
       
  1094     
       
  1095 // ---------------------------------------------------------------------------
       
  1096 // CPtiEngine::KeyboardType
       
  1097 // 
       
  1098 // ---------------------------------------------------------------------------
       
  1099 //                                                                                    
       
  1100 EXPORT_C TPtiKeyboardType CPtiEngine::KeyboardType() const
       
  1101     {
       
  1102     return iImpl->KeyboardType();
       
  1103     }
       
  1104      
       
  1105     
       
  1106 // ---------------------------------------------------------------------------
       
  1107 // CPtiEngine::KeyboardType
       
  1108 // 
       
  1109 // ---------------------------------------------------------------------------
       
  1110 //                           
       
  1111 EXPORT_C TInt CPtiEngine::SetKeyboardType(TPtiKeyboardType aType)
       
  1112     {
       
  1113     return iImpl->SetKeyboardType(aType);
       
  1114     }
       
  1115 
       
  1116 
       
  1117 // ---------------------------------------------------------------------------
       
  1118 // CPtiEngine::IsQwertyBasedMode
       
  1119 // 
       
  1120 // ---------------------------------------------------------------------------
       
  1121 //
       
  1122 EXPORT_C TBool CPtiEngine::IsQwertyBasedMode(TPtiEngineInputMode aMode) const
       
  1123     {
       
  1124     if ((aMode == EPtiEngineQwerty) ||
       
  1125         (aMode == EPtiEngineZhuyinQwerty) ||
       
  1126         (aMode == EPtiEngineZhuyinPhraseQwerty) ||
       
  1127         (aMode == EPtiEnginePinyinQwerty) ||
       
  1128         (aMode == EPtiEnginePinyinPhraseQwerty) ||
       
  1129         (aMode == EPtiEngineStrokeQwerty) ||
       
  1130         (aMode == EPtiEngineStrokePhraseQwerty) ||        
       
  1131         (aMode == EPtiEngineNormalCangjieQwerty) ||
       
  1132         (aMode == EPtiEngineEasyCangjieQwerty) ||
       
  1133         (aMode == EPtiEngineAdvCangjieQwerty) ||
       
  1134         (aMode == EPtiEngineHiraganaKanjiQwerty) ||
       
  1135         (aMode == EPtiEngineHiraganaKanjiPredictiveQwerty) ||
       
  1136         (aMode == EPtiEngineKatakanaQwerty) ||
       
  1137         (aMode == EPtiEngineFullWidthKatakanaQwerty) ||
       
  1138         (aMode == EPtiEngineFullWidthNumericQwerty) ||
       
  1139         (aMode == EPtiEngineFullWidthAlphabetQwerty) ||
       
  1140         (aMode == EPtiEngineHiraganaQwerty) ||
       
  1141         (aMode == EPtiEngineQwertyPredictive)    
       
  1142 #ifdef RD_HINDI_PHONETIC_INPUT
       
  1143         || (aMode == EPtiEngineInputModeIndicPhoneticQwerty)
       
  1144 #endif
       
  1145 #ifdef RD_INTELLIGENT_TEXT_INPUT
       
  1146         || (aMode == EPtiEnginePinyinPhraseHalfQwerty)
       
  1147         || (aMode == EPtiEngineStrokePhraseHalfQwerty)
       
  1148         || (aMode == EPtiEngineZhuyinPhraseHalfQwerty)
       
  1149         || (aMode == EPtiEngineInputModeZhuyinMiniQwertyFind)
       
  1150         || (aMode == EPtiEngineQwertyKorean)
       
  1151 #endif
       
  1152         || (aMode == EPtiEngineNormalCangjieQwerty)
       
  1153         || (aMode == EPtiEngineEasyCangjieQwerty)
       
  1154         || (aMode == EPtiEngineAdvCangjieQwerty))
       
  1155         {
       
  1156         return ETrue;   
       
  1157         }
       
  1158         
       
  1159     return EFalse;
       
  1160     }      
       
  1161 
       
  1162 
       
  1163 // ---------------------------------------------------------------------------
       
  1164 // CPtiEngine::KeyboardTypesSupportedByLanguage
       
  1165 // 
       
  1166 // ---------------------------------------------------------------------------
       
  1167 //
       
  1168 EXPORT_C void CPtiEngine::KeyboardTypesSupportedByLanguageL(TInt aLanguage,
       
  1169                                                             RArray<TPtiKeyboardType>& aResult)
       
  1170     {
       
  1171     iImpl->KeyboardTypesSupportedByLanguageL(aLanguage, aResult);
       
  1172     }
       
  1173 
       
  1174 
       
  1175 // ---------------------------------------------------------------------------
       
  1176 // CPtiEngine::GetNumericModeKeysForQwertyL
       
  1177 // 
       
  1178 // ---------------------------------------------------------------------------
       
  1179 //
       
  1180 EXPORT_C void CPtiEngine::GetNumericModeKeysForQwertyL(TInt aLanguage,
       
  1181  	                                            RArray<TPtiNumericKeyBinding>& aResult,
       
  1182  	                                            TPtiKeyboardType aKeyboardType)
       
  1183     {
       
  1184     iImpl->GetNumericModeKeysForQwertyL(aLanguage, aResult, aKeyboardType);
       
  1185     }
       
  1186   
       
  1187   
       
  1188 // ---------------------------------------------------------------------------
       
  1189 // CPtiEngine::ExtendedNumericModeKeysForQwertyL
       
  1190 // 
       
  1191 // ---------------------------------------------------------------------------
       
  1192 //   
       
  1193 EXPORT_C const RArray<TPtiNumericKeyBinding>& CPtiEngine::ExtendedNumericModeKeysForQwertyL(TInt aLanguage,
       
  1194                                                                                      TPtiKeyboardType aKeyboardType)
       
  1195     {
       
  1196     return iImpl->ExtendedNumericModeKeysForQwertyL(aLanguage, aKeyboardType);
       
  1197     }
       
  1198     
       
  1199     
       
  1200 // ---------------------------------------------------------------------------
       
  1201 // CPtiEngine::ListAvailablePhysicalKeyboardsL
       
  1202 // 
       
  1203 // ---------------------------------------------------------------------------
       
  1204 //	
       
  1205 EXPORT_C void CPtiEngine::ListAvailablePhysicalKeyboardsL(RArray<TPtiKeyboardType>& aResult)
       
  1206     {
       
  1207   	// Add real implementation later.	
       
  1208     User::LeaveIfError(aResult.Append(EPtiKeyboard12Key));        	    
       
  1209     }    
       
  1210     
       
  1211         
       
  1212 // ---------------------------------------------------------------------------
       
  1213 // CPtiEngine::SetNumberCandidateStatus
       
  1214 // 
       
  1215 // ---------------------------------------------------------------------------
       
  1216 //	    
       
  1217 EXPORT_C TInt CPtiEngine::SetNumberCandidateStatus(TBool aStatus)
       
  1218     {
       
  1219     return iImpl->SetNumberCandidateStatus(aStatus);
       
  1220     }
       
  1221 
       
  1222 
       
  1223 // ---------------------------------------------------------------------------
       
  1224 // CPtiEngine::SetNumberCandidateStatus
       
  1225 // 
       
  1226 // ---------------------------------------------------------------------------
       
  1227 //	    
       
  1228 EXPORT_C TBool CPtiEngine::IsValidKey(TPtiKey aKey) const
       
  1229     {
       
  1230     return iImpl->IsValidKey(aKey);
       
  1231     }
       
  1232     
       
  1233     
       
  1234 // ---------------------------------------------------------------------------
       
  1235 // CPtiEngine::SetNumberCandidateStatus
       
  1236 // 
       
  1237 // ---------------------------------------------------------------------------
       
  1238 //	        
       
  1239 EXPORT_C TInt CPtiEngine::SetMaxLengthForAutoCompletedCandidates(TInt aMaxLength)
       
  1240    {
       
  1241    return iImpl->SetMaxLengthForAutoCompletedCandidates(aMaxLength);	
       
  1242    }
       
  1243       
       
  1244       
       
  1245 // ---------------------------------------------------------------------------
       
  1246 // CPtiEngine::MarkAutoCapitalized()
       
  1247 // 
       
  1248 // ---------------------------------------------------------------------------
       
  1249 //	         
       
  1250 EXPORT_C void CPtiEngine::MarkAutoCapitalized()
       
  1251     {
       
  1252     iImpl->MarkAutoCapitalized();
       
  1253     }
       
  1254     
       
  1255 
       
  1256 // ---------------------------------------------------------------------------
       
  1257 // CPtiEngine::CaseSequence()
       
  1258 // 
       
  1259 // ---------------------------------------------------------------------------
       
  1260 //	 
       
  1261 EXPORT_C TPtrC8 CPtiEngine::CaseSequence()
       
  1262     {
       
  1263     return iImpl->CaseSequence();
       
  1264     }
       
  1265     
       
  1266     
       
  1267 // ---------------------------------------------------------------------------
       
  1268 // CPtiEngine::AddPhrase()
       
  1269 // 
       
  1270 // ---------------------------------------------------------------------------
       
  1271 //	    
       
  1272 EXPORT_C TInt CPtiEngine::AddPhrase(const TDesC& aNewPhrase)
       
  1273     {
       
  1274     return iImpl->AddPhrase(aNewPhrase);
       
  1275     }
       
  1276     
       
  1277 #ifdef FF_DUAL_LANGUAGE_SUPPORT
       
  1278 // ---------------------------------------------------------------------------
       
  1279 // CPtiEngineImpl::SetSecondaryInputL
       
  1280 // 
       
  1281 // ---------------------------------------------------------------------------
       
  1282 //
       
  1283 EXPORT_C TInt CPtiEngine::SetSecondaryInputL(TInt aEpocLanguageID)
       
  1284     {
       
  1285     return iImpl->SetSecondaryInputL(aEpocLanguageID);
       
  1286     }
       
  1287 #endif //FF_DUAL_LANGUAGE_SUPPORT
       
  1288 // End of file