Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQNXABSTRACTVIRTUALKEYBOARD_H
6
#
define
QQNXABSTRACTVIRTUALKEYBOARD_H
7
8
#
include
<
QLocale
>
9
#
include
<
QObject
>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QQnxAbstractVirtualKeyboard :
public
QObject
14
{
15
Q_OBJECT
16
public
:
17
// Keyboard Types currently supported.
18
// Default - Regular Keyboard
19
// Url/Email - Enhanced keys for each types.
20
// Web - Regular keyboard with two blank keys, currently unused.
21
// NumPunc - Numbers & Punctionation, alternate to Symbol
22
// Number - Number pad
23
// Symbol - All symbols, alternate to NumPunc, currently unused.
24
// Phone - Phone enhanced keyboard
25
// Pin - Keyboard for entering Pins (Hex values).
26
// Password - Keyboard with lots of extra characters for password input.
27
// Alphanumeric - Similar to password without any of the security implications.
28
//
29
enum
KeyboardMode { Default, Url, Email, Web, NumPunc, Number, Symbol, Phone, Pin, Password, Alphanumeric };
30
enum
EnterKeyType { DefaultReturn, Connect, Done, Go, Join, Next, Search, Send, Submit };
31
32
explicit
QQnxAbstractVirtualKeyboard(QObject *parent =
nullptr
);
33
34
virtual
bool
showKeyboard() = 0;
35
virtual
bool
hideKeyboard() = 0;
36
37
int
height() {
return
m_visible ? m_height : 0; }
38
bool
isVisible()
const
{
return
m_visible; }
39
QLocale locale()
const
{
return
m_locale; }
40
41
void
setKeyboardMode(KeyboardMode mode);
42
void
setEnterKeyType(EnterKeyType type);
43
44
void
setInputHints(
int
inputHints);
45
KeyboardMode keyboardMode()
const
{
return
m_keyboardMode; }
46
EnterKeyType enterKeyType()
const
{
return
m_enterKeyType; }
47
48
static
EnterKeyType qtEnterKeyTypeToQnx(Qt::EnterKeyType type);
49
50
Q_SIGNALS:
51
void
heightChanged(
int
height);
52
void
visibilityChanged(
bool
visible);
53
void
localeChanged(
const
QLocale &locale);
54
55
protected
:
56
virtual
void
applyKeyboardOptions() = 0;
57
58
void
setHeight(
int
height);
59
void
setVisible(
bool
visible);
60
void
setLocale(
const
QLocale &locale);
61
62
private
:
63
int
m_height;
64
bool
m_visible;
65
QLocale m_locale;
66
KeyboardMode m_keyboardMode;
67
EnterKeyType m_enterKeyType;
68
};
69
70
QT_END_NAMESPACE
71
72
#
endif
// QQNXABSTRACTVIRTUALKEYBOARD_H
QObjectData::parent
QObject * parent
Definition
qobject.h:74
QObject
\inmodule QtCore
Definition
qobject.h:106
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
qnx
qqnxabstractvirtualkeyboard.h
Generated on
for Qt by
1.18.0