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
inputstreamthread_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 Lauri Laanmets (Proekspert AS) <lauri.laanmets@eesti.ee>
2// Copyright (C) 2021 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef INPUTSTREAMTHREAD_H
6#define INPUTSTREAMTHREAD_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/QObject>
20#include <QtCore/QMutex>
21#include <QtCore/QJniObject>
22#include <QtCore/private/qglobal_p.h>
23#include <jni.h>
24
26
28
30{
32public:
34
35 qint64 bytesAvailable() const;
36 bool canReadLine() const;
37 bool run();
38
39 qint64 readData(char *data, qint64 maxSize);
40 void javaThreadErrorOccurred(int errorCode);
41 void javaReadyRead(jbyteArray buffer, int bufferLength);
42
43 void prepareForClosure();
44
47 void errorOccurred(int errorCode);
48
49private:
51 QJniObject javaInputStreamThread;
52 mutable QMutex m_mutex;
53 bool expectClosure;
54};
55
57
58#endif // INPUTSTREAMTHREAD_H
void errorOccurred(int errorCode)
void javaThreadErrorOccurred(int errorCode)
qint64 bytesAvailable() const
InputStreamThread(QBluetoothSocketPrivateAndroid *socket_p)
void javaReadyRead(jbyteArray buffer, int bufferLength)
\inmodule QtCore
\inmodule QtCore
Definition qmutex.h:281
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint buffer
#define Q_OBJECT
#define signals
long long qint64
Definition qtypes.h:60
QByteArray readData()