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
qbluetoothlocaldevice_p.cpp
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
5#include "qbluetoothaddress.h"
6
8#ifndef QT_IOS_BLUETOOTH
10#endif
11
13
15 QObject(parent),
17{
18#if !defined(QT_IOS_BLUETOOTH)
20#endif
22}
23
25 QObject(parent),
27{
29}
30
32{
33 return QString();
34}
35
37{
38 return QBluetoothAddress();
39}
40
42{
43}
44
46{
48}
49
51{
52 return HostPoweredOff;
53}
54
55QList<QBluetoothAddress> QBluetoothLocalDevice::connectedDevices() const
56{
57 return QList<QBluetoothAddress>();
58}
59
60QList<QBluetoothHostInfo> QBluetoothLocalDevice::allDevices()
61{
62 QList<QBluetoothHostInfo> localDevices;
63 return localDevices;
64}
65
67{
69 Q_UNUSED(pairing);
73}
74
76 const QBluetoothAddress &address) const
77{
79 return Unpaired;
80}
81
\inmodule QtBluetooth
void powerOn()
Powers on the device after returning it to the hostMode() state, if it was powered off.
Pairing
This enum describes the pairing state between the two Bluetooth devices.
void requestPairing(const QBluetoothAddress &address, Pairing pairing)
Set the pairing status with address.
HostMode
This enum describes the most of the local Bluetooth device.
HostMode hostMode() const
Returns the current host mode of this local Bluetooth device.
Error
This enum describes errors that maybe returned.
QList< QBluetoothAddress > connectedDevices() const
QBluetoothLocalDevice(QObject *parent=nullptr)
Constructs a QBluetoothLocalDevice with parent.
QString name() const
Returns the name assgined by the user to this Bluetooth device.
static QList< QBluetoothHostInfo > allDevices()
Returns a list of all available local Bluetooth devices.
Pairing pairingStatus(const QBluetoothAddress &address) const
Returns the current bluetooth pairing status of address, if it's unpaired, paired,...
QBluetoothAddress address() const
Returns the MAC address of this Bluetooth device.
void setHostMode(QBluetoothLocalDevice::HostMode mode)
Sets the host mode of this local Bluetooth device to mode.
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
#define this
Definition dialogs.cpp:9
QT_BEGIN_NAMESPACE void printDummyWarning()
Combined button and popup list for selecting options.
@ QueuedConnection
void registerQBluetoothLocalDeviceMetaType()
#define Q_ARG(Type, data)
Definition qobjectdefs.h:63
GLenum mode
GLuint GLuint64EXT address
#define Q_UNUSED(x)
static bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
\threadsafe This is an overloaded member function, provided for convenience. It differs from the abov...