summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/android/inputstreamthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/android/inputstreamthread.cpp')
-rw-r--r--src/bluetooth/android/inputstreamthread.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bluetooth/android/inputstreamthread.cpp b/src/bluetooth/android/inputstreamthread.cpp
index 5d20d5ed..2bdce684 100644
--- a/src/bluetooth/android/inputstreamthread.cpp
+++ b/src/bluetooth/android/inputstreamthread.cpp
@@ -74,21 +74,21 @@ bool InputStreamThread::run()
qint64 InputStreamThread::bytesAvailable() const
{
QMutexLocker locker(&m_mutex);
- return m_socket_p->buffer.size();
+ return m_socket_p->rxBuffer.size();
}
bool InputStreamThread::canReadLine() const
{
QMutexLocker locker(&m_mutex);
- return m_socket_p->buffer.canReadLine();
+ return m_socket_p->rxBuffer.canReadLine();
}
qint64 InputStreamThread::readData(char *data, qint64 maxSize)
{
QMutexLocker locker(&m_mutex);
- if (!m_socket_p->buffer.isEmpty())
- return m_socket_p->buffer.read(data, maxSize);
+ if (!m_socket_p->rxBuffer.isEmpty())
+ return m_socket_p->rxBuffer.read(data, maxSize);
return 0;
}
@@ -110,7 +110,7 @@ void InputStreamThread::javaReadyRead(jbyteArray buffer, int bufferLength)
QJniEnvironment env;
QMutexLocker lock(&m_mutex);
- char *writePtr = m_socket_p->buffer.reserve(bufferLength);
+ char *writePtr = m_socket_p->rxBuffer.reserve(bufferLength);
env->GetByteArrayRegion(buffer, 0, bufferLength, reinterpret_cast<jbyte*>(writePtr));
emit dataAvailable();
}