src/hbplugins/inputmethods/hardwareinput/hbhardwareinputprediction12keyhandler.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   172     d->q_ptr = this;
   172     d->q_ptr = this;
   173 }
   173 }
   174 
   174 
   175 HbHardwareInputPrediction12KeyHandler::~HbHardwareInputPrediction12KeyHandler()
   175 HbHardwareInputPrediction12KeyHandler::~HbHardwareInputPrediction12KeyHandler()
   176 {
   176 {
   177 }
       
   178 
       
   179 /*!
       
   180 this function lists different modes.
       
   181 */
       
   182 void HbHardwareInputPrediction12KeyHandler::listInputModes(QVector<HbInputModeProperties>& modes) const
       
   183 {
       
   184 	  Q_UNUSED(modes); 
       
   185     /*HbInputMode binding;
       
   186     binding.iMode = HbInputModeLatinPredictive;
       
   187     binding.iKeyboard = HbKeyboard12Key;
       
   188     QVector<int> languages;
       
   189     HbKeyMapFactory::instance()->listLanguages(languages);
       
   190 
       
   191     const QVector<HbInputLanguage>* engineLanguages = supportedLanguages();
       
   192     if (engineLanguages) {
       
   193         binding.iMode = HbInputModeLatinPredictive;
       
   194         foreach (const HbInputLanguage& languageCode, *engineLanguages) {
       
   195             if (languages.contains(languageCode.language())) {
       
   196                 binding.iLanguage = languageCode;
       
   197                 modes.push_back(binding);
       
   198             }
       
   199         }
       
   200     }*/
       
   201 }
   177 }
   202 
   178 
   203 /*!
   179 /*!
   204 filterEvent to handler keypress/release events.
   180 filterEvent to handler keypress/release events.
   205 */
   181 */