This commit is contained in:
rattatwinko
2025-05-25 20:42:58 +02:00
commit 8e9b2568b2
4902 changed files with 1152638 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
# Automatically generated configuration for PyQt5.QtPositioning.
sip-version = "6.8.6"
sip-abi-version = "12.15"
module-tags = ["Qt_5_15_14", "WS_X11"]
module-disabled-features = []

View File

@@ -0,0 +1,60 @@
// QtPositioningmod.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt5.QtPositioning, keyword_arguments="Optional", use_limited_api=True)
%Import QtCore/QtCoremod.sip
%Copying
Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
This file is part of PyQt5.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%Include qgeoaddress.sip
%Include qgeoareamonitorinfo.sip
%Include qgeoareamonitorsource.sip
%Include qgeocircle.sip
%Include qgeocoordinate.sip
%Include qgeolocation.sip
%Include qgeopath.sip
%Include qgeopolygon.sip
%Include qgeopositioninfo.sip
%Include qgeopositioninfosource.sip
%Include qgeorectangle.sip
%Include qgeosatelliteinfo.sip
%Include qgeosatelliteinfosource.sip
%Include qgeoshape.sip
%Include qnmeapositioninfosource.sip

View File

@@ -0,0 +1,60 @@
// qgeoaddress.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoAddress
{
%TypeHeaderCode
#include <qgeoaddress.h>
%End
public:
QGeoAddress();
QGeoAddress(const QGeoAddress &other);
~QGeoAddress();
bool operator==(const QGeoAddress &other) const;
bool operator!=(const QGeoAddress &other) const;
QString text() const;
void setText(const QString &text);
QString country() const;
void setCountry(const QString &country);
QString countryCode() const;
void setCountryCode(const QString &countryCode);
QString state() const;
void setState(const QString &state);
QString county() const;
void setCounty(const QString &county);
QString city() const;
void setCity(const QString &city);
QString district() const;
void setDistrict(const QString &district);
QString postalCode() const;
void setPostalCode(const QString &postalCode);
QString street() const;
void setStreet(const QString &street);
bool isEmpty() const;
void clear();
bool isTextGenerated() const;
};
%End

View File

@@ -0,0 +1,57 @@
// qgeoareamonitorinfo.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoAreaMonitorInfo
{
%TypeHeaderCode
#include <qgeoareamonitorinfo.h>
%End
public:
explicit QGeoAreaMonitorInfo(const QString &name = QString());
QGeoAreaMonitorInfo(const QGeoAreaMonitorInfo &other);
~QGeoAreaMonitorInfo();
bool operator==(const QGeoAreaMonitorInfo &other) const;
bool operator!=(const QGeoAreaMonitorInfo &other) const;
QString name() const;
void setName(const QString &name);
QString identifier() const;
bool isValid() const;
QGeoShape area() const;
void setArea(const QGeoShape &newShape);
QDateTime expiration() const;
void setExpiration(const QDateTime &expiry);
bool isPersistent() const;
void setPersistent(bool isPersistent);
QVariantMap notificationParameters() const;
void setNotificationParameters(const QVariantMap &parameters);
};
%End
%If (Qt_5_2_0 -)
QDataStream &operator<<(QDataStream &, const QGeoAreaMonitorInfo & /Constrained/);
%End
%If (Qt_5_2_0 -)
QDataStream &operator>>(QDataStream &, QGeoAreaMonitorInfo & /Constrained/);
%End

View File

