Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqnxabstractvirtualkeyboard.h
Go to the documentation of this file.
1// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQNXABSTRACTVIRTUALKEYBOARD_H
5#define QQNXABSTRACTVIRTUALKEYBOARD_H
6
7#include <QLocale>
8#include <QObject>
9
11
13{
15public:
16 // Keyboard Types currently supported.
17 // Default - Regular Keyboard
18 // Url/Email - Enhanced keys for each types.
19 // Web - Regular keyboard with two blank keys, currently unused.
20 // NumPunc - Numbers & Punctionation, alternate to Symbol
21 // Number - Number pad
22 // Symbol - All symbols, alternate to NumPunc, currently unused.
23 // Phone - Phone enhanced keyboard
24 // Pin - Keyboard for entering Pins (Hex values).
25 // Password - Keyboard with lots of extra characters for password input.
26 // Alphanumeric - Similar to password without any of the security implications.
27 //
30
31 explicit QQnxAbstractVirtualKeyboard(QObject *parent = nullptr);
32
33 virtual bool showKeyboard() = 0;
34 virtual bool hideKeyboard() = 0;
35
36 int height() { return m_visible ? m_height : 0; }
37 bool isVisible() const { return m_visible; }
38 QLocale locale() const { return m_locale; }
39
42
43 void setInputHints(int inputHints);
44 KeyboardMode keyboardMode() const { return m_keyboardMode; }
45 EnterKeyType enterKeyType() const { return m_enterKeyType; }
46
48
51 void visibilityChanged(bool visible);
53
54protected:
55 virtual void applyKeyboardOptions() = 0;
56
57 void setHeight(int height);
58 void setVisible(bool visible);
59 void setLocale(const QLocale &locale);
60
61private:
62 int m_height;
63 bool m_visible;
64 QLocale m_locale;
65 KeyboardMode m_keyboardMode;
66 EnterKeyType m_enterKeyType;
67};
68
70
71#endif // QQNXABSTRACTVIRTUALKEYBOARD_H
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
void visibilityChanged(bool visible)
void localeChanged(const QLocale &locale)
void setLocale(const QLocale &locale)
QQnxAbstractVirtualKeyboard(QObject *parent=nullptr)
virtual bool showKeyboard()=0
static EnterKeyType qtEnterKeyTypeToQnx(Qt::EnterKeyType type)
virtual void applyKeyboardOptions()=0
virtual bool hideKeyboard()=0
void heightChanged(int height)
Combined button and popup list for selecting options.
EnterKeyType
GLenum mode
GLint GLsizei GLsizei height
GLenum type
#define Q_OBJECT
#define Q_SIGNALS