4#ifndef QBLUETOOTHSERVICEDISCOVERYAGENT_P_H
5#define QBLUETOOTHSERVICEDISCOVERYAGENT_P_H
37#include <QtCore/qprocess.h>
45#ifdef QT_WINRT_BLUETOOTH
46#include <QtCore/QPointer>
49#ifdef QT_OSX_BLUETOOTH
50#include "darwin/btdelegates_p.h"
51#include "darwin/btraii_p.h"
54#ifdef QT_ANDROID_BLUETOOTH
55#include <QtCore/QJniObject>
56#include <QtBluetooth/QBluetoothLocalDevice>
61class QBluetoothDeviceDiscoveryAgent;
62#ifdef QT_ANDROID_BLUETOOTH
63class ServiceDiscoveryBroadcastReceiver;
64class LocalDeviceBroadcastReceiver;
67#ifdef QT_WINRT_BLUETOOTH
68class QWinRTBluetoothServiceDiscoveryWorker;
72#if defined(QT_WINRT_BLUETOOTH)
76#elif defined(QT_OSX_BLUETOOTH)
82 Q_DECLARE_PUBLIC(QBluetoothServiceDiscoveryAgent)
92 const QBluetoothAddress &deviceAdapter);
116#ifdef QT_ANDROID_BLUETOOTH
126 void start(
const QBluetoothAddress &address);
128 bool isDuplicatedService(
const QBluetoothServiceInfo &serviceInfo)
const;
149 DiscoveryState state;
150 QList<QBluetoothUuid> uuidFilter;
152 QBluetoothDeviceDiscoveryAgent *deviceDiscoveryAgent =
nullptr;
163#ifdef QT_ANDROID_BLUETOOTH
177#ifdef QT_WINRT_BLUETOOTH
188#ifdef QT_OSX_BLUETOOTH
QBluetoothAddress deviceAddress
void _q_deviceDiscovered(const QBluetoothDeviceInfo &info)
void startDeviceDiscovery()
Starts device discovery.
void setDiscoveryState(DiscoveryState s)
~QBluetoothServiceDiscoveryAgentPrivate()
QList< QBluetoothServiceInfo > discoveredServices
void setDiscoveryMode(QBluetoothServiceDiscoveryAgent::DiscoveryMode m)
void _q_serviceDiscoveryFinished()
QBluetoothServiceDiscoveryAgentPrivate(QBluetoothServiceDiscoveryAgent *qp, const QBluetoothAddress &deviceAdapter)
QBluetoothServiceDiscoveryAgent * q_ptr
DiscoveryState discoveryState()
QList< QBluetoothDeviceInfo > discoveredDevices
void stopDeviceDiscovery()
Stops device discovery.
void startServiceDiscovery()
Starts service discovery for the next device.
void stopServiceDiscovery()
Stops service discovery.
QBluetoothAddress m_deviceAdapterAddress
void _q_deviceDiscoveryError(QBluetoothDeviceDiscoveryAgent::Error)
void qt_test_iobluetooth_runloop()