textinput/GSLangPlugin/src/GSLangModel.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 8 4eb1ae11334f
child 12 5e18d8c489d6
equal deleted inserted replaced
8:4eb1ae11334f 9:e6a39382bb9c
  1344 #ifdef RD_INTELLIGENT_TEXT_INPUT
  1344 #ifdef RD_INTELLIGENT_TEXT_INPUT
  1345 TBool CGSLangModel::DeviceHasMultipleKeyboardsL() 
  1345 TBool CGSLangModel::DeviceHasMultipleKeyboardsL() 
  1346     {
  1346     {
  1347     TInt physicalKeyboards = 0;
  1347     TInt physicalKeyboards = 0;
  1348     User::LeaveIfError( iAknFepRepository->Get(  KAknFepPhysicalKeyboards, physicalKeyboards ));
  1348     User::LeaveIfError( iAknFepRepository->Get(  KAknFepPhysicalKeyboards, physicalKeyboards ));
  1349 
  1349     // Check virtual keyboards
       
  1350     if ( FeatureManager::FeatureSupported(KFeatureIdVirtualItutInput) )
       
  1351         {
       
  1352         physicalKeyboards = physicalKeyboards | 0x01;
       
  1353         }
       
  1354     if ( FeatureManager::FeatureSupported(KFeatureIdVirtualFullscrQwertyInput) )
       
  1355         {
       
  1356         physicalKeyboards = physicalKeyboards | 0x02;
       
  1357         }
       
  1358     // Check virtual keyboards end
  1350     TBool firstFound = EFalse;
  1359     TBool firstFound = EFalse;
  1351     for(TUint i = 0x01; i <= 0xF0; i = i << 1)
  1360     for(TUint i = 0x01; i <= 0xF0; i = i << 1)
  1352         {
  1361         {
  1353         if(physicalKeyboards & i)
  1362         if(physicalKeyboards & i)
  1354             {
  1363             {
  1379 
  1388 
  1380 TInt CGSLangModel::PhysicalKeyboardsL()
  1389 TInt CGSLangModel::PhysicalKeyboardsL()
  1381     {
  1390     {
  1382     TInt physicalKeyboards = 0;
  1391     TInt physicalKeyboards = 0;
  1383     User::LeaveIfError( iAknFepRepository->Get(  KAknFepPhysicalKeyboards, physicalKeyboards ));
  1392     User::LeaveIfError( iAknFepRepository->Get(  KAknFepPhysicalKeyboards, physicalKeyboards ));
       
  1393     // Check virtual keyboards
       
  1394     if ( FeatureManager::FeatureSupported(KFeatureIdVirtualItutInput) )
       
  1395         {
       
  1396         physicalKeyboards = physicalKeyboards | 0x01;
       
  1397         }
       
  1398     if ( FeatureManager::FeatureSupported(KFeatureIdVirtualFullscrQwertyInput) )
       
  1399         {
       
  1400         physicalKeyboards = physicalKeyboards | 0x02;
       
  1401         }
       
  1402     // Check virtual keyboards end
  1384     return physicalKeyboards;
  1403     return physicalKeyboards;
  1385     }
  1404     }
  1386 
  1405 
  1387 void CGSLangModel::GetSecondaryInputLanguagesL(
  1406 void CGSLangModel::GetSecondaryInputLanguagesL(
  1388               CArrayFix<TInt>* aSeedLanguages,
  1407               CArrayFix<TInt>* aSeedLanguages,