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
qbluetoothsocket_bluez_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
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 QBLUETOOTHSOCKET_BLUEZ_H
5#define QBLUETOOTHSOCKET_BLUEZ_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
21
23{
25
26public:
29
32 QIODevice::OpenMode openMode) override;
33
34 void connectToService(const QBluetoothServiceInfo &service,
35 QIODevice::OpenMode openMode) override;
37 QIODevice::OpenMode openMode) override;
39 QIODevice::OpenMode openMode) override;
40
42
43 QString localName() const override;
44 QBluetoothAddress localAddress() const override;
45 quint16 localPort() const override;
46
47 QString peerName() const override;
48 QBluetoothAddress peerAddress() const override;
49 quint16 peerPort() const override;
50
51 void abort() override;
52 void close() override;
53
54 qint64 writeData(const char *data, qint64 maxSize) override;
55 qint64 readData(char *data, qint64 maxSize) override;
56
59 QBluetoothSocket::OpenMode openMode = QBluetoothSocket::ReadWrite) override;
60
61 qint64 bytesAvailable() const override;
62 bool canReadLine() const override;
63 qint64 bytesToWrite() const override;
64
65private slots:
66 void _q_readNotify();
67 void _q_writeNotify();
68};
69
71
72#endif // QBLUETOOTHSOCKET_BLUEZ_H
\inmodule QtBluetooth
\inmodule QtBluetooth
Protocol
This enum describes the socket protocol used by the service.
QBluetoothSocket::OpenMode openMode
QBluetoothServiceInfo::Protocol socketType
qint64 writeData(const char *data, qint64 maxSize) override
bool ensureNativeSocket(QBluetoothServiceInfo::Protocol type) override
QBluetoothAddress peerAddress() const override
void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode) override
QBluetoothAddress localAddress() const override
bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite) override
void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
SocketState
This enum describes the state of the Bluetooth socket.
\inmodule QtBluetooth
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
EGLOutputPortEXT port
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum type
GLuint GLuint64EXT address
#define Q_OBJECT
#define slots
unsigned short quint16
Definition qtypes.h:48
long long qint64
Definition qtypes.h:60
QByteArray readData()