src/hbcore/inputfw/hbinputlanguage.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 6 c3690ec91ef8
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   170 */
   170 */
   171 
   171 
   172 /*!
   172 /*!
   173 \fn bool defined() 
   173 \fn bool defined() 
   174 
   174 
   175 Returns true if this structure is initialised to contain a valid language / variant .
   175 Returns true if this structure is initialised to contain a valid language/variant pair.
   176 */
   176 */
   177 
   177 
   178 /*!
   178 /*!
   179 Returns localized language name for given language. Language variant parameter
   179 Returns localized language name for given language.
   180 identifies sub-language in those cases where QLocale::Language does not provide
   180 Chinese requires valid value in language's variant field,
   181 enough information (for example in case of Chinese). See setting proxy's
   181 otherwise null string will be returned. Valid variants are
   182 input language variant for more information. Chinese requires languageVariant
       
   183 parameter, otherwise null string will be returned. Valid variants are
       
   184 QLocale::China, QLocale::Taiwan and QLocale::HongKong.
   182 QLocale::China, QLocale::Taiwan and QLocale::HongKong.
   185 
   183 
   186 \sa HbInputSettingProxy
   184 \sa HbInputSettingProxy
   187 */
   185 */
   188 QString HbInputLanguage::localisedName()
   186 QString HbInputLanguage::localisedName()
   214 
   212 
   215     return result;
   213     return result;
   216 }
   214 }
   217 
   215 
   218 /*!
   216 /*!
   219 Returns true if the language is case sensitive else returns false.
   217 Returns true if the language is case sensitive.
   220 */
   218 */
   221 bool HbInputLanguage::isCaseSensitiveLanguage() const
   219 bool HbInputLanguage::isCaseSensitiveLanguage() const
   222 {
   220 {
   223   if (mLanguage == QLocale::Arabic || mLanguage == QLocale::Hebrew
   221   if (mLanguage == QLocale::Arabic || mLanguage == QLocale::Hebrew
   224         || mLanguage == QLocale::Urdu || mLanguage == QLocale::Chinese
   222         || mLanguage == QLocale::Urdu || mLanguage == QLocale::Chinese