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
25
QT_BEGIN_NAMESPACE
26
27
class
QBluetoothSocketPrivateAndroid
;
28
29
class
InputStreamThread
:
public
QObject
30
{
31
Q_OBJECT
32
public
:
33
explicit
InputStreamThread
(
QBluetoothSocketPrivateAndroid
*socket_p);
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
45
signals
:
46
void
dataAvailable
();
47
void
errorOccurred
(
int
errorCode);
48
49
private
:
50
QBluetoothSocketPrivateAndroid
*m_socket_p;
51
QJniObject
javaInputStreamThread;
52
mutable
QMutex
m_mutex;
53
bool
expectClosure;
54
};
55
56
QT_END_NAMESPACE
57
58
#endif
// INPUTSTREAMTHREAD_H
InputStreamThread
Definition
inputstreamthread_p.h:30
InputStreamThread::errorOccurred
void errorOccurred(int errorCode)
InputStreamThread::javaThreadErrorOccurred
void javaThreadErrorOccurred(int errorCode)
Definition
inputstreamthread.cpp:62
InputStreamThread::dataAvailable
void dataAvailable()
InputStreamThread::prepareForClosure
void prepareForClosure()
Definition
inputstreamthread.cpp:83
InputStreamThread::bytesAvailable
qint64 bytesAvailable() const
Definition
inputstreamthread.cpp:39
InputStreamThread::InputStreamThread
InputStreamThread(QBluetoothSocketPrivateAndroid *socket_p)
Definition
inputstreamthread.cpp:16
InputStreamThread::run
bool run()
Definition
inputstreamthread.cpp:21
InputStreamThread::javaReadyRead
void javaReadyRead(jbyteArray buffer, int bufferLength)
Definition
inputstreamthread.cpp:73
InputStreamThread::canReadLine
bool canReadLine() const
Definition
inputstreamthread.cpp:45
QBluetoothSocketPrivateAndroid
Definition
qbluetoothsocket_android_p.h:29
QJniObject
\inmodule QtCore
QMutex
\inmodule QtCore
Definition
qmutex.h:281
QObject
\inmodule QtCore
Definition
qobject.h:103
jni.h
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
data
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
Definition
qopengles2ext.h:206
buffer
GLenum GLuint buffer
Definition
qopengles2ext.h:659
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
signals
#define signals
Definition
qtmetamacros.h:41
qint64
long long qint64
Definition
qtypes.h:60
readData
QByteArray readData()
Definition
src_corelib_thread_qreadwritelock.cpp:30
qtconnectivity
src
bluetooth
android
inputstreamthread_p.h
Generated by
1.10.0