bool QBBVirtualKeyboard::showKeyboard() { #ifdef QBBVIRTUALKEYBOARD_DEBUG qDebug() << "QBB: showKeyboard()"; #endif // Try to connect. if (mFd == -1 && !connect()) return false; // NOTE: This must be done everytime the keyboard is shown even if there is no change because // hiding the keyboard wipes the setting. applyKeyboardModeOptions(); pps_encoder_reset(mEncoder); // Send the show message. pps_encoder_add_string(mEncoder, "msg", "show"); if (::write(mFd, pps_encoder_buffer(mEncoder), pps_encoder_length(mEncoder)) == -1) { close(); return false; } pps_encoder_reset(mEncoder); // Return true if no error occurs. Sizing response will be triggered when confirmation of // the change arrives. return true; }
bool QQnxVirtualKeyboardPps::showKeyboard() { qVirtualKeyboardDebug() << Q_FUNC_INFO; // Try to connect. if (m_fd == -1 && !connect()) return false; // NOTE: This must be done everytime the keyboard is shown even if there is no change because // hiding the keyboard wipes the setting. applyKeyboardModeOptions(keyboardMode()); if (isVisible()) return true; pps_encoder_reset(m_encoder); // Send the show message. pps_encoder_add_string(m_encoder, "msg", "show"); if (::write(m_fd, pps_encoder_buffer(m_encoder), pps_encoder_length(m_encoder)) == -1) { close(); return false; } pps_encoder_reset(m_encoder); // Return true if no error occurs. Sizing response will be triggered when confirmation of // the change arrives. return true; }
void QQnxVirtualKeyboardPps::applyKeyboardMode(KeyboardMode mode) { applyKeyboardModeOptions(mode); }