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_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
18
#
include
"qbluetoothsocketbase_p.h"
19
20
QT_BEGIN_NAMESPACE
21
22
class
QBluetoothSocketPrivateBluez
final
:
public
QBluetoothSocketBasePrivate
23
{
24
Q_OBJECT
25
26
public
:
27
explicit
QBluetoothSocketPrivateBluez
(
QBluetoothSocket
*
qq
);
28
~
QBluetoothSocketPrivateBluez
()
override
;
29
30
void
connectToServiceHelper
(
const
QBluetoothAddress &address,
31
quint16 port,
32
QIODevice::OpenMode openMode)
override
;
33
34
void
connectToService
(
const
QBluetoothServiceInfo &service,
35
QIODevice::OpenMode openMode)
override
;
36
void
connectToService
(
const
QBluetoothAddress &address,
const
QBluetoothUuid &uuid,
37
QIODevice::OpenMode openMode)
override
;
38
void
connectToService
(
const
QBluetoothAddress &address, quint16 port,
39
QIODevice::OpenMode openMode)
override
;
40
41
bool
ensureNativeSocket
(QBluetoothServiceInfo::Protocol type)
override
;
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
57
bool
setSocketDescriptor
(
int
socketDescriptor, QBluetoothServiceInfo::Protocol socketType,
58
QBluetoothSocket::SocketState socketState =
QBluetoothSocket
::
SocketState
::
ConnectedState
,
59
QBluetoothSocket::OpenMode openMode =
QBluetoothSocket
::
ReadWrite
)
override
;
60
61
qint64
bytesAvailable
()
const
override
;
62
bool
canReadLine
()
const
override
;
63
qint64
bytesToWrite
()
const
override
;
64
65
private
slots
:
66
void
_q_readNotify
();
67
void
_q_writeNotify();
68
};
69
70
QT_END_NAMESPACE
71
72
#
endif
// QBLUETOOTHSOCKET_BLUEZ_H
BT_SECURITY_LOW
#define BT_SECURITY_LOW
Definition
bluez_data_p.h:60
BT_SECURITY
#define BT_SECURITY
Definition
bluez_data_p.h:54
SOL_BLUETOOTH
#define SOL_BLUETOOTH
Definition
bluez_data_p.h:38
BT_SECURITY_MEDIUM
#define BT_SECURITY_MEDIUM
Definition
bluez_data_p.h:61
BT_SECURITY_HIGH
#define BT_SECURITY_HIGH
Definition
bluez_data_p.h:62
QBluetoothServerPrivate
Definition
qbluetoothserver_p.h:69
QBluetoothServerPrivate::q_ptr
QBluetoothServer * q_ptr
Definition
qbluetoothserver_p.h:92
QBluetoothServerPrivate::~QBluetoothServerPrivate
~QBluetoothServerPrivate()
Definition
qbluetoothserver_android.cpp:30
QBluetoothServerPrivate::socket
QBluetoothSocket * socket
Definition
qbluetoothserver_p.h:85
QBluetoothSocketPrivateBluez::localName
QString localName() const override
Definition
qbluetoothsocket_bluez.cpp:387
QBluetoothSocketPrivateBluez::writeData
qint64 writeData(const char *data, qint64 maxSize) override
Definition
qbluetoothsocket_bluez.cpp:527
QBluetoothSocketPrivateBluez::QBluetoothSocketPrivateBluez
QBluetoothSocketPrivateBluez(QBluetoothSocket *qq)
Definition
qbluetoothsocket_bluez.cpp:29
QBluetoothSocketPrivateBluez::ensureNativeSocket
bool ensureNativeSocket(QBluetoothServiceInfo::Protocol type) override
Definition
qbluetoothsocket_bluez.cpp:47
QBluetoothSocketPrivateBluez::close
void close() override
Definition
qbluetoothsocket_bluez.cpp:588
QBluetoothSocketPrivateBluez::localPort
quint16 localPort() const override
Definition
qbluetoothsocket_bluez.cpp:416
QBluetoothSocketPrivateBluez::bytesAvailable
qint64 bytesAvailable() const override
Definition
qbluetoothsocket_bluez.cpp:629
QBluetoothSocketPrivateBluez::peerAddress
QBluetoothAddress peerAddress() const override
Definition
qbluetoothsocket_bluez.cpp:489
QBluetoothSocketPrivateBluez::readData
qint64 readData(char *data, qint64 maxSize) override
Definition
qbluetoothsocket_bluez.cpp:572
QBluetoothSocketPrivateBluez::connectToService
void connectToService(const QBluetoothAddress &address, const QBluetoothUuid &uuid, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluez.cpp:231
QBluetoothSocketPrivateBluez::peerName
QString peerName() const override
Definition
qbluetoothsocket_bluez.cpp:435
QBluetoothSocketPrivateBluez::connectToService
void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluez.cpp:177
QBluetoothSocketPrivateBluez::canReadLine
bool canReadLine() const override
Definition
qbluetoothsocket_bluez.cpp:639
QBluetoothSocketPrivateBluez::abort
void abort() override
Definition
qbluetoothsocket_bluez.cpp:367
QBluetoothSocketPrivateBluez::~QBluetoothSocketPrivateBluez
~QBluetoothSocketPrivateBluez() override
Definition
qbluetoothsocket_bluez.cpp:35
QBluetoothSocketPrivateBluez::localAddress
QBluetoothAddress localAddress() const override
Definition
qbluetoothsocket_bluez.cpp:397
QBluetoothSocketPrivateBluez::connectToService
void connectToService(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluez.cpp:259
QBluetoothSocketPrivateBluez::bytesToWrite
qint64 bytesToWrite() const override
Definition
qbluetoothsocket_bluez.cpp:634
QBluetoothSocketPrivateBluez::setSocketDescriptor
bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite) override
Definition
qbluetoothsocket_bluez.cpp:598
QBluetoothSocketPrivateBluez::connectToServiceHelper
void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluez.cpp:92
QBluetoothSocketPrivateBluez::peerPort
quint16 peerPort() const override
Definition
qbluetoothsocket_bluez.cpp:508
QBluetooth
\inmodule QtBluetooth
Definition
qbluetooth.h:14
QBluetooth::Security
Security
Definition
qbluetooth.h:19
QBluetooth::Security::Secure
@ Secure
Definition
qbluetooth.h:24
QBluetooth::Security::NoSecurity
@ NoSecurity
Definition
qbluetooth.h:20
QBluetooth::Security::Authorization
@ Authorization
Definition
qbluetooth.h:21
QBluetooth::Security::Encryption
@ Encryption
Definition
qbluetooth.h:23
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
qtconnectivity
src
bluetooth
qbluetoothsocket_bluez_p.h
Generated on
for Qt by
1.18.0