qbluetoothserviceinfo.sip 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // qbluetoothserviceinfo.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 QBluetoothServiceInfo
  23. {
  24. %TypeHeaderCode
  25. #include <qbluetoothserviceinfo.h>
  26. %End
  27. public:
  28. enum AttributeId
  29. {
  30. ServiceRecordHandle,
  31. ServiceClassIds,
  32. ServiceRecordState,
  33. ServiceId,
  34. ProtocolDescriptorList,
  35. BrowseGroupList,
  36. LanguageBaseAttributeIdList,
  37. ServiceInfoTimeToLive,
  38. ServiceAvailability,
  39. BluetoothProfileDescriptorList,
  40. DocumentationUrl,
  41. ClientExecutableUrl,
  42. IconUrl,
  43. AdditionalProtocolDescriptorList,
  44. PrimaryLanguageBase,
  45. ServiceName,
  46. ServiceDescription,
  47. ServiceProvider,
  48. };
  49. enum Protocol
  50. {
  51. UnknownProtocol,
  52. L2capProtocol,
  53. RfcommProtocol,
  54. };
  55. QBluetoothServiceInfo();
  56. QBluetoothServiceInfo(const QBluetoothServiceInfo &other);
  57. ~QBluetoothServiceInfo();
  58. bool isValid() const;
  59. bool isComplete() const;
  60. void setDevice(const QBluetoothDeviceInfo &info);
  61. QBluetoothDeviceInfo device() const;
  62. QVariant attribute(quint16 attributeId) const;
  63. QList<unsigned short> attributes() const;
  64. bool contains(quint16 attributeId) const;
  65. void removeAttribute(quint16 attributeId);
  66. QBluetoothServiceInfo::Protocol socketProtocol() const;
  67. int protocolServiceMultiplexer() const;
  68. int serverChannel() const;
  69. QBluetoothServiceInfo::Sequence protocolDescriptor(QBluetoothUuid::ProtocolUuid protocol) const;
  70. bool isRegistered() const;
  71. bool registerService(const QBluetoothAddress &localAdapter = QBluetoothAddress());
  72. bool unregisterService();
  73. void setAttribute(quint16 attributeId, const QBluetoothUuid &value);
  74. void setAttribute(quint16 attributeId, const QBluetoothServiceInfo::Sequence &value);
  75. void setAttribute(quint16 attributeId, const QVariant &value);
  76. void setServiceName(const QString &name);
  77. QString serviceName() const;
  78. void setServiceDescription(const QString &description);
  79. QString serviceDescription() const;
  80. void setServiceProvider(const QString &provider);
  81. QString serviceProvider() const;
  82. void setServiceAvailability(quint8 availability);
  83. quint8 serviceAvailability() const;
  84. void setServiceUuid(const QBluetoothUuid &uuid);
  85. QBluetoothUuid serviceUuid() const;
  86. QList<QBluetoothUuid> serviceClassUuids() const;
  87. };
  88. %End