qbluetoothservicediscoveryagent.sip 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // qbluetoothservicediscoveryagent.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtBluetooth Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. %If (Qt_6_2_0 -)
  22. class QBluetoothServiceDiscoveryAgent : public QObject
  23. {
  24. %TypeHeaderCode
  25. #include <qbluetoothservicediscoveryagent.h>
  26. %End
  27. public:
  28. enum Error
  29. {
  30. NoError,
  31. InputOutputError,
  32. PoweredOffError,
  33. InvalidBluetoothAdapterError,
  34. %If (Qt_6_4_0 -)
  35. MissingPermissionsError,
  36. %End
  37. UnknownError,
  38. };
  39. enum DiscoveryMode
  40. {
  41. MinimalDiscovery,
  42. FullDiscovery,
  43. };
  44. explicit QBluetoothServiceDiscoveryAgent(QObject *parent /TransferThis/ = 0);
  45. QBluetoothServiceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent /TransferThis/ = 0);
  46. virtual ~QBluetoothServiceDiscoveryAgent();
  47. bool isActive() const;
  48. QBluetoothServiceDiscoveryAgent::Error error() const;
  49. QString errorString() const;
  50. QList<QBluetoothServiceInfo> discoveredServices() const;
  51. void setUuidFilter(const QList<QBluetoothUuid> &uuids);
  52. void setUuidFilter(const QBluetoothUuid &uuid);
  53. QList<QBluetoothUuid> uuidFilter() const;
  54. bool setRemoteAddress(const QBluetoothAddress &address);
  55. QBluetoothAddress remoteAddress() const;
  56. public slots:
  57. void start(QBluetoothServiceDiscoveryAgent::DiscoveryMode mode = QBluetoothServiceDiscoveryAgent::MinimalDiscovery);
  58. void stop();
  59. void clear();
  60. signals:
  61. void serviceDiscovered(const QBluetoothServiceInfo &info);
  62. void finished();
  63. void canceled();
  64. void errorOccurred(QBluetoothServiceDiscoveryAgent::Error error);
  65. };
  66. %End