4#ifndef QBLUETOOTHSOCKETBASEPRIVATE_P_H
5#define QBLUETOOTHSOCKETBASEPRIVATE_P_H
20#include <QtBluetooth/qbluetoothsocket.h>
22#if defined(QT_ANDROID_BLUETOOTH)
23#include <QtCore/QJniObject>
26#if defined(QT_WINRT_BLUETOOTH)
27#include <QtCore/QMutex>
33 namespace Networking {
38 namespace Foundation {
40 enum class AsyncStatus;
46#ifndef QPRIVATELINEARBUFFER_BUFFERSIZE
47#define QPRIVATELINEARBUFFER_BUFFERSIZE Q_INT64_C(16384)
89#if defined(QT_ANDROID_BLUETOOTH)
103#ifdef QT_ANDROID_BLUETOOTH
107#elif defined(QT_WINRT_BLUETOOTH)
137 quint8 lowEnergySocketType = 0;
143 to[0] = (from >> 0) & 0xff;
144 to[1] = (from >> 8) & 0xff;
145 to[2] = (from >> 16) & 0xff;
146 to[3] = (from >> 24) & 0xff;
147 to[4] = (from >> 32) & 0xff;
148 to[5] = (from >> 40) & 0xff;
Protocol
This enum describes the socket protocol used by the service.
virtual QString peerName() const =0
virtual QBluetoothAddress peerAddress() const =0
virtual void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode)=0
virtual bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite)=0
virtual void connectToService(const QBluetoothAddress &address, const QBluetoothUuid &uuid, QIODevice::OpenMode openMode)=0
QBluetoothSocket::OpenMode openMode
virtual qint64 bytesAvailable() const =0
QBluetooth::SecurityFlags secFlags
virtual qint64 bytesToWrite() const =0
QPrivateLinearBuffer rxBuffer
virtual QString localName() const =0
virtual ~QBluetoothSocketBasePrivate()
QBluetoothServiceDiscoveryAgent * discoveryAgent
QBluetoothSocket::SocketError socketError
virtual QBluetoothAddress localAddress() const =0
QSocketNotifier * readNotifier
QBluetoothServiceInfo::Protocol socketType
virtual bool canReadLine() const =0
virtual qint64 readData(char *data, qint64 maxSize)=0
virtual qint64 writeData(const char *data, qint64 maxSize)=0
QSocketNotifier * connectWriteNotifier
QBluetoothSocket::SocketState state
virtual quint16 localPort() const =0
virtual void connectToService(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode)=0
virtual void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode)=0
virtual quint16 peerPort() const =0
QPrivateLinearBuffer txBuffer
virtual bool ensureNativeSocket(QBluetoothServiceInfo::Protocol type)=0
SocketState
This enum describes the state of the Bluetooth socket.
SocketError
This enum describes Bluetooth socket error types.
QObject * parent() const
Returns a pointer to the parent object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static void convertAddress(const quint64 from, quint8(&to)[6])
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLuint64EXT address
unsigned long long quint64