Qt 6.x
The Qt SDK
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
4#ifndef VIRTUALKEYBOARDPPS_H
5#define VIRTUALKEYBOARDPPS_H
6
8
9#include <sys/pps.h>
10
12
13
14class QSocketNotifier;
15
17{
19public:
22
23 bool showKeyboard() override;
24 bool hideKeyboard() override;
25
26public Q_SLOTS:
27 void start();
28
29protected:
30 void applyKeyboardOptions() override;
31
32private Q_SLOTS:
33 void ppsDataReady();
34
35private:
36 // Will be called internally if needed.
37 bool connect();
38 void close();
39 bool queryPPSInfo();
40 void handleKeyboardInfoMessage();
41
42 const char* keyboardModeStr() const;
43 const char* enterKeyTypeStr() const;
44
45 bool prepareToSend();
46 bool writeCurrentPPSEncoder();
47
48 pps_encoder_t *m_encoder;
49 pps_decoder_t *m_decoder;
50 char *m_buffer;
51 int m_fd;
52 QSocketNotifier *m_readNotifier;
53
54 // Path to keyboardManager in PPS.
55 static const char *ms_PPSPath;
56 static const size_t ms_bufferSize;
57};
58
60
61#endif // VIRTUALKEYBOARDPPS_H
\inmodule QtCore
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_SLOTS