src/hbplugins/inputmethods/hardwareinput/hbhardwareinputbasicqwertyhandler.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 6 c3690ec91ef8
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   215 {
   215 {
   216     Q_D(HbHardwareInputBasicQwertyHandler);
   216     Q_D(HbHardwareInputBasicQwertyHandler);
   217     d->q_ptr = this;
   217     d->q_ptr = this;
   218 }
   218 }
   219 
   219 
   220 
       
   221 /*!
       
   222 This function lists different input modes.
       
   223 */
       
   224 void HbHardwareInputBasicQwertyHandler::listInputModes(QVector<HbInputModeProperties>& modes) const
       
   225 {
       
   226     HbInputModeProperties binding;
       
   227 	binding.iMode = HbInputModeDefault;
       
   228 	QList<HbKeyboardType> availableKeyBoards;
       
   229 	HbInputSettingProxy::instance()->availableHwKeyboard(availableKeyBoards);
       
   230 	foreach(HbKeyboardType keyboardType, availableKeyBoards) {
       
   231 		(keyboardType&HbQwertyKeyboardMask) ? binding.iKeyboard = keyboardType : binding.iKeyboard = HbKeyboardNone;
       
   232 		if (binding.iKeyboard != HbKeyboardNone) {
       
   233 			QList<HbInputLanguage> languages = HbKeymapFactory::availableLanguages();
       
   234 			foreach(HbInputLanguage lang, languages) {
       
   235 				binding.iLanguage = lang;        
       
   236 				modes.push_front(binding);
       
   237 			}
       
   238 		}
       
   239 	}
       
   240 }
       
   241 
       
   242 HbHardwareInputBasicQwertyHandler::~HbHardwareInputBasicQwertyHandler()
   220 HbHardwareInputBasicQwertyHandler::~HbHardwareInputBasicQwertyHandler()
   243 {
   221 {
   244 }
   222 }
   245 
   223 
   246 /*!
   224 /*!