Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxvirtualkeyboardpps.h
Go to the documentation of this file.
1// Copyright (C) 2011 - 2012 Research In Motion
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 VIRTUALKEYBOARDPPS_H
6#define VIRTUALKEYBOARDPPS_H
7
9#include <QtCore/QLoggingCategory>
10
11#include <sys/pps.h>
12
14
15Q_DECLARE_LOGGING_CATEGORY(lcQpaQnxVirtualKeyboard);
16
17class QSocketNotifier;
18
19class QQnxVirtualKeyboardPps : public QQnxAbstractVirtualKeyboard
20{
22public:
25
26 bool showKeyboard() override;
27 bool hideKeyboard() override;
28
29public Q_SLOTS:
30 void start();
31
32protected:
33 void applyKeyboardOptions() override;
34
35private Q_SLOTS:
36 void ppsDataReady();
37
38private:
39 // Will be called internally if needed.
40 bool connect();
41 void close();
42 bool queryPPSInfo();
43 void handleKeyboardInfoMessage();
44
45 const char* keyboardModeStr() const;
46 const char* enterKeyTypeStr() const;
47
48 bool prepareToSend();
49 bool writeCurrentPPSEncoder();
50
51 pps_encoder_t *m_encoder;
52 pps_decoder_t *m_decoder;
53 char *m_buffer;
54 int m_fd;
55 QSocketNotifier *m_readNotifier;
56
57 // Path to keyboardManager in PPS.
58 static const char *ms_PPSPath;
59 static const size_t ms_bufferSize;
60};
61
62QT_END_NAMESPACE
63
64#endif // VIRTUALKEYBOARDPPS_H
Combined button and popup list for selecting options.
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")