qlowenergycharacteristicdata.sip 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // qlowenergycharacteristicdata.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 QLowEnergyCharacteristicData
  23. {
  24. %TypeHeaderCode
  25. #include <qlowenergycharacteristicdata.h>
  26. %End
  27. public:
  28. QLowEnergyCharacteristicData();
  29. QLowEnergyCharacteristicData(const QLowEnergyCharacteristicData &other);
  30. ~QLowEnergyCharacteristicData();
  31. QBluetoothUuid uuid() const;
  32. void setUuid(const QBluetoothUuid &uuid);
  33. QByteArray value() const;
  34. void setValue(const QByteArray &value);
  35. QLowEnergyCharacteristic::PropertyTypes properties() const;
  36. void setProperties(QLowEnergyCharacteristic::PropertyTypes properties);
  37. QList<QLowEnergyDescriptorData> descriptors() const;
  38. void setDescriptors(const QList<QLowEnergyDescriptorData> &descriptors);
  39. void addDescriptor(const QLowEnergyDescriptorData &descriptor);
  40. void setReadConstraints(QBluetooth::AttAccessConstraints constraints);
  41. QBluetooth::AttAccessConstraints readConstraints() const;
  42. void setWriteConstraints(QBluetooth::AttAccessConstraints constraints);
  43. QBluetooth::AttAccessConstraints writeConstraints() const;
  44. void setValueLength(int minimum, int maximum);
  45. int minimumValueLength() const;
  46. int maximumValueLength() const;
  47. bool isValid() const;
  48. void swap(QLowEnergyCharacteristicData &other);
  49. };
  50. %End
  51. %If (Qt_6_2_0 -)
  52. bool operator==(const QLowEnergyCharacteristicData &cd1, const QLowEnergyCharacteristicData &cd2);
  53. %End
  54. %If (Qt_6_2_0 -)
  55. bool operator!=(const QLowEnergyCharacteristicData &cd1, const QLowEnergyCharacteristicData &cd2);
  56. %End