qndefnfcsmartposterrecord.sip 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // qndefnfcsmartposterrecord.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtNfc 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 QNdefNfcIconRecord : public QNdefRecord
  23. {
  24. %TypeHeaderCode
  25. #include <qndefnfcsmartposterrecord.h>
  26. %End
  27. public:
  28. QNdefNfcIconRecord();
  29. QNdefNfcIconRecord(const QNdefRecord &other);
  30. void setData(const QByteArray &data);
  31. QByteArray data() const;
  32. };
  33. %End
  34. %If (Qt_6_2_0 -)
  35. class QNdefNfcSmartPosterRecord : public QNdefRecord
  36. {
  37. %TypeHeaderCode
  38. #include <qndefnfcsmartposterrecord.h>
  39. %End
  40. public:
  41. enum Action
  42. {
  43. UnspecifiedAction,
  44. DoAction,
  45. SaveAction,
  46. EditAction,
  47. };
  48. QNdefNfcSmartPosterRecord();
  49. QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other);
  50. QNdefNfcSmartPosterRecord(const QNdefRecord &other);
  51. ~QNdefNfcSmartPosterRecord();
  52. void setPayload(const QByteArray &payload);
  53. bool hasTitle(const QString &locale = QString()) const;
  54. bool hasAction() const;
  55. bool hasIcon(const QByteArray &mimetype = QByteArray()) const;
  56. bool hasSize() const;
  57. bool hasTypeInfo() const;
  58. qsizetype titleCount() const;
  59. QString title(const QString &locale = QString()) const;
  60. QNdefNfcTextRecord titleRecord(qsizetype index) const;
  61. QList<QNdefNfcTextRecord> titleRecords() const;
  62. bool addTitle(const QNdefNfcTextRecord &text);
  63. bool addTitle(const QString &text, const QString &locale, QNdefNfcTextRecord::Encoding encoding);
  64. bool removeTitle(const QNdefNfcTextRecord &text);
  65. bool removeTitle(const QString &locale);
  66. void setTitles(const QList<QNdefNfcTextRecord> &titles);
  67. QUrl uri() const;
  68. QNdefNfcUriRecord uriRecord() const;
  69. void setUri(const QNdefNfcUriRecord &url);
  70. void setUri(const QUrl &url);
  71. QNdefNfcSmartPosterRecord::Action action() const;
  72. void setAction(QNdefNfcSmartPosterRecord::Action act);
  73. qsizetype iconCount() const;
  74. QByteArray icon(const QByteArray &mimetype = QByteArray()) const;
  75. QNdefNfcIconRecord iconRecord(qsizetype index) const;
  76. QList<QNdefNfcIconRecord> iconRecords() const;
  77. void addIcon(const QNdefNfcIconRecord &icon);
  78. void addIcon(const QByteArray &type, const QByteArray &data);
  79. bool removeIcon(const QNdefNfcIconRecord &icon);
  80. bool removeIcon(const QByteArray &type);
  81. void setIcons(const QList<QNdefNfcIconRecord> &icons);
  82. quint32 size() const;
  83. void setSize(quint32 size);
  84. QString typeInfo() const;
  85. void setTypeInfo(const QString &type);
  86. };
  87. %End