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_bluezdbus_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_BLUEZDBUS_H
5
#
define
QBLUETOOTHSOCKET_BLUEZDBUS_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
#
include
<
QtDBus
/
qdbusunixfiledescriptor
.
h
>
21
22
#
include
<
QtNetwork
/
qlocalsocket
.
h
>
23
#
include
<
QDBusPendingCallWatcher
>
24
25
namespace
QtBluetoothPrivate
{
26
27
class
OrgBluezProfileManager1Interface
;
28
29
}
// namespace QtBluetoothPrivate
30
31
QT_BEGIN_NAMESPACE
32
33
class
QLocalSocket;
34
class
OrgBluezProfile1ContextInterface;
35
36
class
QBluetoothSocketPrivateBluezDBus
final
:
public
QBluetoothSocketBasePrivate
37
{
38
Q_OBJECT
39
40
public
:
41
explicit
QBluetoothSocketPrivateBluezDBus
(
QBluetoothSocket
*
qq
);
42
~
QBluetoothSocketPrivateBluezDBus
()
override
;
43
44
void
connectToServiceHelper
(
const
QBluetoothAddress &address,
45
quint16 port,
46
QIODevice::OpenMode openMode)
override
;
47
void
connectToServiceHelper
(
const
QBluetoothAddress &address,
48
const
QBluetoothUuid &uuid,
49
QIODevice::OpenMode openMode);
50
51
void
connectToService
(
const
QBluetoothServiceInfo &service,
52
QIODevice::OpenMode openMode)
override
;
53
void
connectToService
(
const
QBluetoothAddress &address,
const
QBluetoothUuid &uuid,
54
QIODevice::OpenMode openMode)
override
;
55
void
connectToService
(
const
QBluetoothAddress &address, quint16 port,
56
QIODevice::OpenMode openMode)
override
;
57
58
bool
ensureNativeSocket
(QBluetoothServiceInfo::Protocol type)
override
;
59
60
QString
localName
()
const
override
;
61
QBluetoothAddress
localAddress
()
const
override
;
62
quint16
localPort
()
const
override
;
63
64
QString
peerName
()
const
override
;
65
QBluetoothAddress
peerAddress
()
const
override
;
66
quint16
peerPort
()
const
override
;
67
68
void
abort
()
override
;
69
void
close
()
override
;
70
71
qint64
writeData
(
const
char
*data, qint64 maxSize)
override
;
72
qint64
readData
(
char
*data, qint64 maxSize)
override
;
73
74
bool
setSocketDescriptor
(
int
socketDescriptor, QBluetoothServiceInfo::Protocol socketType,
75
QBluetoothSocket::SocketState socketState =
QBluetoothSocket
::
SocketState
::
ConnectedState
,
76
QBluetoothSocket::OpenMode openMode =
QBluetoothSocket
::
ReadWrite
)
override
;
77
78
qint64
bytesAvailable
()
const
override
;
79
bool
canReadLine
()
const
override
;
80
qint64
bytesToWrite
()
const
override
;
81
82
public
slots
:
83
void
connectToServiceReplyHandler
(
QDBusPendingCallWatcher
*);
84
85
private
:
86
void
remoteConnected(
const
QDBusUnixFileDescriptor &fd);
87
void
socketStateChanged(QLocalSocket::LocalSocketState newState);
88
89
void
clearSocket();
90
91
private
:
92
QtBluetoothPrivate
::
OrgBluezProfileManager1Interface
*profileManager =
nullptr
;
93
OrgBluezProfile1ContextInterface *profileContext =
nullptr
;
94
QString remoteDevicePath;
95
QString profileUuid;
96
QString profilePath;
97
QLocalSocket *localSocket =
nullptr
;
98
};
99
100
QT_END_NAMESPACE
101
102
#
endif
// QBLUETOOTHSOCKET_BLUEZDBUS_H
ManagedObjectList
QMap< QDBusObjectPath, InterfaceList > ManagedObjectList
Definition
bluez5_helper_p.h:25
QBluetoothSocketPrivateBluezDBus::peerPort
quint16 peerPort() const override
Definition
qbluetoothsocket_bluezdbus.cpp:420
QBluetoothSocketPrivateBluezDBus::readData
qint64 readData(char *data, qint64 maxSize) override
Definition
qbluetoothsocket_bluezdbus.cpp:465
QBluetoothSocketPrivateBluezDBus::bytesAvailable
qint64 bytesAvailable() const override
Definition
qbluetoothsocket_bluezdbus.cpp:499
QBluetoothSocketPrivateBluezDBus::~QBluetoothSocketPrivateBluezDBus
~QBluetoothSocketPrivateBluezDBus() override
Definition
qbluetoothsocket_bluezdbus.cpp:39
QBluetoothSocketPrivateBluezDBus::localPort
quint16 localPort() const override
Definition
qbluetoothsocket_bluezdbus.cpp:374
QBluetoothSocketPrivateBluezDBus::canReadLine
bool canReadLine() const override
Definition
qbluetoothsocket_bluezdbus.cpp:507
QBluetoothSocketPrivateBluezDBus::connectToService
void connectToService(const QBluetoothAddress &address, const QBluetoothUuid &uuid, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluezdbus.cpp:278
QBluetoothSocketPrivateBluezDBus::close
void close() override
Definition
qbluetoothsocket_bluezdbus.cpp:484
QBluetoothSocketPrivateBluezDBus::connectToService
void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluezdbus.cpp:250
QBluetoothSocketPrivateBluezDBus::QBluetoothSocketPrivateBluezDBus
QBluetoothSocketPrivateBluezDBus(QBluetoothSocket *qq)
Definition
qbluetoothsocket_bluezdbus.cpp:33
QBluetoothSocketPrivateBluezDBus::connectToServiceHelper
void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluezdbus.cpp:57
QBluetoothSocketPrivateBluezDBus::connectToServiceHelper
void connectToServiceHelper(const QBluetoothAddress &address, const QBluetoothUuid &uuid, QIODevice::OpenMode openMode)
Definition
qbluetoothsocket_bluezdbus.cpp:112
QBluetoothSocketPrivateBluezDBus::peerAddress
QBluetoothAddress peerAddress() const override
Definition
qbluetoothsocket_bluezdbus.cpp:410
QBluetoothSocketPrivateBluezDBus::bytesToWrite
qint64 bytesToWrite() const override
Definition
qbluetoothsocket_bluezdbus.cpp:515
QBluetoothSocketPrivateBluezDBus::peerName
QString peerName() const override
Definition
qbluetoothsocket_bluezdbus.cpp:400
QBluetoothSocketPrivateBluezDBus::localAddress
QBluetoothAddress localAddress() const override
Definition
qbluetoothsocket_bluezdbus.cpp:362
QBluetoothSocketPrivateBluezDBus::writeData
qint64 writeData(const char *data, qint64 maxSize) override
Definition
qbluetoothsocket_bluezdbus.cpp:446
QBluetoothSocketPrivateBluezDBus::setSocketDescriptor
bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite) override
Definition
qbluetoothsocket_bluezdbus.cpp:489
QBluetoothSocketPrivateBluezDBus::ensureNativeSocket
bool ensureNativeSocket(QBluetoothServiceInfo::Protocol type) override
Definition
qbluetoothsocket_bluezdbus.cpp:43
QBluetoothSocketPrivateBluezDBus::abort
void abort() override
Definition
qbluetoothsocket_bluezdbus.cpp:335
QBluetoothSocketPrivateBluezDBus::localName
QString localName() const override
Definition
qbluetoothsocket_bluezdbus.cpp:350
QBluetoothSocketPrivateBluezDBus::connectToService
void connectToService(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
Definition
qbluetoothsocket_bluezdbus.cpp:321
QBluetoothSocket
\inmodule QtBluetooth
Definition
qbluetoothsocket.h:22
QtBluetoothPrivate::OrgBluezAdapter1Interface
Definition
adapter1_bluez5_p.h:41
QtBluetoothPrivate::OrgBluezDevice1Interface
Definition
device1_bluez5_p.h:42
QtBluetoothPrivate::OrgBluezProfileManager1Interface
Definition
profilemanager1_p.h:41
QtBluetoothPrivate::OrgFreedesktopDBusObjectManagerInterface
Definition
objectmanager_p.h:42
QtBluetoothPrivate
Definition
adapter1_bluez5.cpp:14
findRemoteDevicePath
static QString findRemoteDevicePath(const QBluetoothAddress &address)
Definition
qbluetoothsocket_bluezdbus.cpp:67
sockaddr_l2
Definition
bluez_data_p.h:104
sockaddr_l2::l2_psm
unsigned short l2_psm
Definition
bluez_data_p.h:106
sockaddr_rc
Definition
bluez_data_p.h:115
qtconnectivity
src
bluetooth
qbluetoothsocket_bluezdbus_p.h
Generated on
for Qt by
1.18.0