equal
deleted
inserted
replaced
1096 TInt supportMode = GetSupportModeL(); |
1096 TInt supportMode = GetSupportModeL(); |
1097 |
1097 |
1098 TPckg<TInt> msg(supportMode); |
1098 TPckg<TInt> msg(supportMode); |
1099 |
1099 |
1100 aMessage.WriteL(0,msg); |
1100 aMessage.WriteL(0,msg); |
1101 } |
|
1102 break; |
|
1103 |
|
1104 case EPeninputRequestSetInputLanguage: |
|
1105 { |
|
1106 TPckg<TInt> msg(iInputLanguage); |
|
1107 aMessage.ReadL(0,msg); |
|
1108 if(iUiLayout) |
|
1109 { |
|
1110 iUiLayout->HandleCommand(ECmdPenInputLanguage, |
|
1111 (unsigned char*)&iInputLanguage); |
|
1112 } |
|
1113 } |
1101 } |
1114 break; |
1102 break; |
1115 default: //Let user pluging handling the user command |
1103 default: //Let user pluging handling the user command |
1116 break; |
1104 break; |
1117 } |
1105 } |
2110 // |
2098 // |
2111 TInt CPeninputServer::SetDisabledLayouts( TInt aDisabledLayouts ) |
2099 TInt CPeninputServer::SetDisabledLayouts( TInt aDisabledLayouts ) |
2112 { |
2100 { |
2113 // No spcified logic now, so just store the disabled layout in the CFepUiLayoutBase class. |
2101 // No spcified logic now, so just store the disabled layout in the CFepUiLayoutBase class. |
2114 TInt allowedPlugin = EPluginInputModeNone;// EPluginInputModeHwr | EPluginInputModeVkb | EPluginInputModeItut | EPluginInputModeFSc; |
2102 TInt allowedPlugin = EPluginInputModeNone;// EPluginInputModeHwr | EPluginInputModeVkb | EPluginInputModeItut | EPluginInputModeFSc; |
2115 TInt curLanguage = iInputLanguage; |
2103 |
|
2104 CRepository* repository = NULL; |
|
2105 TRAPD(ret, repository = CRepository::NewL(KCRUidAknFep)); |
|
2106 if (ret != KErrNone) |
|
2107 { |
|
2108 return EPluginInputModeAll; |
|
2109 } |
|
2110 TInt curLanguage ; |
|
2111 repository->Get(KAknFepInputTxtLang, curLanguage); |
|
2112 delete repository; |
2116 |
2113 |
2117 if (curLanguage == 401) curLanguage = 102; |
2114 if (curLanguage == 401) curLanguage = 102; |
2118 if (curLanguage == 402) curLanguage = 103; |
2115 if (curLanguage == 402) curLanguage = 103; |
2119 |
2116 |
2120 |
2117 |
2684 return disabled; |
2681 return disabled; |
2685 } |
2682 } |
2686 |
2683 |
2687 TInt CPeninputServer::GetSupportModeL() |
2684 TInt CPeninputServer::GetSupportModeL() |
2688 { |
2685 { |
2689 TInt curLanguage = iInputLanguage; |
2686 CRepository* repository = NULL; |
|
2687 TRAPD(ret, repository = CRepository::NewL(KCRUidAknFep)); |
|
2688 if (ret != KErrNone) |
|
2689 { |
|
2690 return ret; |
|
2691 } |
|
2692 TInt curLanguage ; |
|
2693 repository->Get(KAknFepInputTxtLang, curLanguage); |
|
2694 delete repository; |
|
2695 repository = NULL; |
2690 |
2696 |
2691 if (curLanguage == 401) curLanguage = 102; |
2697 if (curLanguage == 401) curLanguage = 102; |
2692 if (curLanguage == 402) curLanguage = 103; |
2698 if (curLanguage == 402) curLanguage = 103; |
2693 |
2699 |
2694 |
2700 |