// qgeorouterequest.sip generated by MetaSIP // // This file is part of the QtLocation Python extension module. // // Copyright (c) 2017 Riverbank Computing Limited // // 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 %End public: enum TravelMode { CarTravel, PedestrianTravel, BicycleTravel, PublicTransitTravel, TruckTravel, }; typedef QFlags TravelModes; enum FeatureType { NoFeature, TollFeature, HighwayFeature, PublicTransitFeature, FerryFeature, TunnelFeature, DirtRoadFeature, ParksFeature, MotorPoolLaneFeature, }; typedef QFlags FeatureTypes; enum FeatureWeight { NeutralFeatureWeight, PreferFeatureWeight, RequireFeatureWeight, AvoidFeatureWeight, DisallowFeatureWeight, }; typedef QFlags FeatureWeights; enum RouteOptimization { ShortestRoute, FastestRoute, MostEconomicRoute, MostScenicRoute, }; typedef QFlags RouteOptimizations; enum SegmentDetail { NoSegmentData, BasicSegmentData, }; typedef QFlags SegmentDetails; enum ManeuverDetail { NoManeuvers, BasicManeuvers, }; typedef QFlags ManeuverDetails; explicit QGeoRouteRequest(const QList &waypoints = QList()); 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 &waypoints); QList waypoints() const; void setExcludeAreas(const QList &areas); QList excludeAreas() const; void setNumberAlternativeRoutes(int alternatives); int numberAlternativeRoutes() const; void setTravelModes(QFlags travelModes); QFlags travelModes() const; void setFeatureWeight(QGeoRouteRequest::FeatureType featureType, QGeoRouteRequest::FeatureWeight featureWeight); QGeoRouteRequest::FeatureWeight featureWeight(QGeoRouteRequest::FeatureType featureType) const; QList featureTypes() const; void setRouteOptimization(QFlags optimization); QFlags routeOptimization() const; void setSegmentDetail(QGeoRouteRequest::SegmentDetail segmentDetail); QGeoRouteRequest::SegmentDetail segmentDetail() const; void setManeuverDetail(QGeoRouteRequest::ManeuverDetail maneuverDetail); QGeoRouteRequest::ManeuverDetail maneuverDetail() const; }; %End %If (Qt_5_5_0 -) QFlags operator|(QGeoRouteRequest::TravelMode f1, QFlags f2); %End %If (Qt_5_5_0 -) QFlags operator|(QGeoRouteRequest::FeatureType f1, QFlags f2); %End %If (Qt_5_5_0 -) QFlags operator|(QGeoRouteRequest::FeatureWeight f1, QFlags f2); %End %If (Qt_5_5_0 -) QFlags operator|(QGeoRouteRequest::RouteOptimization f1, QFlags f2); %End %If (Qt_5_5_0 -) QFlags operator|(QGeoRouteRequest::SegmentDetail f1, QFlags f2); %End %If (Qt_5_5_0 -) QFlags operator|(QGeoRouteRequest::ManeuverDetail f1, QFlags f2); %End