1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef ABSTRACTINPUTPANEL_P_H
5#define ABSTRACTINPUTPANEL_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QObject>
19#include <QtVirtualKeyboard/qvirtualkeyboard_global.h>
20#include <QtCore/private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23namespace QtVirtualKeyboard {
24
25class Q_VIRTUALKEYBOARD_EXPORT AbstractInputPanel : public QObject
26{
27 Q_OBJECT
28protected:
29 AbstractInputPanel(QObjectPrivate &dd, QObject *parent = nullptr);
30public:
31 explicit AbstractInputPanel(QObject *parent = nullptr);
32 ~AbstractInputPanel();
33
34 virtual void show() = 0;
35 virtual void hide() = 0;
36 virtual bool isVisible() const = 0;
37
38 virtual void setInputRect(const QRect &inputRect);
39
40public slots:
41 virtual void createView();
42 virtual void destroyView();
43};
44
45} // namespace QtVirtualKeyboard
46QT_END_NAMESPACE
47
48#endif // ABSTRACTINPUTPANEL_P_H
49

source code of qtvirtualkeyboard/src/virtualkeyboard/abstractinputpanel_p.h