qgeosatelliteinfosource.sip 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // qgeosatelliteinfosource.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 QGeoSatelliteInfoSource : public QObject
  23. {
  24. %TypeHeaderCode
  25. #include <qgeosatelliteinfosource.h>
  26. %End
  27. public:
  28. enum Error
  29. {
  30. AccessError,
  31. ClosedError,
  32. NoError,
  33. UnknownSourceError,
  34. UpdateTimeoutError,
  35. };
  36. explicit QGeoSatelliteInfoSource(QObject *parent /TransferThis/);
  37. virtual ~QGeoSatelliteInfoSource();
  38. static QGeoSatelliteInfoSource *createDefaultSource(QObject *parent /TransferThis/) /Factory/;
  39. static QGeoSatelliteInfoSource *createDefaultSource(const QVariantMap &parameters, QObject *parent /TransferThis/) /Factory/;
  40. static QGeoSatelliteInfoSource *createSource(const QString &sourceName, QObject *parent /TransferThis/) /Factory/;
  41. static QGeoSatelliteInfoSource *createSource(const QString &sourceName, const QVariantMap &parameters, QObject *parent /TransferThis/) /Factory/;
  42. static QStringList availableSources();
  43. QString sourceName() const;
  44. virtual void setUpdateInterval(int msec);
  45. int updateInterval() const;
  46. virtual int minimumUpdateInterval() const = 0;
  47. virtual QGeoSatelliteInfoSource::Error error() const = 0;
  48. public slots:
  49. virtual void startUpdates() = 0;
  50. virtual void stopUpdates() = 0;
  51. virtual void requestUpdate(int timeout = 0) = 0;
  52. signals:
  53. void satellitesInViewUpdated(const QList<QGeoSatelliteInfo> &satellites);
  54. void satellitesInUseUpdated(const QList<QGeoSatelliteInfo> &satellites);
  55. void errorOccurred(QGeoSatelliteInfoSource::Error);
  56. public:
  57. virtual bool setBackendProperty(const QString &name, const QVariant &value);
  58. virtual QVariant backendProperty(const QString &name) const;
  59. };
  60. %End