Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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"
19
#
include
"qbluetoothsocketbase_p.h"
20
#
include
<
QtGlobal
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QBluetoothSocketPrivateDummy
final
:
public
QBluetoothSocketBasePrivate
25
{
26
Q_OBJECT
27
friend
class
QBluetoothServerPrivate
;
28
29
public
:
30
explicit
QBluetoothSocketPrivateDummy
(QBluetoothSocket *qq);
31
~
QBluetoothSocketPrivateDummy
()
override
;
32
33
void
connectToServiceHelper
(
const
QBluetoothAddress &address,
34
quint16 port,
35
QIODevice::OpenMode openMode)
override
;
36
37
void
connectToService
(
const
QBluetoothServiceInfo &service,
38
QIODevice::OpenMode openMode)
override
;
39
void
connectToService
(
const
QBluetoothAddress &address,
const
QBluetoothUuid &uuid,
40
QIODevice::OpenMode openMode)
override
;
41
void
connectToService
(
const
QBluetoothAddress &address, quint16 port,
42
QIODevice::OpenMode openMode)
override
;
43
44
bool
ensureNativeSocket
(QBluetoothServiceInfo::Protocol type)
override
;
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
60
bool
setSocketDescriptor
(
int
socketDescriptor, QBluetoothServiceInfo::Protocol socketType,
61
QBluetoothSocket::SocketState socketState =
QBluetoothSocket
::
SocketState
::
ConnectedState
,
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
69
QT_END_NAMESPACE
70
71
#
endif
// QBLUETOOTHSOCKET_DUMMY_H
QBluetoothSocketPrivateDummy::peerName
QString peerName() const override
Definition
qbluetoothsocket_dummy.cpp:98
QBluetoothSocketPrivateDummy::~QBluetoothSocketPrivateDummy
~QBluetoothSocketPrivateDummy() override
Definition
qbluetoothsocket_dummy.cpp:21
QBluetoothSocketPrivateDummy::localAddress
QBluetoothAddress localAddress() const override
Definition
qbluetoothsocket_dummy.cpp:88
QBluetoothSocketPrivateDummy::close
void close() override
Definition
qbluetoothsocket_dummy.cpp:144
QBluetoothSocketPrivateDummy::abort
void abort() override
Definition
qbluetoothsocket_dummy.cpp:79
QBluetoothSocketPrivateDummy::connectToService
void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_dummy.cpp:38
QBluetoothSocketPrivateDummy::connectToServiceHelper
void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_dummy.cpp:31
QBluetoothSocketPrivateDummy::canReadLine
bool canReadLine() const override
Definition
qbluetoothsocket_dummy.cpp:163
QBluetoothSocketPrivateDummy::bytesAvailable
qint64 bytesAvailable() const override
Definition
qbluetoothsocket_dummy.cpp:158
QBluetoothSocketPrivateDummy::QBluetoothServerPrivate
friend class QBluetoothServerPrivate
Definition
qbluetoothsocket_dummy_p.h:27
QBluetoothSocketPrivateDummy::peerAddress
QBluetoothAddress peerAddress() const override
Definition
qbluetoothsocket_dummy.cpp:103
QBluetoothSocketPrivateDummy::connectToService
void connectToService(const QBluetoothAddress &address, const QBluetoothUuid &uuid, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_dummy.cpp:51
QBluetoothSocketPrivateDummy::writeData
qint64 writeData(const char *data, qint64 maxSize) override
Definition
qbluetoothsocket_dummy.cpp:113
QBluetoothSocketPrivateDummy::peerPort
quint16 peerPort() const override
Definition
qbluetoothsocket_dummy.cpp:108
QBluetoothSocketPrivateDummy::setSocketDescriptor
bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite) override
Definition
qbluetoothsocket_dummy.cpp:148
QBluetoothSocketPrivateDummy::QBluetoothSocketPrivateDummy
QBluetoothSocketPrivateDummy(QBluetoothSocket *qq)
Definition
qbluetoothsocket_dummy.cpp:12
QBluetoothSocketPrivateDummy::localPort
quint16 localPort() const override
Definition
qbluetoothsocket_dummy.cpp:93
QBluetoothSocketPrivateDummy::ensureNativeSocket
bool ensureNativeSocket(QBluetoothServiceInfo::Protocol type) override
Definition
qbluetoothsocket_dummy.cpp:25
QBluetoothSocketPrivateDummy::connectToService
void connectToService(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_dummy.cpp:65
QBluetoothSocketPrivateDummy::readData
qint64 readData(char *data, qint64 maxSize) override
Definition
qbluetoothsocket_dummy.cpp:128
QBluetoothSocketPrivateDummy::localName
QString localName() const override
Definition
qbluetoothsocket_dummy.cpp:83
QBluetoothSocketPrivateDummy::bytesToWrite
qint64 bytesToWrite() const override
Definition
qbluetoothsocket_dummy.cpp:168
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtconnectivity
src
bluetooth
qbluetoothsocket_dummy_p.h
Generated on
for Qt by
1.18.0