28 Q_DECLARE_PRIVATE(QBluetoothServiceDiscoveryAgent)
32 NoError = QBluetoothDeviceDiscoveryAgent::NoError,
33 InputOutputError = QBluetoothDeviceDiscoveryAgent::InputOutputError,
34 PoweredOffError = QBluetoothDeviceDiscoveryAgent::PoweredOffError,
35 InvalidBluetoothAdapterError = QBluetoothDeviceDiscoveryAgent::InvalidBluetoothAdapterError,
36 MissingPermissionsError = QBluetoothDeviceDiscoveryAgent::MissingPermissionsError,
37 UnknownError = QBluetoothDeviceDiscoveryAgent::UnknownError
49 explicit QBluetoothServiceDiscoveryAgent(QObject *parent =
nullptr);
50 explicit QBluetoothServiceDiscoveryAgent(
const QBluetoothAddress &deviceAdapter, QObject *parent =
nullptr);
51 ~QBluetoothServiceDiscoveryAgent();
53 bool isActive()
const;
56 QString errorString()
const;
58 QList<QBluetoothServiceInfo> discoveredServices()
const;
60 void setUuidFilter(
const QList<QBluetoothUuid> &uuids);
61 void setUuidFilter(
const QBluetoothUuid &uuid);
62 QList<QBluetoothUuid> uuidFilter()
const;
63 bool setRemoteAddress(
const QBluetoothAddress &address);
64 QBluetoothAddress remoteAddress()
const;
67 void start(DiscoveryMode mode = MinimalDiscovery);
72 void serviceDiscovered(
const QBluetoothServiceInfo &info);
75 void errorOccurred(QBluetoothServiceDiscoveryAgent::Error error);
78 QBluetoothServiceDiscoveryAgentPrivate *d_ptr;