@@ -0,0 +1,73 @@
// qgeoareamonitorsource.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoAreaMonitorSource : public QObject
{
%TypeHeaderCode
#include <qgeoareamonitorsource.h>
%End
public:
enum Error
{
AccessError,
InsufficientPositionInfo,
UnknownSourceError,
NoError,
};
enum AreaMonitorFeature
{
PersistentAreaMonitorFeature,
AnyAreaMonitorFeature,
};
typedef QFlags<QGeoAreaMonitorSource::AreaMonitorFeature> AreaMonitorFeatures;
explicit QGeoAreaMonitorSource(QObject *parent /TransferThis/);
virtual ~QGeoAreaMonitorSource();
static QGeoAreaMonitorSource *createDefaultSource(QObject *parent /TransferThis/) /Factory/;
static QGeoAreaMonitorSource *createSource(const QString &sourceName, QObject *parent /TransferThis/) /Factory/;
static QStringList availableSources();
virtual void setPositionInfoSource(QGeoPositionInfoSource *source /Transfer/);
virtual QGeoPositionInfoSource *positionInfoSource() const;
QString sourceName() const;
virtual QGeoAreaMonitorSource::Error error() const = 0;
virtual QFlags<QGeoAreaMonitorSource::AreaMonitorFeature> supportedAreaMonitorFeatures() const = 0;
virtual bool startMonitoring(const QGeoAreaMonitorInfo &monitor) = 0;
virtual bool stopMonitoring(const QGeoAreaMonitorInfo &monitor) = 0;
virtual bool requestUpdate(const QGeoAreaMonitorInfo &monitor, const char *signal) = 0;
virtual QList<QGeoAreaMonitorInfo> activeMonitors() const = 0;
virtual QList<QGeoAreaMonitorInfo> activeMonitors(const QGeoShape &lookupArea) const = 0;
signals:
void areaEntered(const QGeoAreaMonitorInfo &monitor, const QGeoPositionInfo &update);
void areaExited(const QGeoAreaMonitorInfo &monitor, const QGeoPositionInfo &update);
void monitorExpired(const QGeoAreaMonitorInfo &monitor);
void error(QGeoAreaMonitorSource::Error error);
private:
QGeoAreaMonitorSource(const QGeoAreaMonitorSource &);
};
%End

View File

@@ -0,0 +1,53 @@
// qgeocircle.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoCircle : public QGeoShape
{
%TypeHeaderCode
#include <qgeocircle.h>
%End
public:
QGeoCircle();
QGeoCircle(const QGeoCoordinate &center, qreal radius = -1.);
QGeoCircle(const QGeoCircle &other);
QGeoCircle(const QGeoShape &other);
~QGeoCircle();
bool operator==(const QGeoCircle &other) const;
bool operator!=(const QGeoCircle &other) const;
void setCenter(const QGeoCoordinate &center);
QGeoCoordinate center() const;
void setRadius(qreal radius);
qreal radius() const;
void translate(double degreesLatitude, double degreesLongitude);
QGeoCircle translated(double degreesLatitude, double degreesLongitude) const;
%If (Qt_5_5_0 -)
QString toString() const;
%End
%If (Qt_5_9_0 -)
void extendCircle(const QGeoCoordinate &coordinate);
%End
};
%End

View File

@@ -0,0 +1,83 @@
// qgeocoordinate.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoCoordinate
{
%TypeHeaderCode
#include <qgeocoordinate.h>
%End
public:
enum CoordinateType
{
InvalidCoordinate,
Coordinate2D,
Coordinate3D,
};
enum CoordinateFormat
{
Degrees,
DegreesWithHemisphere,
DegreesMinutes,
DegreesMinutesWithHemisphere,
DegreesMinutesSeconds,
DegreesMinutesSecondsWithHemisphere,
};
QGeoCoordinate();
QGeoCoordinate(double latitude, double longitude);
QGeoCoordinate(double latitude, double longitude, double altitude);
QGeoCoordinate(const QGeoCoordinate &other);
~QGeoCoordinate();
bool operator==(const QGeoCoordinate &other) const;
bool operator!=(const QGeoCoordinate &other) const;
bool isValid() const;
QGeoCoordinate::CoordinateType type() const;
void setLatitude(double latitude);
double latitude() const;
void setLongitude(double longitude);
double longitude() const;
void setAltitude(double altitude);
double altitude() const;
qreal distanceTo(const QGeoCoordinate &other) const;
qreal azimuthTo(const QGeoCoordinate &other) const;
QGeoCoordinate atDistanceAndAzimuth(qreal distance, qreal azimuth, qreal distanceUp = 0.0) const;
QString toString(QGeoCoordinate::CoordinateFormat format = QGeoCoordinate::DegreesMinutesSecondsWithHemisphere) const;
%If (Qt_5_7_0 -)
long __hash__() const;
%MethodCode
sipRes = qHash(*sipCpp);
%End
%End
};
%End
%If (Qt_5_2_0 -)
QDataStream &operator<<(QDataStream &stream, const QGeoCoordinate &coordinate /Constrained/);
%End
%If (Qt_5_2_0 -)
QDataStream &operator>>(QDataStream &stream, QGeoCoordinate &coordinate /Constrained/);
%End

View File

@@ -0,0 +1,52 @@
// qgeolocation.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoLocation
{
%TypeHeaderCode
#include <qgeolocation.h>
%End
public:
QGeoLocation();
QGeoLocation(const QGeoLocation &other);
~QGeoLocation();
bool operator==(const QGeoLocation &other) const;
bool operator!=(const QGeoLocation &other) const;
QGeoAddress address() const;
void setAddress(const QGeoAddress &address);
QGeoCoordinate coordinate() const;
void setCoordinate(const QGeoCoordinate &position);
QGeoRectangle boundingBox() const;
void setBoundingBox(const QGeoRectangle &box);
bool isEmpty() const;
%If (Qt_5_13_0 -)
QVariantMap extendedAttributes() const;
%End
%If (Qt_5_13_0 -)
void setExtendedAttributes(const QVariantMap &data);
%End
};
%End

View File

@@ -0,0 +1,62 @@
// qgeopath.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_9_0 -)
class QGeoPath : public QGeoShape
{
%TypeHeaderCode
#include <qgeopath.h>
%End
public:
QGeoPath();
QGeoPath(const QList<QGeoCoordinate> &path, const qreal &width = 0.);
QGeoPath(const QGeoPath &other);
QGeoPath(const QGeoShape &other);
~QGeoPath();
bool operator==(const QGeoPath &other) const;
bool operator!=(const QGeoPath &other) const;
void setPath(const QList<QGeoCoordinate> &path);
const QList<QGeoCoordinate> &path() const;
void setWidth(const qreal &width);
qreal width() const;
void translate(double degreesLatitude, double degreesLongitude);
QGeoPath translated(double degreesLatitude, double degreesLongitude) const;
double length(int indexFrom = 0, int indexTo = -1) const;
void addCoordinate(const QGeoCoordinate &coordinate);
void insertCoordinate(int index, const QGeoCoordinate &coordinate);
void replaceCoordinate(int index, const QGeoCoordinate &coordinate);
QGeoCoordinate coordinateAt(int index) const;
bool containsCoordinate(const QGeoCoordinate &coordinate) const;
void removeCoordinate(const QGeoCoordinate &coordinate);
void removeCoordinate(int index);
QString toString() const;
%If (Qt_5_10_0 -)
int size() const;
%End
%If (Qt_5_12_0 -)
void clearPath();
%End
};
%End

View File

@@ -0,0 +1,81 @@
// qgeopolygon.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_10_0 -)
class QGeoPolygon : public QGeoShape
{
%TypeHeaderCode
#include <qgeopolygon.h>
%End
public:
QGeoPolygon();
QGeoPolygon(const QList<QGeoCoordinate> &path);
QGeoPolygon(const QGeoPolygon &other);
QGeoPolygon(const QGeoShape &other);
~QGeoPolygon();
bool operator==(const QGeoPolygon &other) const;
bool operator!=(const QGeoPolygon &other) const;
void setPath(const QList<QGeoCoordinate> &path);
const QList<QGeoCoordinate> &path() const;
void translate(double degreesLatitude, double degreesLongitude);
QGeoPolygon translated(double degreesLatitude, double degreesLongitude) const;
double length(int indexFrom = 0, int indexTo = -1) const;
int size() const;
void addCoordinate(const QGeoCoordinate &coordinate);
void insertCoordinate(int index, const QGeoCoordinate &coordinate);
void replaceCoordinate(int index, const QGeoCoordinate &coordinate);
QGeoCoordinate coordinateAt(int index) const;
bool containsCoordinate(const QGeoCoordinate &coordinate) const;
void removeCoordinate(const QGeoCoordinate &coordinate);
void removeCoordinate(int index);
QString toString() const;
%If (Qt_5_12_0 -)
void addHole(const QList<QGeoCoordinate> &holePath);
%End
%If (Qt_5_12_0 -)
void addHole(const QVariant &holePath);
%End
%If (Qt_5_12_0 -)
const QVariantList hole(int index) const;
%End
%If (Qt_5_12_0 -)
const QList<QGeoCoordinate> holePath(int index) const;
%End
%If (Qt_5_12_0 -)
void removeHole(int index);
%End
%If (Qt_5_12_0 -)
int holesCount() const;
%End
protected:
%If (Qt_5_12_0 -)
void setPerimeter(const QVariantList &path);
%End
%If (Qt_5_12_0 -)
QVariantList perimeter() const;
%End
};
%End

View File

@@ -0,0 +1,65 @@
// qgeopositioninfo.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoPositionInfo
{
%TypeHeaderCode
#include <qgeopositioninfo.h>
%End
public:
enum Attribute
{
Direction,
GroundSpeed,
VerticalSpeed,
MagneticVariation,
HorizontalAccuracy,
VerticalAccuracy,
};
QGeoPositionInfo();
QGeoPositionInfo(const QGeoCoordinate &coordinate, const QDateTime &updateTime);
QGeoPositionInfo(const QGeoPositionInfo &other);
~QGeoPositionInfo();
bool operator==(const QGeoPositionInfo &other) const;
bool operator!=(const QGeoPositionInfo &other) const;
bool isValid() const;
void setTimestamp(const QDateTime &timestamp);
QDateTime timestamp() const;
void setCoordinate(const QGeoCoordinate &coordinate);
QGeoCoordinate coordinate() const;
void setAttribute(QGeoPositionInfo::Attribute attribute, qreal value);
qreal attribute(QGeoPositionInfo::Attribute attribute) const;
void removeAttribute(QGeoPositionInfo::Attribute attribute);
bool hasAttribute(QGeoPositionInfo::Attribute attribute) const;
};
%End
%If (Qt_5_2_0 -)
QDataStream &operator<<(QDataStream &stream, const QGeoPositionInfo &info /Constrained/);
%End
%If (Qt_5_2_0 -)
QDataStream &operator>>(QDataStream &stream, QGeoPositionInfo &info /Constrained/);
%End

View File

@@ -0,0 +1,129 @@
// qgeopositioninfosource.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoPositionInfoSource : public QObject
{
%TypeHeaderCode
#include <qgeopositioninfosource.h>
%End
%ConvertToSubClassCode
static struct class_graph {
const char *name;
sipTypeDef **type;
int yes, no;
} graph[] = {
{sipName_QGeoPositionInfoSource, &sipType_QGeoPositionInfoSource, 3, 1},
{sipName_QGeoSatelliteInfoSource, &sipType_QGeoSatelliteInfoSource, -1, 2},
{sipName_QGeoAreaMonitorSource, &sipType_QGeoAreaMonitorSource, -1, -1},
{sipName_QNmeaPositionInfoSource, &sipType_QNmeaPositionInfoSource, -1, -1},
};
int i = 0;
sipType = NULL;
do
{
struct class_graph *cg = &graph[i];
if (cg->name != NULL && sipCpp->inherits(cg->name))
{
sipType = *cg->type;
i = cg->yes;
}
else
i = cg->no;
}
while (i >= 0);
%End
public:
enum Error
{
AccessError,
ClosedError,
UnknownSourceError,
NoError,
};
enum PositioningMethod
{
NoPositioningMethods,
SatellitePositioningMethods,
NonSatellitePositioningMethods,
AllPositioningMethods,
};
typedef QFlags<QGeoPositionInfoSource::PositioningMethod> PositioningMethods;
explicit QGeoPositionInfoSource(QObject *parent /TransferThis/);
virtual ~QGeoPositionInfoSource();
virtual void setUpdateInterval(int msec);
int updateInterval() const;
virtual void setPreferredPositioningMethods(QGeoPositionInfoSource::PositioningMethods methods);
QGeoPositionInfoSource::PositioningMethods preferredPositioningMethods() const;
virtual QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly = false) const = 0;
virtual QGeoPositionInfoSource::PositioningMethods supportedPositioningMethods() const = 0;
virtual int minimumUpdateInterval() const = 0;
QString sourceName() const;
static QGeoPositionInfoSource *createDefaultSource(QObject *parent /TransferThis/) /Factory/;
%If (Qt_5_14_0 -)
static QGeoPositionInfoSource *createDefaultSource(const QVariantMap &parameters, QObject *parent /TransferThis/) /Factory/;
%End
static QGeoPositionInfoSource *createSource(const QString &sourceName, QObject *parent /TransferThis/) /Factory/;
%If (Qt_5_14_0 -)
static QGeoPositionInfoSource *createSource(const QString &sourceName, const QVariantMap &parameters, QObject *parent /TransferThis/) /Factory/;
%End
static QStringList availableSources();
virtual QGeoPositionInfoSource::Error error() const = 0;
public slots:
virtual void startUpdates() = 0;
virtual void stopUpdates() = 0;
virtual void requestUpdate(int timeout = 0) = 0;
signals:
void positionUpdated(const QGeoPositionInfo &update);
void updateTimeout();
void error(QGeoPositionInfoSource::Error);
%If (Qt_5_12_0 -)
void supportedPositioningMethodsChanged();
%End
public:
%If (Qt_5_14_0 -)
bool setBackendProperty(const QString &name, const QVariant &value);
%End
%If (Qt_5_14_0 -)
QVariant backendProperty(const QString &name) const;
%End
private:
QGeoPositionInfoSource(const QGeoPositionInfoSource &);
};
%End
%If (Qt_5_2_0 -)
QFlags<QGeoPositionInfoSource::PositioningMethod> operator|(QGeoPositionInfoSource::PositioningMethod f1, QFlags<QGeoPositionInfoSource::PositioningMethod> f2);
%End

View File

@@ -0,0 +1,72 @@
// qgeorectangle.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoRectangle : public QGeoShape
{
%TypeHeaderCode
#include <qgeorectangle.h>
%End
public:
QGeoRectangle();
QGeoRectangle(const QGeoCoordinate &center, double degreesWidth, double degreesHeight);
QGeoRectangle(const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight);
%If (Qt_5_3_0 -)
QGeoRectangle(const QList<QGeoCoordinate> &coordinates);
%End
QGeoRectangle(const QGeoRectangle &other);
QGeoRectangle(const QGeoShape &other);
~QGeoRectangle();
bool operator==(const QGeoRectangle &other) const;
bool operator!=(const QGeoRectangle &other) const;
void setTopLeft(const QGeoCoordinate &topLeft);
QGeoCoordinate topLeft() const;
void setTopRight(const QGeoCoordinate &topRight);
QGeoCoordinate topRight() const;
void setBottomLeft(const QGeoCoordinate &bottomLeft);
QGeoCoordinate bottomLeft() const;
void setBottomRight(const QGeoCoordinate &bottomRight);
QGeoCoordinate bottomRight() const;
void setCenter(const QGeoCoordinate &center);
QGeoCoordinate center() const;
void setWidth(double degreesWidth);
double width() const;
void setHeight(double degreesHeight);
double height() const;
bool contains(const QGeoRectangle &rectangle) const;
bool intersects(const QGeoRectangle &rectangle) const;
void translate(double degreesLatitude, double degreesLongitude);
QGeoRectangle translated(double degreesLatitude, double degreesLongitude) const;
QGeoRectangle united(const QGeoRectangle &rectangle) const;
QGeoRectangle &operator|=(const QGeoRectangle &rectangle);
QGeoRectangle operator|(const QGeoRectangle &rectangle) const;
%If (Qt_5_5_0 -)
QString toString() const;
%End
%If (Qt_5_9_0 -)
void extendRectangle(const QGeoCoordinate &coordinate);
%End
};
%End

View File

@@ -0,0 +1,68 @@
// qgeosatelliteinfo.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoSatelliteInfo
{
%TypeHeaderCode
#include <qgeosatelliteinfo.h>
%End
public:
enum Attribute
{
Elevation,
Azimuth,
};
enum SatelliteSystem
{
Undefined,
GPS,
GLONASS,
};
QGeoSatelliteInfo();
QGeoSatelliteInfo(const QGeoSatelliteInfo &other);
~QGeoSatelliteInfo();
bool operator==(const QGeoSatelliteInfo &other) const;
bool operator!=(const QGeoSatelliteInfo &other) const;
void setSatelliteSystem(QGeoSatelliteInfo::SatelliteSystem system);
QGeoSatelliteInfo::SatelliteSystem satelliteSystem() const;
void setSatelliteIdentifier(int satId);
int satelliteIdentifier() const;
void setSignalStrength(int signalStrength);
int signalStrength() const;
void setAttribute(QGeoSatelliteInfo::Attribute attribute, qreal value);
qreal attribute(QGeoSatelliteInfo::Attribute attribute) const;
void removeAttribute(QGeoSatelliteInfo::Attribute attribute);
bool hasAttribute(QGeoSatelliteInfo::Attribute attribute) const;
};
%End
%If (Qt_5_2_0 -)
QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info /Constrained/);
%End
%If (Qt_5_2_0 -)
QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info /Constrained/);
%End

View File

@@ -0,0 +1,72 @@
// qgeosatelliteinfosource.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoSatelliteInfoSource : public QObject
{
%TypeHeaderCode
#include <qgeosatelliteinfosource.h>
%End
public:
enum Error
{
AccessError,
ClosedError,
NoError,
UnknownSourceError,
};
explicit QGeoSatelliteInfoSource(QObject *parent /TransferThis/);
virtual ~QGeoSatelliteInfoSource();
static QGeoSatelliteInfoSource *createDefaultSource(QObject *parent /TransferThis/) /Factory/;
%If (Qt_5_14_0 -)
static QGeoSatelliteInfoSource *createDefaultSource(const QVariantMap &parameters, QObject *parent /TransferThis/) /Factory/;
%End
static QGeoSatelliteInfoSource *createSource(const QString &sourceName, QObject *parent /TransferThis/) /Factory/;
%If (Qt_5_14_0 -)
static QGeoSatelliteInfoSource *createSource(const QString &sourceName, const QVariantMap &parameters, QObject *parent /TransferThis/) /Factory/;
%End
static QStringList availableSources();
QString sourceName() const;
virtual void setUpdateInterval(int msec);
int updateInterval() const;
virtual int minimumUpdateInterval() const = 0;
virtual QGeoSatelliteInfoSource::Error error() const = 0;
public slots:
virtual void startUpdates() = 0;
virtual void stopUpdates() = 0;
virtual void requestUpdate(int timeout = 0) = 0;
signals:
void satellitesInViewUpdated(const QList<QGeoSatelliteInfo> &satellites);
void satellitesInUseUpdated(const QList<QGeoSatelliteInfo> &satellites);
void requestTimeout();
void error(QGeoSatelliteInfoSource::Error);
private:
QGeoSatelliteInfoSource(const QGeoSatelliteInfoSource &);
};
%End

View File

@@ -0,0 +1,104 @@
// qgeoshape.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QGeoShape
{
%TypeHeaderCode
#include <qgeoshape.h>
%End
%ConvertToSubClassCode
switch (sipCpp->type())
{
case QGeoShape::CircleType:
sipType = sipType_QGeoCircle;
break;
case QGeoShape::RectangleType:
sipType = sipType_QGeoRectangle;
break;
#if QT_VERSION >= 0x050900
case QGeoShape::PathType:
sipType = sipType_QGeoPath;
break;
#endif
#if QT_VERSION >= 0x050a00
case QGeoShape::PolygonType:
sipType = sipType_QGeoPolygon;
break;
#endif
default:
sipType = 0;
}
%End
public:
QGeoShape();
QGeoShape(const QGeoShape &other);
~QGeoShape();
enum ShapeType
{
UnknownType,
RectangleType,
CircleType,
%If (Qt_5_9_0 -)
PathType,
%End
%If (Qt_5_10_0 -)
PolygonType,
%End
};
QGeoShape::ShapeType type() const;
bool isValid() const;
bool isEmpty() const;
bool contains(const QGeoCoordinate &coordinate) const;
bool operator==(const QGeoShape &other) const;
bool operator!=(const QGeoShape &other) const;
%If (Qt_5_3_0 -)
void extendShape(const QGeoCoordinate &coordinate);
%End
%If (Qt_5_5_0 -)
QGeoCoordinate center() const;
%End
%If (Qt_5_5_0 -)
QString toString() const;
%End
%If (Qt_5_9_0 -)
QGeoRectangle boundingGeoRectangle() const;
%End
};
%End
%If (Qt_5_2_0 -)
QDataStream &operator<<(QDataStream &stream, const QGeoShape &shape /Constrained/);
%End
%If (Qt_5_2_0 -)
QDataStream &operator>>(QDataStream &stream, QGeoShape &shape /Constrained/);
%End

View File

@@ -0,0 +1,66 @@
// qnmeapositioninfosource.sip generated by MetaSIP
//
// This file is part of the QtPositioning Python extension module.
//
// Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_2_0 -)
class QNmeaPositionInfoSource : public QGeoPositionInfoSource
{
%TypeHeaderCode
#include <qnmeapositioninfosource.h>
%End
public:
enum UpdateMode
{
RealTimeMode,
SimulationMode,
};
QNmeaPositionInfoSource(QNmeaPositionInfoSource::UpdateMode updateMode, QObject *parent /TransferThis/ = 0);
virtual ~QNmeaPositionInfoSource();
QNmeaPositionInfoSource::UpdateMode updateMode() const;
void setDevice(QIODevice *source);
QIODevice *device() const;
virtual void setUpdateInterval(int msec);
virtual QGeoPositionInfo lastKnownPosition(bool fromSatellitePositioningMethodsOnly = false) const;
virtual QGeoPositionInfoSource::PositioningMethods supportedPositioningMethods() const;
virtual int minimumUpdateInterval() const;
virtual QGeoPositionInfoSource::Error error() const;
public slots:
virtual void startUpdates();
virtual void stopUpdates();
virtual void requestUpdate(int timeout = 0);
protected:
virtual bool parsePosInfoFromNmeaData(const char *data /Encoding="None"/, int size, QGeoPositionInfo *posInfo, bool *hasFix);
public:
%If (Qt_5_3_0 -)
void setUserEquivalentRangeError(double uere);
%End
%If (Qt_5_3_0 -)
double userEquivalentRangeError() const;
%End
};
%End