src/hbplugins/inputmethods/hardwareinput/hbhardwareinputpredictionqwertyhandler.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 23 e6ad4ef83b23
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   229     d->init();
   229     d->init();
   230 }
   230 }
   231 
   231 
   232 HbHardwareInputPredictionQwertyHandler::~HbHardwareInputPredictionQwertyHandler()
   232 HbHardwareInputPredictionQwertyHandler::~HbHardwareInputPredictionQwertyHandler()
   233 {
   233 {
   234 }
       
   235 
       
   236 /*!
       
   237 lists different input mode bindings..
       
   238 */
       
   239 void HbHardwareInputPredictionQwertyHandler::listInputModes(QVector<HbInputModeProperties>& modes) const
       
   240 {
       
   241 	Q_UNUSED(modes);
       
   242     /*HbInputModeProperties binding;
       
   243     binding.iMode = HbInputModeLatinPredictive;
       
   244     QList<HbKeyboardType> availableKeyBoards;
       
   245     HbInputSettingProxy::instance()->availableHwKeyboard(availableKeyBoards);
       
   246     foreach(HbKeyboardType keyboardType, availableKeyBoards) {
       
   247         (keyboardType&HbQwertyKeyboardMask) ? binding.iKeyboard = keyboardType : binding.iKeyboard = HbKeyboardNone;
       
   248         if (binding.iKeyboard != HbKeyboardNone) {
       
   249             QVector<int> languages;
       
   250             HbKeyMapFactory::instance()->listLanguages(languages);
       
   251 
       
   252             foreach(int lang, languages) {
       
   253                 if(HbKeyMapFactory::instance()->isKeyboardDataAvailableForLanguage(lang,binding.iKeyboard)){
       
   254                     binding.iLanguage = (QLocale::Language)lang;        
       
   255                     modes.push_front(binding);
       
   256                 }
       
   257             }
       
   258         }
       
   259     }*/
       
   260 }
   234 }
   261 
   235 
   262 /*!
   236 /*!
   263 Action Handler.
   237 Action Handler.
   264 */
   238 */