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