qgeopositioninfo.sip 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // qgeopositioninfo.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtPositioning 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 QGeoPositionInfo
  23. {
  24. %TypeHeaderCode
  25. #include <qgeopositioninfo.h>
  26. %End
  27. public:
  28. enum Attribute
  29. {
  30. Direction,
  31. GroundSpeed,
  32. VerticalSpeed,
  33. MagneticVariation,
  34. HorizontalAccuracy,
  35. VerticalAccuracy,
  36. %If (Qt_6_3_0 -)
  37. DirectionAccuracy,
  38. %End
  39. };
  40. QGeoPositionInfo();
  41. QGeoPositionInfo(const QGeoCoordinate &coordinate, const QDateTime &updateTime);
  42. QGeoPositionInfo(const QGeoPositionInfo &other);
  43. ~QGeoPositionInfo();
  44. bool isValid() const;
  45. void setTimestamp(const QDateTime &timestamp);
  46. QDateTime timestamp() const;
  47. void setCoordinate(const QGeoCoordinate &coordinate);
  48. QGeoCoordinate coordinate() const;
  49. void setAttribute(QGeoPositionInfo::Attribute attribute, qreal value);
  50. qreal attribute(QGeoPositionInfo::Attribute attribute) const;
  51. void removeAttribute(QGeoPositionInfo::Attribute attribute);
  52. bool hasAttribute(QGeoPositionInfo::Attribute attribute) const;
  53. void swap(QGeoPositionInfo &other /Constrained/);
  54. Py_hash_t __hash__() const;
  55. %MethodCode
  56. sipRes = qHash(*sipCpp);
  57. %End
  58. };
  59. %End
  60. %If (Qt_6_2_0 -)
  61. QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info);
  62. %End
  63. %If (Qt_6_2_0 -)
  64. QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info /Constrained/);
  65. %End
  66. %If (Qt_6_2_0 -)
  67. bool operator==(const QGeoPositionInfo &lhs, const QGeoPositionInfo &rhs);
  68. %End
  69. %If (Qt_6_2_0 -)
  70. bool operator!=(const QGeoPositionInfo &lhs, const QGeoPositionInfo &rhs);
  71. %End