7#include <QtCore/qloggingcategory.h>
187 if (!deviceAdapter.isNull()) {
190 if (hostInfo.address() == deviceAdapter)
194 d_ptr->errorString =
tr(
"Invalid Bluetooth adapter address");
212 return d->discoveredDevices;
241 qCDebug(QT_BT) <<
"The Bluetooth Low Energy device discovery timeout cannot be negative.";
245 if (
d->lowEnergySearchTimeout < 0) {
246 qCDebug(QT_BT) <<
"The Bluetooth Low Energy device discovery timeout cannot be "
247 "set on a backend which does not support this feature.";
251 d->lowEnergySearchTimeout =
timeout;
266 return d->lowEnergySearchTimeout;
315 DiscoveryMethods supported =
321 d->errorString = QBluetoothDeviceDiscoveryAgent::tr(
"One or more device discovery methods "
322 "are not supported on this platform");
347 return d->isActive();
370 return d->errorString;
375#include "moc_qbluetoothdevicediscoveryagent.cpp"
static JNINativeMethod methods[]
static DiscoveryMethods supportedDiscoveryMethods()
This function returns the discovery methods supported by the current platform.
void errorOccurred(QBluetoothDeviceDiscoveryAgent::Error error)
This signal is emitted when an error occurs during Bluetooth device discovery.
int lowEnergyDiscoveryTimeout() const
Returns a timeout in milliseconds that is applied to the Bluetooth Low Energy device search.
void setLowEnergyDiscoveryTimeout(int msTimeout)
Sets the maximum search time for Bluetooth Low Energy device search to timeout in milliseconds.
QString errorString() const
Returns a human-readable description of the last error.
~QBluetoothDeviceDiscoveryAgent()
Destructor for ~QBluetoothDeviceDiscoveryAgent()
void start()
Starts Bluetooth device discovery, if it is not already started.
QList< QBluetoothDeviceInfo > discoveredDevices() const
Returns a list of all discovered Bluetooth devices.
bool isActive() const
Returns true if the agent is currently discovering Bluetooth devices, otherwise returns false.
Error error() const
Returns the last error.
QBluetoothDeviceDiscoveryAgent(QObject *parent=nullptr)
Constructs a new Bluetooth device discovery agent with parent parent.
void stop()
Stops Bluetooth device discovery.
Error
Indicates all possible error conditions found during Bluetooth device discovery.
@ InvalidBluetoothAdapterError
@ UnsupportedDiscoveryMethod
static QList< QBluetoothHostInfo > allDevices()
Returns a list of all available local Bluetooth devices.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLbitfield GLuint64 timeout
[4]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent