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.QtLocation.
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,87 @@
// QtLocationmod.sip generated by MetaSIP
//
// This file is part of the QtLocation 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.QtLocation, keyword_arguments="Optional", use_limited_api=True)
%Import QtCore/QtCoremod.sip
%Import QtPositioning/QtPositioningmod.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
%DefaultSupertype sip.simplewrapper
%Include qgeocodereply.sip
%Include qgeocodingmanager.sip
%Include qgeocodingmanagerengine.sip
%Include qgeomaneuver.sip
%Include qgeoroute.sip
%Include qgeoroutereply.sip
%Include qgeorouterequest.sip
%Include qgeoroutesegment.sip
%Include qgeoroutingmanager.sip
%Include qgeoroutingmanagerengine.sip
%Include qgeoserviceprovider.sip
%Include qlocation.sip
%Include qplace.sip
%Include qplaceattribute.sip
%Include qplacecategory.sip
%Include qplacecontactdetail.sip
%Include qplacecontent.sip
%Include qplacecontentreply.sip
%Include qplacecontentrequest.sip
%Include qplacedetailsreply.sip
%Include qplaceeditorial.sip
%Include qplaceicon.sip
%Include qplaceidreply.sip
%Include qplaceimage.sip
%Include qplacemanager.sip
%Include qplacemanagerengine.sip
%Include qplacematchreply.sip
%Include qplacematchrequest.sip
%Include qplaceproposedsearchresult.sip
%Include qplaceratings.sip
%Include qplacereply.sip
%Include qplaceresult.sip
%Include qplacereview.sip
%Include qplacesearchreply.sip
%Include qplacesearchrequest.sip
%Include qplacesearchresult.sip
%Include qplacesearchsuggestionreply.sip
%Include qplacesupplier.sip
%Include qplaceuser.sip

View File

@@ -0,0 +1,77 @@
// qgeocodereply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoCodeReply : public QObject
{
%TypeHeaderCode
#include <qgeocodereply.h>
%End
public:
enum Error
{
NoError,
EngineNotSetError,
CommunicationError,
ParseError,
UnsupportedOptionError,
CombinationError,
UnknownError,
};
QGeoCodeReply(QGeoCodeReply::Error error, const QString &errorString, QObject *parent /TransferThis/ = 0);
virtual ~QGeoCodeReply();
bool isFinished() const;
QGeoCodeReply::Error error() const;
QString errorString() const;
QGeoShape viewport() const;
QList<QGeoLocation> locations() const;
int limit() const;
int offset() const;
virtual void abort();
signals:
%If (Qt_5_9_0 -)
void aborted();
%End
void finished();
void error(QGeoCodeReply::Error error, const QString &errorString = QString());
protected:
%If (Qt_5_6_1 -)
explicit QGeoCodeReply(QObject *parent /TransferThis/ = 0);
%End
%If (- Qt_5_6_1)
QGeoCodeReply(QObject *parent /TransferThis/ = 0);
%End
void setError(QGeoCodeReply::Error error, const QString &errorString);
void setFinished(bool finished);
void setViewport(const QGeoShape &viewport);
void addLocation(const QGeoLocation &location);
void setLocations(const QList<QGeoLocation> &locations);
void setLimit(int limit);
void setOffset(int offset);
};
%End

View File

@@ -0,0 +1,46 @@
// qgeocodingmanager.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoCodingManager : public QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include <qgeocodingmanager.h>
%End
public:
virtual ~QGeoCodingManager();
QString managerName() const;
int managerVersion() const;
QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds = QGeoShape()) /Factory/;
QGeoCodeReply *geocode(const QString &searchString, int limit = -1, int offset = 0, const QGeoShape &bounds = QGeoShape()) /Factory/;
QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds = QGeoShape()) /Factory/;
void setLocale(const QLocale &locale);
QLocale locale() const;
signals:
void finished(QGeoCodeReply *reply);
void error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString = QString());
};
%End

View File

@@ -0,0 +1,47 @@
// qgeocodingmanagerengine.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoCodingManagerEngine : public QObject
{
%TypeHeaderCode
#include <qgeocodingmanagerengine.h>
%End
public:
QGeoCodingManagerEngine(const QVariantMap &parameters, QObject *parent /TransferThis/ = 0);
virtual ~QGeoCodingManagerEngine();
QString managerName() const;
int managerVersion() const;
virtual QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds) /Factory/;
virtual QGeoCodeReply *geocode(const QString &address, int limit, int offset, const QGeoShape &bounds) /Factory/;
virtual QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds) /Factory/;
void setLocale(const QLocale &locale);
QLocale locale() const;
signals:
void finished(QGeoCodeReply *reply);
void error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString = QString());
};
%End

View File

@@ -0,0 +1,74 @@
// qgeomaneuver.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoManeuver
{
%TypeHeaderCode
#include <qgeomaneuver.h>
%End
public:
enum InstructionDirection
{
NoDirection,
DirectionForward,
DirectionBearRight,
DirectionLightRight,
DirectionRight,
DirectionHardRight,
DirectionUTurnRight,
DirectionUTurnLeft,
DirectionHardLeft,
DirectionLeft,
DirectionLightLeft,
DirectionBearLeft,
};
QGeoManeuver();
QGeoManeuver(const QGeoManeuver &other);
~QGeoManeuver();
bool operator==(const QGeoManeuver &other) const;
bool operator!=(const QGeoManeuver &other) const;
bool isValid() const;
void setPosition(const QGeoCoordinate &position);
QGeoCoordinate position() const;
void setInstructionText(const QString &instructionText);
QString instructionText() const;
void setDirection(QGeoManeuver::InstructionDirection direction);
QGeoManeuver::InstructionDirection direction() const;
void setTimeToNextInstruction(int secs);
int timeToNextInstruction() const;
void setDistanceToNextInstruction(qreal distance);
qreal distanceToNextInstruction() const;
void setWaypoint(const QGeoCoordinate &coordinate);
QGeoCoordinate waypoint() const;
%If (Qt_5_11_0 -)
void setExtendedAttributes(const QVariantMap &extendedAttributes);
%End
%If (Qt_5_11_0 -)
QVariantMap extendedAttributes() const;
%End
};
%End

View File

@@ -0,0 +1,86 @@
// qgeoroute.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoRoute
{
%TypeHeaderCode
#include <qgeoroute.h>
%End
public:
QGeoRoute();
QGeoRoute(const QGeoRoute &other);
~QGeoRoute();
bool operator==(const QGeoRoute &other) const;
bool operator!=(const QGeoRoute &other) const;
void setRouteId(const QString &id);
QString routeId() const;
void setRequest(const QGeoRouteRequest &request);
QGeoRouteRequest request() const;
void setBounds(const QGeoRectangle &bounds);
QGeoRectangle bounds() const;
void setFirstRouteSegment(const QGeoRouteSegment &routeSegment);
QGeoRouteSegment firstRouteSegment() const;
void setTravelTime(int secs);
int travelTime() const;
void setDistance(qreal distance);
qreal distance() const;
void setTravelMode(QGeoRouteRequest::TravelMode mode);
QGeoRouteRequest::TravelMode travelMode() const;
void setPath(const QList<QGeoCoordinate> &path);
QList<QGeoCoordinate> path() const;
%If (Qt_5_12_0 -)
void setRouteLegs(const QList<QGeoRouteLeg> &legs);
%End
%If (Qt_5_12_0 -)
QList<QGeoRouteLeg> routeLegs() const;
%End
%If (Qt_5_13_0 -)
void setExtendedAttributes(const QVariantMap &extendedAttributes);
%End
%If (Qt_5_13_0 -)
QVariantMap extendedAttributes() const;
%End
};
%End
%If (Qt_5_12_0 -)
class QGeoRouteLeg : public QGeoRoute
{
%TypeHeaderCode
#include <qgeoroute.h>
%End
public:
QGeoRouteLeg();
QGeoRouteLeg(const QGeoRouteLeg &other);
~QGeoRouteLeg();
void setLegIndex(int idx);
int legIndex() const;
void setOverallRoute(const QGeoRoute &route);
QGeoRoute overallRoute() const;
};
%End

View File

@@ -0,0 +1,66 @@
// qgeoroutereply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoRouteReply : public QObject
{
%TypeHeaderCode
#include <qgeoroutereply.h>
%End
public:
enum Error
{
NoError,
EngineNotSetError,
CommunicationError,
ParseError,
UnsupportedOptionError,
UnknownError,
};
QGeoRouteReply(QGeoRouteReply::Error error, const QString &errorString, QObject *parent /TransferThis/ = 0);
virtual ~QGeoRouteReply();
bool isFinished() const;
QGeoRouteReply::Error error() const;
QString errorString() const;
QGeoRouteRequest request() const;
QList<QGeoRoute> routes() const;
virtual void abort();
signals:
%If (Qt_5_9_0 -)
void aborted();
%End
void finished();
void error(QGeoRouteReply::Error error, const QString &errorString = QString());
protected:
QGeoRouteReply(const QGeoRouteRequest &request, QObject *parent /TransferThis/ = 0);
void setError(QGeoRouteReply::Error error, const QString &errorString);
void setFinished(bool finished);
void setRoutes(const QList<QGeoRoute> &routes);
void addRoutes(const QList<QGeoRoute> &routes);
};
%End

View File

@@ -0,0 +1,158 @@
// qgeorouterequest.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoRouteRequest
{
%TypeHeaderCode
#include <qgeorouterequest.h>
%End
public:
enum TravelMode
{
CarTravel,
PedestrianTravel,
BicycleTravel,
PublicTransitTravel,
TruckTravel,
};
typedef QFlags<QGeoRouteRequest::TravelMode> TravelModes;
enum FeatureType
{
NoFeature,
TollFeature,
HighwayFeature,
PublicTransitFeature,
FerryFeature,
TunnelFeature,
DirtRoadFeature,
ParksFeature,
MotorPoolLaneFeature,
%If (Qt_5_10_0 -)
TrafficFeature,
%End
};
typedef QFlags<QGeoRouteRequest::FeatureType> FeatureTypes;
enum FeatureWeight
{
NeutralFeatureWeight,
PreferFeatureWeight,
RequireFeatureWeight,
AvoidFeatureWeight,
DisallowFeatureWeight,
};
typedef QFlags<QGeoRouteRequest::FeatureWeight> FeatureWeights;
enum RouteOptimization
{
ShortestRoute,
FastestRoute,
MostEconomicRoute,
MostScenicRoute,
};
typedef QFlags<QGeoRouteRequest::RouteOptimization> RouteOptimizations;
enum SegmentDetail
{
NoSegmentData,
BasicSegmentData,
};
typedef QFlags<QGeoRouteRequest::SegmentDetail> SegmentDetails;
enum ManeuverDetail
{
NoManeuvers,
BasicManeuvers,
};
typedef QFlags<QGeoRouteRequest::ManeuverDetail> ManeuverDetails;
explicit QGeoRouteRequest(const QList<QGeoCoordinate> &waypoints = QList<QGeoCoordinate>());
QGeoRouteRequest(const QGeoCoordinate &origin, const QGeoCoordinate &destination);
QGeoRouteRequest(const QGeoRouteRequest &other);
~QGeoRouteRequest();
bool operator==(const QGeoRouteRequest &other) const;
bool operator!=(const QGeoRouteRequest &other) const;
void setWaypoints(const QList<QGeoCoordinate> &waypoints);
QList<QGeoCoordinate> waypoints() const;
void setExcludeAreas(const QList<QGeoRectangle> &areas);
QList<QGeoRectangle> excludeAreas() const;
void setNumberAlternativeRoutes(int alternatives);
int numberAlternativeRoutes() const;
void setTravelModes(QGeoRouteRequest::TravelModes travelModes);
QGeoRouteRequest::TravelModes travelModes() const;
void setFeatureWeight(QGeoRouteRequest::FeatureType featureType, QGeoRouteRequest::FeatureWeight featureWeight);
QGeoRouteRequest::FeatureWeight featureWeight(QGeoRouteRequest::FeatureType featureType) const;
QList<QGeoRouteRequest::FeatureType> featureTypes() const;
void setRouteOptimization(QGeoRouteRequest::RouteOptimizations optimization);
QGeoRouteRequest::RouteOptimizations routeOptimization() const;
void setSegmentDetail(QGeoRouteRequest::SegmentDetail segmentDetail);
QGeoRouteRequest::SegmentDetail segmentDetail() const;
void setManeuverDetail(QGeoRouteRequest::ManeuverDetail maneuverDetail);
QGeoRouteRequest::ManeuverDetail maneuverDetail() const;
%If (Qt_5_11_0 -)
void setWaypointsMetadata(const QList<QVariantMap> &waypointMetadata);
%End
%If (Qt_5_11_0 -)
QList<QVariantMap> waypointsMetadata() const;
%End
%If (Qt_5_11_0 -)
void setExtraParameters(const QVariantMap &extraParameters);
%End
%If (Qt_5_11_0 -)
QVariantMap extraParameters() const;
%End
%If (Qt_5_13_0 -)
void setDepartureTime(const QDateTime &departureTime);
%End
%If (Qt_5_13_0 -)
QDateTime departureTime() const;
%End
};
%End
%If (Qt_5_5_0 -)
QFlags<QGeoRouteRequest::TravelMode> operator|(QGeoRouteRequest::TravelMode f1, QFlags<QGeoRouteRequest::TravelMode> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoRouteRequest::FeatureType> operator|(QGeoRouteRequest::FeatureType f1, QFlags<QGeoRouteRequest::FeatureType> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoRouteRequest::FeatureWeight> operator|(QGeoRouteRequest::FeatureWeight f1, QFlags<QGeoRouteRequest::FeatureWeight> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoRouteRequest::RouteOptimization> operator|(QGeoRouteRequest::RouteOptimization f1, QFlags<QGeoRouteRequest::RouteOptimization> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoRouteRequest::SegmentDetail> operator|(QGeoRouteRequest::SegmentDetail f1, QFlags<QGeoRouteRequest::SegmentDetail> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoRouteRequest::ManeuverDetail> operator|(QGeoRouteRequest::ManeuverDetail f1, QFlags<QGeoRouteRequest::ManeuverDetail> f2);
%End

View File

@@ -0,0 +1,53 @@
// qgeoroutesegment.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoRouteSegment
{
%TypeHeaderCode
#include <qgeoroutesegment.h>
%End
public:
QGeoRouteSegment();
QGeoRouteSegment(const QGeoRouteSegment &other);
~QGeoRouteSegment();
bool operator==(const QGeoRouteSegment &other) const;
bool operator!=(const QGeoRouteSegment &other) const;
bool isValid() const;
void setNextRouteSegment(const QGeoRouteSegment &routeSegment);
QGeoRouteSegment nextRouteSegment() const;
void setTravelTime(int secs);
int travelTime() const;
void setDistance(qreal distance);
qreal distance() const;
void setPath(const QList<QGeoCoordinate> &path);
QList<QGeoCoordinate> path() const;
void setManeuver(const QGeoManeuver &maneuver);
QGeoManeuver maneuver() const;
%If (Qt_5_12_0 -)
bool isLegLastSegment() const;
%End
};
%End

View File

@@ -0,0 +1,53 @@
// qgeoroutingmanager.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoRoutingManager : public QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include <qgeoroutingmanager.h>
%End
public:
virtual ~QGeoRoutingManager();
QString managerName() const;
int managerVersion() const;
QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) /Factory/;
QGeoRouteReply *updateRoute(const QGeoRoute &route, const QGeoCoordinate &position) /TransferThis/;
QGeoRouteRequest::TravelModes supportedTravelModes() const;
QGeoRouteRequest::FeatureTypes supportedFeatureTypes() const;
QGeoRouteRequest::FeatureWeights supportedFeatureWeights() const;
QGeoRouteRequest::RouteOptimizations supportedRouteOptimizations() const;
QGeoRouteRequest::SegmentDetails supportedSegmentDetails() const;
QGeoRouteRequest::ManeuverDetails supportedManeuverDetails() const;
void setLocale(const QLocale &locale);
QLocale locale() const;
void setMeasurementSystem(QLocale::MeasurementSystem system);
QLocale::MeasurementSystem measurementSystem() const;
signals:
void finished(QGeoRouteReply *reply);
void error(QGeoRouteReply *reply, QGeoRouteReply::Error error, QString errorString = QString());
};
%End

View File

@@ -0,0 +1,62 @@
// qgeoroutingmanagerengine.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QGeoRoutingManagerEngine : public QObject
{
%TypeHeaderCode
#include <qgeoroutingmanagerengine.h>
%End
public:
QGeoRoutingManagerEngine(const QVariantMap &parameters, QObject *parent /TransferThis/ = 0);
virtual ~QGeoRoutingManagerEngine();
QString managerName() const;
int managerVersion() const;
virtual QGeoRouteReply *calculateRoute(const QGeoRouteRequest &request) = 0 /Factory/;
virtual QGeoRouteReply *updateRoute(const QGeoRoute &route, const QGeoCoordinate &position) /Factory/;
QGeoRouteRequest::TravelModes supportedTravelModes() const;
QGeoRouteRequest::FeatureTypes supportedFeatureTypes() const;
QGeoRouteRequest::FeatureWeights supportedFeatureWeights() const;
QGeoRouteRequest::RouteOptimizations supportedRouteOptimizations() const;
QGeoRouteRequest::SegmentDetails supportedSegmentDetails() const;
QGeoRouteRequest::ManeuverDetails supportedManeuverDetails() const;
void setLocale(const QLocale &locale);
QLocale locale() const;
void setMeasurementSystem(QLocale::MeasurementSystem system);
QLocale::MeasurementSystem measurementSystem() const;
signals:
void finished(QGeoRouteReply *reply);
void error(QGeoRouteReply *reply, QGeoRouteReply::Error error, QString errorString = QString());
protected:
void setSupportedTravelModes(QGeoRouteRequest::TravelModes travelModes);
void setSupportedFeatureTypes(QGeoRouteRequest::FeatureTypes featureTypes);
void setSupportedFeatureWeights(QGeoRouteRequest::FeatureWeights featureWeights);
void setSupportedRouteOptimizations(QGeoRouteRequest::RouteOptimizations optimizations);
void setSupportedSegmentDetails(QGeoRouteRequest::SegmentDetails segmentDetails);
void setSupportedManeuverDetails(QGeoRouteRequest::ManeuverDetails maneuverDetails);
};
%End

View File

@@ -0,0 +1,224 @@
// qgeoserviceprovider.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_11_0 -)
class QNavigationManager;
%End
%If (Qt_5_5_0 -)
class QGeoServiceProvider : public QObject
{
%TypeHeaderCode
#include <qgeoserviceprovider.h>
%End
%ConvertToSubClassCode
static struct class_graph {
const char *name;
sipTypeDef **type;
int yes, no;
} graph[] = {
{sipName_QGeoCodingManager, &sipType_QGeoCodingManager, -1, 1},
{sipName_QGeoRoutingManagerEngine, &sipType_QGeoRoutingManagerEngine, -1, 2},
{sipName_QGeoCodeReply, &sipType_QGeoCodeReply, -1, 3},
{sipName_QPlaceReply, &sipType_QPlaceReply, 10, 4},
{sipName_QPlaceManagerEngine, &sipType_QPlaceManagerEngine, -1, 5},
{sipName_QGeoRoutingManager, &sipType_QGeoRoutingManager, -1, 6},
{sipName_QGeoCodingManagerEngine, &sipType_QGeoCodingManagerEngine, -1, 7},
{sipName_QGeoServiceProvider, &sipType_QGeoServiceProvider, -1, 8},
{sipName_QGeoRouteReply, &sipType_QGeoRouteReply, -1, 9},
{sipName_QPlaceManager, &sipType_QPlaceManager, -1, -1},
{sipName_QPlaceSearchSuggestionReply, &sipType_QPlaceSearchSuggestionReply, -1, 11},
{sipName_QPlaceMatchReply, &sipType_QPlaceMatchReply, -1, 12},
{sipName_QPlaceDetailsReply, &sipType_QPlaceDetailsReply, -1, 13},
{sipName_QPlaceContentReply, &sipType_QPlaceContentReply, -1, 14},
{sipName_QPlaceSearchReply, &sipType_QPlaceSearchReply, -1, 15},
{sipName_QPlaceIdReply, &sipType_QPlaceIdReply, -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
{
NoError,
NotSupportedError,
UnknownParameterError,
MissingRequiredParameterError,
ConnectionError,
%If (Qt_5_12_1 -)
LoaderError,
%End
};
enum RoutingFeature
{
NoRoutingFeatures,
OnlineRoutingFeature,
OfflineRoutingFeature,
LocalizedRoutingFeature,
RouteUpdatesFeature,
AlternativeRoutesFeature,
ExcludeAreasRoutingFeature,
AnyRoutingFeatures,
};
enum GeocodingFeature
{
NoGeocodingFeatures,
OnlineGeocodingFeature,
OfflineGeocodingFeature,
ReverseGeocodingFeature,
LocalizedGeocodingFeature,
AnyGeocodingFeatures,
};
enum MappingFeature
{
NoMappingFeatures,
OnlineMappingFeature,
OfflineMappingFeature,
LocalizedMappingFeature,
AnyMappingFeatures,
};
enum PlacesFeature
{
NoPlacesFeatures,
OnlinePlacesFeature,
OfflinePlacesFeature,
SavePlaceFeature,
RemovePlaceFeature,
SaveCategoryFeature,
RemoveCategoryFeature,
PlaceRecommendationsFeature,
SearchSuggestionsFeature,
LocalizedPlacesFeature,
NotificationsFeature,
PlaceMatchingFeature,
AnyPlacesFeatures,
};
typedef QFlags<QGeoServiceProvider::RoutingFeature> RoutingFeatures;
typedef QFlags<QGeoServiceProvider::GeocodingFeature> GeocodingFeatures;
typedef QFlags<QGeoServiceProvider::MappingFeature> MappingFeatures;
typedef QFlags<QGeoServiceProvider::PlacesFeature> PlacesFeatures;
static QStringList availableServiceProviders();
QGeoServiceProvider(const QString &providerName, const QVariantMap &parameters = QVariantMap(), bool allowExperimental = false);
virtual ~QGeoServiceProvider();
QGeoServiceProvider::RoutingFeatures routingFeatures() const;
QGeoServiceProvider::GeocodingFeatures geocodingFeatures() const;
QGeoServiceProvider::MappingFeatures mappingFeatures() const;
QGeoServiceProvider::PlacesFeatures placesFeatures() const;
QGeoCodingManager *geocodingManager() const;
QGeoRoutingManager *routingManager() const;
QPlaceManager *placeManager() const;
QGeoServiceProvider::Error error() const;
QString errorString() const;
void setParameters(const QVariantMap &parameters);
void setLocale(const QLocale &locale);
void setAllowExperimental(bool allow);
%If (Qt_5_11_0 -)
enum NavigationFeature
{
NoNavigationFeatures,
OnlineNavigationFeature,
OfflineNavigationFeature,
AnyNavigationFeatures,
};
%End
%If (Qt_5_11_0 -)
typedef QFlags<QGeoServiceProvider::NavigationFeature> NavigationFeatures;
%End
%If (Qt_5_11_0 -)
QGeoServiceProvider::NavigationFeatures navigationFeatures() const;
%End
%If (Qt_5_11_0 -)
QNavigationManager *navigationManager() const;
%End
%If (Qt_5_13_0 -)
QGeoServiceProvider::Error mappingError() const;
%End
%If (Qt_5_13_0 -)
QString mappingErrorString() const;
%End
%If (Qt_5_13_0 -)
QGeoServiceProvider::Error geocodingError() const;
%End
%If (Qt_5_13_0 -)
QString geocodingErrorString() const;
%End
%If (Qt_5_13_0 -)
QGeoServiceProvider::Error routingError() const;
%End
%If (Qt_5_13_0 -)
QString routingErrorString() const;
%End
%If (Qt_5_13_0 -)
QGeoServiceProvider::Error placesError() const;
%End
%If (Qt_5_13_0 -)
QString placesErrorString() const;
%End
%If (Qt_5_13_0 -)
QGeoServiceProvider::Error navigationError() const;
%End
%If (Qt_5_13_0 -)
QString navigationErrorString() const;
%End
};
%End
%If (Qt_5_5_0 -)
QFlags<QGeoServiceProvider::RoutingFeature> operator|(QGeoServiceProvider::RoutingFeature f1, QFlags<QGeoServiceProvider::RoutingFeature> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoServiceProvider::GeocodingFeature> operator|(QGeoServiceProvider::GeocodingFeature f1, QFlags<QGeoServiceProvider::GeocodingFeature> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoServiceProvider::MappingFeature> operator|(QGeoServiceProvider::MappingFeature f1, QFlags<QGeoServiceProvider::MappingFeature> f2);
%End
%If (Qt_5_5_0 -)
QFlags<QGeoServiceProvider::PlacesFeature> operator|(QGeoServiceProvider::PlacesFeature f1, QFlags<QGeoServiceProvider::PlacesFeature> f2);
%End
%If (Qt_5_11_0 -)
QFlags<QGeoServiceProvider::NavigationFeature> operator|(QGeoServiceProvider::NavigationFeature f1, QFlags<QGeoServiceProvider::NavigationFeature> f2);
%End

View File

@@ -0,0 +1,45 @@
// qlocation.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
namespace QLocation
{
%TypeHeaderCode
#include <qlocation.h>
%End
enum Visibility
{
UnspecifiedVisibility,
DeviceVisibility,
PrivateVisibility,
PublicVisibility,
};
typedef QFlags<QLocation::Visibility> VisibilityScope;
};
%End
%If (Qt_5_5_0 -)
QFlags<QLocation::Visibility> operator|(QLocation::Visibility f1, QFlags<QLocation::Visibility> f2);
%End

View File

@@ -0,0 +1,79 @@
// qplace.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlace
{
%TypeHeaderCode
#include <qplace.h>
%End
public:
QPlace();
QPlace(const QPlace &other);
~QPlace();
bool operator==(const QPlace &other) const;
bool operator!=(const QPlace &other) const;
QList<QPlaceCategory> categories() const;
void setCategory(const QPlaceCategory &category);
void setCategories(const QList<QPlaceCategory> &categories);
QGeoLocation location() const;
void setLocation(const QGeoLocation &location);
QPlaceRatings ratings() const;
void setRatings(const QPlaceRatings &ratings);
QPlaceSupplier supplier() const;
void setSupplier(const QPlaceSupplier &supplier);
QString attribution() const;
void setAttribution(const QString &attribution);
QPlaceIcon icon() const;
void setIcon(const QPlaceIcon &icon);
QPlaceContent::Collection content(QPlaceContent::Type type) const;
void setContent(QPlaceContent::Type type, const QPlaceContent::Collection &content);
void insertContent(QPlaceContent::Type type, const QPlaceContent::Collection &content);
int totalContentCount(QPlaceContent::Type type) const;
void setTotalContentCount(QPlaceContent::Type type, int total);
QString name() const;
void setName(const QString &name);
QString placeId() const;
void setPlaceId(const QString &identifier);
QString primaryPhone() const;
QString primaryFax() const;
QString primaryEmail() const;
QUrl primaryWebsite() const;
bool detailsFetched() const;
void setDetailsFetched(bool fetched);
QStringList extendedAttributeTypes() const;
QPlaceAttribute extendedAttribute(const QString &attributeType) const;
void setExtendedAttribute(const QString &attributeType, const QPlaceAttribute &attribute);
void removeExtendedAttribute(const QString &attributeType);
QStringList contactTypes() const;
QList<QPlaceContactDetail> contactDetails(const QString &contactType) const;
void setContactDetails(const QString &contactType, QList<QPlaceContactDetail> details);
void appendContactDetail(const QString &contactType, const QPlaceContactDetail &detail);
void removeContactDetails(const QString &contactType);
QLocation::Visibility visibility() const;
void setVisibility(QLocation::Visibility visibility);
bool isEmpty() const;
};
%End

View File

@@ -0,0 +1,47 @@
// qplaceattribute.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceAttribute
{
%TypeHeaderCode
#include <qplaceattribute.h>
%End
public:
static const QString OpeningHours;
static const QString Payment;
static const QString Provider;
QPlaceAttribute();
QPlaceAttribute(const QPlaceAttribute &other);
virtual ~QPlaceAttribute();
bool operator==(const QPlaceAttribute &other) const;
bool operator!=(const QPlaceAttribute &other) const;
QString label() const;
void setLabel(const QString &label);
QString text() const;
void setText(const QString &text);
bool isEmpty() const;
};
%End

View File

@@ -0,0 +1,48 @@
// qplacecategory.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceCategory
{
%TypeHeaderCode
#include <qplacecategory.h>
%End
public:
QPlaceCategory();
QPlaceCategory(const QPlaceCategory &other);
virtual ~QPlaceCategory();
bool operator==(const QPlaceCategory &other) const;
bool operator!=(const QPlaceCategory &other) const;
QString categoryId() const;
void setCategoryId(const QString &identifier);
QString name() const;
void setName(const QString &name);
QLocation::Visibility visibility() const;
void setVisibility(QLocation::Visibility visibility);
QPlaceIcon icon() const;
void setIcon(const QPlaceIcon &icon);
bool isEmpty() const;
};
%End

View File

@@ -0,0 +1,48 @@
// qplacecontactdetail.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceContactDetail
{
%TypeHeaderCode
#include <qplacecontactdetail.h>
%End
public:
static const QString Phone;
static const QString Email;
static const QString Website;
static const QString Fax;
QPlaceContactDetail();
QPlaceContactDetail(const QPlaceContactDetail &other);
virtual ~QPlaceContactDetail();
bool operator==(const QPlaceContactDetail &other) const;
bool operator!=(const QPlaceContactDetail &other) const;
QString label() const;
void setLabel(const QString &label);
QString value() const;
void setValue(const QString &value);
void clear();
};
%End

View File

@@ -0,0 +1,59 @@
// qplacecontent.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceContent
{
%TypeHeaderCode
#include <qplacecontent.h>
%End
typedef QMap<int, QPlaceContent> Collection;
public:
enum Type
{
NoType,
ImageType,
ReviewType,
EditorialType,
%If (Qt_5_11_0 -)
CustomType,
%End
};
QPlaceContent();
QPlaceContent(const QPlaceContent &other);
virtual ~QPlaceContent();
bool operator==(const QPlaceContent &other) const;
bool operator!=(const QPlaceContent &other) const;
QPlaceContent::Type type() const;
QPlaceSupplier supplier() const;
void setSupplier(const QPlaceSupplier &supplier);
QPlaceUser user() const;
void setUser(const QPlaceUser &user);
QString attribution() const;
void setAttribution(const QString &attribution);
};
%End

View File

@@ -0,0 +1,49 @@
// qplacecontentreply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceContentReply : public QPlaceReply
{
%TypeHeaderCode
#include <qplacecontentreply.h>
%End
public:
explicit QPlaceContentReply(QObject *parent /TransferThis/ = 0);
virtual ~QPlaceContentReply();
virtual QPlaceReply::Type type() const;
QPlaceContent::Collection content() const;
int totalCount() const;
QPlaceContentRequest request() const;
QPlaceContentRequest previousPageRequest() const;
QPlaceContentRequest nextPageRequest() const;
protected:
void setContent(const QPlaceContent::Collection &content);
void setTotalCount(int total);
void setRequest(const QPlaceContentRequest &request);
void setPreviousPageRequest(const QPlaceContentRequest &previous);
void setNextPageRequest(const QPlaceContentRequest &next);
};
%End

View File

@@ -0,0 +1,48 @@
// qplacecontentrequest.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceContentRequest
{
%TypeHeaderCode
#include <qplacecontentrequest.h>
%End
public:
QPlaceContentRequest();
QPlaceContentRequest(const QPlaceContentRequest &other);
~QPlaceContentRequest();
bool operator==(const QPlaceContentRequest &other) const;
bool operator!=(const QPlaceContentRequest &other) const;
QPlaceContent::Type contentType() const;
void setContentType(QPlaceContent::Type type);
QString placeId() const;
void setPlaceId(const QString &identifier);
QVariant contentContext() const;
void setContentContext(const QVariant &context);
int limit() const;
void setLimit(int limit);
void clear();
};
%End

View File

@@ -0,0 +1,41 @@
// qplacedetailsreply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceDetailsReply : public QPlaceReply
{
%TypeHeaderCode
#include <qplacedetailsreply.h>
%End
public:
explicit QPlaceDetailsReply(QObject *parent /TransferThis/ = 0);
virtual ~QPlaceDetailsReply();
virtual QPlaceReply::Type type() const;
QPlace place() const;
protected:
void setPlace(const QPlace &place);
};
%End

View File

@@ -0,0 +1,43 @@
// qplaceeditorial.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceEditorial : public QPlaceContent
{
%TypeHeaderCode
#include <qplaceeditorial.h>
%End
public:
QPlaceEditorial();
QPlaceEditorial(const QPlaceContent &other);
virtual ~QPlaceEditorial();
QString text() const;
void setText(const QString &text);
QString title() const;
void setTitle(const QString &data);
QString language() const;
void setLanguage(const QString &data);
};
%End

View File

@@ -0,0 +1,46 @@
// qplaceicon.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceIcon
{
%TypeHeaderCode
#include <qplaceicon.h>
%End
public:
static const QString SingleUrl;
QPlaceIcon();
QPlaceIcon(const QPlaceIcon &other);
~QPlaceIcon();
bool operator==(const QPlaceIcon &other) const;
bool operator!=(const QPlaceIcon &other) const;
QUrl url(const QSize &size = QSize()) const;
QPlaceManager *manager() const;
void setManager(QPlaceManager *manager);
QVariantMap parameters() const;
void setParameters(const QVariantMap &parameters);
bool isEmpty() const;
};
%End

View File

@@ -0,0 +1,50 @@
// qplaceidreply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceIdReply : public QPlaceReply
{
%TypeHeaderCode
#include <qplaceidreply.h>
%End
public:
enum OperationType
{
SavePlace,
SaveCategory,
RemovePlace,
RemoveCategory,
};
QPlaceIdReply(QPlaceIdReply::OperationType operationType, QObject *parent /TransferThis/ = 0);
virtual ~QPlaceIdReply();
virtual QPlaceReply::Type type() const;
QPlaceIdReply::OperationType operationType() const;
QString id() const;
protected:
void setId(const QString &identifier);
};
%End

View File

@@ -0,0 +1,43 @@
// qplaceimage.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceImage : public QPlaceContent
{
%TypeHeaderCode
#include <qplaceimage.h>
%End
public:
QPlaceImage();
QPlaceImage(const QPlaceContent &other);
virtual ~QPlaceImage();
QUrl url() const;
void setUrl(const QUrl &url);
QString imageId() const;
void setImageId(const QString &identifier);
QString mimeType() const;
void setMimeType(const QString &data);
};
%End

View File

@@ -0,0 +1,66 @@
// qplacemanager.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceManager : public QObject /NoDefaultCtors/
{
%TypeHeaderCode
#include <qplacemanager.h>
%End
public:
virtual ~QPlaceManager();
QString managerName() const;
int managerVersion() const;
QPlaceDetailsReply *getPlaceDetails(const QString &placeId) const;
QPlaceContentReply *getPlaceContent(const QPlaceContentRequest &request) const;
QPlaceSearchReply *search(const QPlaceSearchRequest &query) const;
QPlaceSearchSuggestionReply *searchSuggestions(const QPlaceSearchRequest &request) const;
QPlaceIdReply *savePlace(const QPlace &place);
QPlaceIdReply *removePlace(const QString &placeId);
QPlaceIdReply *saveCategory(const QPlaceCategory &category, const QString &parentId = QString());
QPlaceIdReply *removeCategory(const QString &categoryId);
QPlaceReply *initializeCategories();
QString parentCategoryId(const QString &categoryId) const;
QStringList childCategoryIds(const QString &parentId = QString()) const;
QPlaceCategory category(const QString &categoryId) const;
QList<QPlaceCategory> childCategories(const QString &parentId = QString()) const;
QList<QLocale> locales() const;
void setLocale(const QLocale &locale);
void setLocales(const QList<QLocale> &locale);
QPlace compatiblePlace(const QPlace &place);
QPlaceMatchReply *matchingPlaces(const QPlaceMatchRequest &request) const;
signals:
void finished(QPlaceReply *reply);
void error(QPlaceReply *, QPlaceReply::Error error, const QString &errorString = QString());
void placeAdded(const QString &placeId);
void placeUpdated(const QString &placeId);
void placeRemoved(const QString &placeId);
void categoryAdded(const QPlaceCategory &category, const QString &parentId);
void categoryUpdated(const QPlaceCategory &category, const QString &parentId);
void categoryRemoved(const QString &categoryId, const QString &parentId);
void dataChanged();
};
%End

View File

@@ -0,0 +1,70 @@
// qplacemanagerengine.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceManagerEngine : public QObject
{
%TypeHeaderCode
#include <qplacemanagerengine.h>
%End
public:
QPlaceManagerEngine(const QVariantMap &parameters, QObject *parent /TransferThis/ = 0);
virtual ~QPlaceManagerEngine();
QString managerName() const;
int managerVersion() const;
virtual QPlaceDetailsReply *getPlaceDetails(const QString &placeId);
virtual QPlaceContentReply *getPlaceContent(const QPlaceContentRequest &request);
virtual QPlaceSearchReply *search(const QPlaceSearchRequest &request);
virtual QPlaceSearchSuggestionReply *searchSuggestions(const QPlaceSearchRequest &request);
virtual QPlaceIdReply *savePlace(const QPlace &place);
virtual QPlaceIdReply *removePlace(const QString &placeId);
virtual QPlaceIdReply *saveCategory(const QPlaceCategory &category, const QString &parentId);
virtual QPlaceIdReply *removeCategory(const QString &categoryId);
virtual QPlaceReply *initializeCategories();
virtual QString parentCategoryId(const QString &categoryId) const;
virtual QStringList childCategoryIds(const QString &categoryId) const;
virtual QPlaceCategory category(const QString &categoryId) const;
virtual QList<QPlaceCategory> childCategories(const QString &parentId) const;
virtual QList<QLocale> locales() const;
virtual void setLocales(const QList<QLocale> &locales);
virtual QUrl constructIconUrl(const QPlaceIcon &icon, const QSize &size) const;
virtual QPlace compatiblePlace(const QPlace &original) const;
virtual QPlaceMatchReply *matchingPlaces(const QPlaceMatchRequest &request);
signals:
void finished(QPlaceReply *reply);
void error(QPlaceReply *, QPlaceReply::Error error, const QString &errorString = QString());
void placeAdded(const QString &placeId);
void placeUpdated(const QString &placeId);
void placeRemoved(const QString &placeId);
void categoryAdded(const QPlaceCategory &category, const QString &parentCategoryId);
void categoryUpdated(const QPlaceCategory &category, const QString &parentCategoryId);
void categoryRemoved(const QString &categoryId, const QString &parentCategoryId);
void dataChanged();
protected:
QPlaceManager *manager() const;
};
%End

View File

@@ -0,0 +1,43 @@
// qplacematchreply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceMatchReply : public QPlaceReply
{
%TypeHeaderCode
#include <qplacematchreply.h>
%End
public:
explicit QPlaceMatchReply(QObject *parent /TransferThis/ = 0);
virtual ~QPlaceMatchReply();
virtual QPlaceReply::Type type() const;
QList<QPlace> places() const;
QPlaceMatchRequest request() const;
protected:
void setPlaces(const QList<QPlace> &results);
void setRequest(const QPlaceMatchRequest &request);
};
%End

View File

@@ -0,0 +1,46 @@
// qplacematchrequest.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceMatchRequest
{
%TypeHeaderCode
#include <qplacematchrequest.h>
%End
public:
static const QString AlternativeId;
QPlaceMatchRequest();
QPlaceMatchRequest(const QPlaceMatchRequest &other);
~QPlaceMatchRequest();
bool operator==(const QPlaceMatchRequest &other) const;
bool operator!=(const QPlaceMatchRequest &other) const;
QList<QPlace> places() const;
void setPlaces(const QList<QPlace> places);
void setResults(const QList<QPlaceSearchResult> &results);
QVariantMap parameters() const;
void setParameters(const QVariantMap &parameters);
void clear();
};
%End

View File

@@ -0,0 +1,39 @@
// qplaceproposedsearchresult.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceProposedSearchResult : public QPlaceSearchResult
{
%TypeHeaderCode
#include <qplaceproposedsearchresult.h>
%End
public:
QPlaceProposedSearchResult();
QPlaceProposedSearchResult(const QPlaceSearchResult &other);
virtual ~QPlaceProposedSearchResult();
QPlaceSearchRequest searchRequest() const;
void setSearchRequest(const QPlaceSearchRequest &request);
};
%End

View File

@@ -0,0 +1,46 @@
// qplaceratings.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceRatings
{
%TypeHeaderCode
#include <qplaceratings.h>
%End
public:
QPlaceRatings();
QPlaceRatings(const QPlaceRatings &other);
~QPlaceRatings();
bool operator==(const QPlaceRatings &other) const;
bool operator!=(const QPlaceRatings &other) const;
qreal average() const;
void setAverage(qreal average);
int count() const;
void setCount(int count);
qreal maximum() const;
void setMaximum(qreal max);
bool isEmpty() const;
};
%End

View File

@@ -0,0 +1,82 @@
// qplacereply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceReply : public QObject
{
%TypeHeaderCode
#include <qplacereply.h>
%End
public:
enum Error
{
NoError,
PlaceDoesNotExistError,
CategoryDoesNotExistError,
CommunicationError,
ParseError,
PermissionsError,
UnsupportedError,
BadArgumentError,
CancelError,
UnknownError,
};
enum Type
{
Reply,
DetailsReply,
SearchReply,
SearchSuggestionReply,
ContentReply,
IdReply,
MatchReply,
};
explicit QPlaceReply(QObject *parent /TransferThis/ = 0);
virtual ~QPlaceReply();
bool isFinished() const;
virtual QPlaceReply::Type type() const;
QString errorString() const;
QPlaceReply::Error error() const;
public slots:
virtual void abort();
signals:
%If (Qt_5_9_0 -)
void aborted();
%End
void finished();
void error(QPlaceReply::Error error, const QString &errorString = QString());
%If (Qt_5_12_0 -)
void contentUpdated();
%End
protected:
void setFinished(bool finished);
void setError(QPlaceReply::Error error, const QString &errorString);
};
%End

View File

@@ -0,0 +1,43 @@
// qplaceresult.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceResult : public QPlaceSearchResult
{
%TypeHeaderCode
#include <qplaceresult.h>
%End
public:
QPlaceResult();
QPlaceResult(const QPlaceSearchResult &other);
virtual ~QPlaceResult();
qreal distance() const;
void setDistance(qreal distance);
QPlace place() const;
void setPlace(const QPlace &place);
bool isSponsored() const;
void setSponsored(bool sponsored);
};
%End

View File

@@ -0,0 +1,49 @@
// qplacereview.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceReview : public QPlaceContent
{
%TypeHeaderCode
#include <qplacereview.h>
%End
public:
QPlaceReview();
QPlaceReview(const QPlaceContent &other);
virtual ~QPlaceReview();
QDateTime dateTime() const;
void setDateTime(const QDateTime &dt);
QString text() const;
void setText(const QString &text);
QString language() const;
void setLanguage(const QString &data);
qreal rating() const;
void setRating(qreal data);
QString reviewId() const;
void setReviewId(const QString &identifier);
QString title() const;
void setTitle(const QString &data);
};
%End

View File

@@ -0,0 +1,47 @@
// qplacesearchreply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceSearchReply : public QPlaceReply
{
%TypeHeaderCode
#include <qplacesearchreply.h>
%End
public:
explicit QPlaceSearchReply(QObject *parent /TransferThis/ = 0);
virtual ~QPlaceSearchReply();
virtual QPlaceReply::Type type() const;
QList<QPlaceSearchResult> results() const;
QPlaceSearchRequest request() const;
QPlaceSearchRequest previousPageRequest() const;
QPlaceSearchRequest nextPageRequest() const;
protected:
void setResults(const QList<QPlaceSearchResult> &results);
void setRequest(const QPlaceSearchRequest &request);
void setPreviousPageRequest(const QPlaceSearchRequest &previous);
void setNextPageRequest(const QPlaceSearchRequest &next);
};
%End

View File

@@ -0,0 +1,64 @@
// qplacesearchrequest.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceSearchRequest
{
%TypeHeaderCode
#include <qplacesearchrequest.h>
%End
public:
enum RelevanceHint
{
UnspecifiedHint,
DistanceHint,
LexicalPlaceNameHint,
};
QPlaceSearchRequest();
QPlaceSearchRequest(const QPlaceSearchRequest &other);
~QPlaceSearchRequest();
bool operator==(const QPlaceSearchRequest &other) const;
bool operator!=(const QPlaceSearchRequest &other) const;
QString searchTerm() const;
void setSearchTerm(const QString &term);
QList<QPlaceCategory> categories() const;
void setCategory(const QPlaceCategory &category);
void setCategories(const QList<QPlaceCategory> &categories);
QGeoShape searchArea() const;
void setSearchArea(const QGeoShape &area);
QString recommendationId() const;
void setRecommendationId(const QString &recommendationId);
QVariant searchContext() const;
void setSearchContext(const QVariant &context);
QLocation::VisibilityScope visibilityScope() const;
void setVisibilityScope(QLocation::VisibilityScope visibilityScopes);
QPlaceSearchRequest::RelevanceHint relevanceHint() const;
void setRelevanceHint(QPlaceSearchRequest::RelevanceHint hint);
int limit() const;
void setLimit(int limit);
void clear();
};
%End

View File

@@ -0,0 +1,52 @@
// qplacesearchresult.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceSearchResult
{
%TypeHeaderCode
#include <qplacesearchresult.h>
%End
public:
QPlaceSearchResult();
QPlaceSearchResult(const QPlaceSearchResult &other);
virtual ~QPlaceSearchResult();
bool operator==(const QPlaceSearchResult &other) const;
bool operator!=(const QPlaceSearchResult &other) const;
enum SearchResultType
{
UnknownSearchResult,
PlaceResult,
ProposedSearchResult,
};
QPlaceSearchResult::SearchResultType type() const;
QString title() const;
void setTitle(const QString &title);
QPlaceIcon icon() const;
void setIcon(const QPlaceIcon &icon);
};
%End

View File

@@ -0,0 +1,41 @@
// qplacesearchsuggestionreply.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceSearchSuggestionReply : public QPlaceReply
{
%TypeHeaderCode
#include <qplacesearchsuggestionreply.h>
%End
public:
explicit QPlaceSearchSuggestionReply(QObject *parent /TransferThis/ = 0);
virtual ~QPlaceSearchSuggestionReply();
QStringList suggestions() const;
virtual QPlaceReply::Type type() const;
protected:
void setSuggestions(const QStringList &suggestions);
};
%End

View File

@@ -0,0 +1,48 @@
// qplacesupplier.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceSupplier
{
%TypeHeaderCode
#include <qplacesupplier.h>
%End
public:
QPlaceSupplier();
QPlaceSupplier(const QPlaceSupplier &other);
~QPlaceSupplier();
bool operator==(const QPlaceSupplier &other) const;
bool operator!=(const QPlaceSupplier &other) const;
QString name() const;
void setName(const QString &data);
QString supplierId() const;
void setSupplierId(const QString &identifier);
QUrl url() const;
void setUrl(const QUrl &data);
QPlaceIcon icon() const;
void setIcon(const QPlaceIcon &icon);
bool isEmpty() const;
};
%End

View File

@@ -0,0 +1,43 @@
// qplaceuser.sip generated by MetaSIP
//
// This file is part of the QtLocation 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_5_0 -)
class QPlaceUser
{
%TypeHeaderCode
#include <qplaceuser.h>
%End
public:
QPlaceUser();
QPlaceUser(const QPlaceUser &other);
~QPlaceUser();
bool operator==(const QPlaceUser &other) const;
bool operator!=(const QPlaceUser &other) const;
QString userId() const;
void setUserId(const QString &identifier);
QString name() const;
void setName(const QString &name);
};
%End