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_dummy_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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_DUMMY_H
5#define QBLUETOOTHSOCKET_DUMMY_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
18#include "qbluetoothsocket.h"
20#include <QtGlobal>
21
23
25{
28
29public:
32
35 QIODevice::OpenMode openMode) override;
36
37 void connectToService(const QBluetoothServiceInfo &service,
38 QIODevice::OpenMode openMode) override;
40 QIODevice::OpenMode openMode) override;
42 QIODevice::OpenMode openMode) override;
43
45
46 QString localName() const override;
47 QBluetoothAddress localAddress() const override;
48 quint16 localPort() const override;
49
50 QString peerName() const override;
51 QBluetoothAddress peerAddress() const override;
52 quint16 peerPort() const override;
53
54 void abort() override;
55 void close() override;
56
57 qint64 writeData(const char *data, qint64 maxSize) override;
58 qint64 readData(char *data, qint64 maxSize) override;
59
62 QBluetoothSocket::OpenMode openMode = QBluetoothSocket::ReadWrite) override;
63
64 qint64 bytesAvailable() const override;
65 bool canReadLine() const override;
66 qint64 bytesToWrite() const override;
67};
68
70
71#endif // QBLUETOOTHSOCKET_DUMMY_H
72
\inmodule QtBluetooth
\inmodule QtBluetooth
Protocol
This enum describes the socket protocol used by the service.
QBluetoothSocket::OpenMode openMode
QBluetoothServiceInfo::Protocol socketType
QBluetoothAddress localAddress() const override
void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode) override
void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
QBluetoothAddress peerAddress() const override
qint64 writeData(const char *data, qint64 maxSize) override
bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite) override
bool ensureNativeSocket(QBluetoothServiceInfo::Protocol type) 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
unsigned short quint16
Definition qtypes.h:48
long long qint64
Definition qtypes.h:60
QByteArray readData()