// +build !minimal #define protected public #define private public #include "location.h" #include "_cgo_export.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void* QGeoManeuver_NewQGeoManeuver() { return new QGeoManeuver(); } void* QGeoManeuver_NewQGeoManeuver2(void* other) { return new QGeoManeuver(*static_cast(other)); } long long QGeoManeuver_Direction(void* ptr) { return static_cast(ptr)->direction(); } double QGeoManeuver_DistanceToNextInstruction(void* ptr) { return static_cast(ptr)->distanceToNextInstruction(); } char* QGeoManeuver_InstructionText(void* ptr) { return const_cast(static_cast(ptr)->instructionText().toUtf8().constData()); } char QGeoManeuver_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void* QGeoManeuver_Position(void* ptr) { return new QGeoCoordinate(static_cast(ptr)->position()); } void QGeoManeuver_SetDirection(void* ptr, long long direction) { static_cast(ptr)->setDirection(static_cast(direction)); } void QGeoManeuver_SetDistanceToNextInstruction(void* ptr, double distance) { static_cast(ptr)->setDistanceToNextInstruction(distance); } void QGeoManeuver_SetInstructionText(void* ptr, char* instructionText) { static_cast(ptr)->setInstructionText(QString(instructionText)); } void QGeoManeuver_SetPosition(void* ptr, void* position) { static_cast(ptr)->setPosition(*static_cast(position)); } void QGeoManeuver_SetTimeToNextInstruction(void* ptr, int secs) { static_cast(ptr)->setTimeToNextInstruction(secs); } void QGeoManeuver_SetWaypoint(void* ptr, void* coordinate) { static_cast(ptr)->setWaypoint(*static_cast(coordinate)); } int QGeoManeuver_TimeToNextInstruction(void* ptr) { return static_cast(ptr)->timeToNextInstruction(); } void* QGeoManeuver_Waypoint(void* ptr) { return new QGeoCoordinate(static_cast(ptr)->waypoint()); } void QGeoManeuver_DestroyQGeoManeuver(void* ptr) { static_cast(ptr)->~QGeoManeuver(); } void* QGeoRoute_NewQGeoRoute() { return new QGeoRoute(); } void* QGeoRoute_NewQGeoRoute2(void* other) { return new QGeoRoute(*static_cast(other)); } void* QGeoRoute_Bounds(void* ptr) { return new QGeoRectangle(static_cast(ptr)->bounds()); } double QGeoRoute_Distance(void* ptr) { return static_cast(ptr)->distance(); } void* QGeoRoute_FirstRouteSegment(void* ptr) { return new QGeoRouteSegment(static_cast(ptr)->firstRouteSegment()); } void* QGeoRoute_Request(void* ptr) { return new QGeoRouteRequest(static_cast(ptr)->request()); } char* QGeoRoute_RouteId(void* ptr) { return const_cast(static_cast(ptr)->routeId().toUtf8().constData()); } void QGeoRoute_SetBounds(void* ptr, void* bounds) { static_cast(ptr)->setBounds(*static_cast(bounds)); } void QGeoRoute_SetDistance(void* ptr, double distance) { static_cast(ptr)->setDistance(distance); } void QGeoRoute_SetFirstRouteSegment(void* ptr, void* routeSegment) { static_cast(ptr)->setFirstRouteSegment(*static_cast(routeSegment)); } void QGeoRoute_SetRequest(void* ptr, void* request) { static_cast(ptr)->setRequest(*static_cast(request)); } void QGeoRoute_SetRouteId(void* ptr, char* id) { static_cast(ptr)->setRouteId(QString(id)); } void QGeoRoute_SetTravelMode(void* ptr, long long mode) { static_cast(ptr)->setTravelMode(static_cast(mode)); } void QGeoRoute_SetTravelTime(void* ptr, int secs) { static_cast(ptr)->setTravelTime(secs); } long long QGeoRoute_TravelMode(void* ptr) { return static_cast(ptr)->travelMode(); } int QGeoRoute_TravelTime(void* ptr) { return static_cast(ptr)->travelTime(); } void QGeoRoute_DestroyQGeoRoute(void* ptr) { static_cast(ptr)->~QGeoRoute(); } class MyQGeoRouteReply: public QGeoRouteReply { public: MyQGeoRouteReply(Error error, const QString &errorString, QObject *parent) : QGeoRouteReply(error, errorString, parent) {}; MyQGeoRouteReply(const QGeoRouteRequest &request, QObject *parent) : QGeoRouteReply(request, parent) {}; void abort() { callbackQGeoRouteReply_Abort(this); }; void Signal_Error2(QGeoRouteReply::Error error, const QString & errorString) { callbackQGeoRouteReply_Error2(this, error, const_cast(errorString.toUtf8().constData())); }; void Signal_Finished() { callbackQGeoRouteReply_Finished(this); }; ~MyQGeoRouteReply() { callbackQGeoRouteReply_DestroyQGeoRouteReply(this); }; void timerEvent(QTimerEvent * event) { callbackQGeoRouteReply_TimerEvent(this, event); }; void childEvent(QChildEvent * event) { callbackQGeoRouteReply_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQGeoRouteReply_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQGeoRouteReply_CustomEvent(this, event); }; void deleteLater() { callbackQGeoRouteReply_DeleteLater(this); }; void disconnectNotify(const QMetaMethod & sign) { callbackQGeoRouteReply_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQGeoRouteReply_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQGeoRouteReply_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQGeoRouteReply_MetaObject(const_cast(this))); }; }; void* QGeoRouteReply_NewQGeoRouteReply(long long error, char* errorString, void* parent) { return new MyQGeoRouteReply(static_cast(error), QString(errorString), static_cast(parent)); } void* QGeoRouteReply_NewQGeoRouteReply2(void* request, void* parent) { return new MyQGeoRouteReply(*static_cast(request), static_cast(parent)); } void QGeoRouteReply_Abort(void* ptr) { static_cast(ptr)->abort(); } void QGeoRouteReply_AbortDefault(void* ptr) { static_cast(ptr)->QGeoRouteReply::abort(); } void QGeoRouteReply_ConnectError2(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QGeoRouteReply::error), static_cast(ptr), static_cast(&MyQGeoRouteReply::Signal_Error2)); } void QGeoRouteReply_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QGeoRouteReply::error), static_cast(ptr), static_cast(&MyQGeoRouteReply::Signal_Error2)); } void QGeoRouteReply_Error2(void* ptr, long long error, char* errorString) { static_cast(ptr)->error(static_cast(error), QString(errorString)); } long long QGeoRouteReply_Error(void* ptr) { return static_cast(ptr)->error(); } char* QGeoRouteReply_ErrorString(void* ptr) { return const_cast(static_cast(ptr)->errorString().toUtf8().constData()); } void QGeoRouteReply_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QGeoRouteReply::finished), static_cast(ptr), static_cast(&MyQGeoRouteReply::Signal_Finished)); } void QGeoRouteReply_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QGeoRouteReply::finished), static_cast(ptr), static_cast(&MyQGeoRouteReply::Signal_Finished)); } void QGeoRouteReply_Finished(void* ptr) { static_cast(ptr)->finished(); } char QGeoRouteReply_IsFinished(void* ptr) { return static_cast(ptr)->isFinished(); } void* QGeoRouteReply_Request(void* ptr) { return new QGeoRouteRequest(static_cast(ptr)->request()); } void QGeoRouteReply_SetError(void* ptr, long long error, char* errorString) { static_cast(ptr)->setError(static_cast(error), QString(errorString)); } void QGeoRouteReply_SetFinished(void* ptr, char finished) { static_cast(ptr)->setFinished(finished != 0); } void QGeoRouteReply_DestroyQGeoRouteReply(void* ptr) { static_cast(ptr)->~QGeoRouteReply(); } void QGeoRouteReply_DestroyQGeoRouteReplyDefault(void* ptr) { } void QGeoRouteReply_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QGeoRouteReply_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRouteReply::timerEvent(static_cast(event)); } void QGeoRouteReply_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QGeoRouteReply_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRouteReply::childEvent(static_cast(event)); } void QGeoRouteReply_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QGeoRouteReply_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoRouteReply::connectNotify(*static_cast(sign)); } void QGeoRouteReply_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QGeoRouteReply_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRouteReply::customEvent(static_cast(event)); } void QGeoRouteReply_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QGeoRouteReply_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QGeoRouteReply::deleteLater(); } void QGeoRouteReply_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QGeoRouteReply_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoRouteReply::disconnectNotify(*static_cast(sign)); } char QGeoRouteReply_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QGeoRouteReply_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QGeoRouteReply::event(static_cast(e)); } char QGeoRouteReply_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QGeoRouteReply_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QGeoRouteReply::eventFilter(static_cast(watched), static_cast(event)); } void* QGeoRouteReply_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QGeoRouteReply_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QGeoRouteReply::metaObject()); } void* QGeoRouteRequest_NewQGeoRouteRequest2(void* origin, void* destination) { return new QGeoRouteRequest(*static_cast(origin), *static_cast(destination)); } void* QGeoRouteRequest_NewQGeoRouteRequest3(void* other) { return new QGeoRouteRequest(*static_cast(other)); } long long QGeoRouteRequest_FeatureWeight(void* ptr, long long featureType) { return static_cast(ptr)->featureWeight(static_cast(featureType)); } long long QGeoRouteRequest_ManeuverDetail(void* ptr) { return static_cast(ptr)->maneuverDetail(); } int QGeoRouteRequest_NumberAlternativeRoutes(void* ptr) { return static_cast(ptr)->numberAlternativeRoutes(); } long long QGeoRouteRequest_RouteOptimization(void* ptr) { return static_cast(ptr)->routeOptimization(); } long long QGeoRouteRequest_SegmentDetail(void* ptr) { return static_cast(ptr)->segmentDetail(); } void QGeoRouteRequest_SetFeatureWeight(void* ptr, long long featureType, long long featureWeight) { static_cast(ptr)->setFeatureWeight(static_cast(featureType), static_cast(featureWeight)); } void QGeoRouteRequest_SetManeuverDetail(void* ptr, long long maneuverDetail) { static_cast(ptr)->setManeuverDetail(static_cast(maneuverDetail)); } void QGeoRouteRequest_SetNumberAlternativeRoutes(void* ptr, int alternatives) { static_cast(ptr)->setNumberAlternativeRoutes(alternatives); } void QGeoRouteRequest_SetRouteOptimization(void* ptr, long long optimization) { static_cast(ptr)->setRouteOptimization(static_cast(optimization)); } void QGeoRouteRequest_SetSegmentDetail(void* ptr, long long segmentDetail) { static_cast(ptr)->setSegmentDetail(static_cast(segmentDetail)); } void QGeoRouteRequest_SetTravelModes(void* ptr, long long travelModes) { static_cast(ptr)->setTravelModes(static_cast(travelModes)); } long long QGeoRouteRequest_TravelModes(void* ptr) { return static_cast(ptr)->travelModes(); } void QGeoRouteRequest_DestroyQGeoRouteRequest(void* ptr) { static_cast(ptr)->~QGeoRouteRequest(); } void* QGeoRouteSegment_NewQGeoRouteSegment() { return new QGeoRouteSegment(); } void* QGeoRouteSegment_NewQGeoRouteSegment2(void* other) { return new QGeoRouteSegment(*static_cast(other)); } double QGeoRouteSegment_Distance(void* ptr) { return static_cast(ptr)->distance(); } char QGeoRouteSegment_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void* QGeoRouteSegment_Maneuver(void* ptr) { return new QGeoManeuver(static_cast(ptr)->maneuver()); } void* QGeoRouteSegment_NextRouteSegment(void* ptr) { return new QGeoRouteSegment(static_cast(ptr)->nextRouteSegment()); } void QGeoRouteSegment_SetDistance(void* ptr, double distance) { static_cast(ptr)->setDistance(distance); } void QGeoRouteSegment_SetManeuver(void* ptr, void* maneuver) { static_cast(ptr)->setManeuver(*static_cast(maneuver)); } void QGeoRouteSegment_SetNextRouteSegment(void* ptr, void* routeSegment) { static_cast(ptr)->setNextRouteSegment(*static_cast(routeSegment)); } void QGeoRouteSegment_SetTravelTime(void* ptr, int secs) { static_cast(ptr)->setTravelTime(secs); } int QGeoRouteSegment_TravelTime(void* ptr) { return static_cast(ptr)->travelTime(); } void QGeoRouteSegment_DestroyQGeoRouteSegment(void* ptr) { static_cast(ptr)->~QGeoRouteSegment(); } class MyQGeoRoutingManager: public QGeoRoutingManager { public: void Signal_Error(QGeoRouteReply * reply, QGeoRouteReply::Error error, QString errorString) { callbackQGeoRoutingManager_Error(this, reply, error, const_cast(errorString.toUtf8().constData())); }; void Signal_Finished(QGeoRouteReply * reply) { callbackQGeoRoutingManager_Finished(this, reply); }; void timerEvent(QTimerEvent * event) { callbackQGeoRoutingManager_TimerEvent(this, event); }; void childEvent(QChildEvent * event) { callbackQGeoRoutingManager_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQGeoRoutingManager_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQGeoRoutingManager_CustomEvent(this, event); }; void deleteLater() { callbackQGeoRoutingManager_DeleteLater(this); }; void disconnectNotify(const QMetaMethod & sign) { callbackQGeoRoutingManager_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQGeoRoutingManager_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQGeoRoutingManager_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQGeoRoutingManager_MetaObject(const_cast(this))); }; }; void* QGeoRoutingManager_CalculateRoute(void* ptr, void* request) { return static_cast(ptr)->calculateRoute(*static_cast(request)); } void QGeoRoutingManager_ConnectError(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QGeoRoutingManager::error), static_cast(ptr), static_cast(&MyQGeoRoutingManager::Signal_Error)); } void QGeoRoutingManager_DisconnectError(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QGeoRoutingManager::error), static_cast(ptr), static_cast(&MyQGeoRoutingManager::Signal_Error)); } void QGeoRoutingManager_Error(void* ptr, void* reply, long long error, char* errorString) { static_cast(ptr)->error(static_cast(reply), static_cast(error), QString(errorString)); } void QGeoRoutingManager_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QGeoRoutingManager::finished), static_cast(ptr), static_cast(&MyQGeoRoutingManager::Signal_Finished)); } void QGeoRoutingManager_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QGeoRoutingManager::finished), static_cast(ptr), static_cast(&MyQGeoRoutingManager::Signal_Finished)); } void QGeoRoutingManager_Finished(void* ptr, void* reply) { static_cast(ptr)->finished(static_cast(reply)); } void* QGeoRoutingManager_Locale(void* ptr) { return new QLocale(static_cast(ptr)->locale()); } char* QGeoRoutingManager_ManagerName(void* ptr) { return const_cast(static_cast(ptr)->managerName().toUtf8().constData()); } int QGeoRoutingManager_ManagerVersion(void* ptr) { return static_cast(ptr)->managerVersion(); } long long QGeoRoutingManager_MeasurementSystem(void* ptr) { return static_cast(ptr)->measurementSystem(); } void QGeoRoutingManager_SetLocale(void* ptr, void* locale) { static_cast(ptr)->setLocale(*static_cast(locale)); } void QGeoRoutingManager_SetMeasurementSystem(void* ptr, long long system) { static_cast(ptr)->setMeasurementSystem(static_cast(system)); } long long QGeoRoutingManager_SupportedFeatureTypes(void* ptr) { return static_cast(ptr)->supportedFeatureTypes(); } long long QGeoRoutingManager_SupportedFeatureWeights(void* ptr) { return static_cast(ptr)->supportedFeatureWeights(); } long long QGeoRoutingManager_SupportedManeuverDetails(void* ptr) { return static_cast(ptr)->supportedManeuverDetails(); } long long QGeoRoutingManager_SupportedRouteOptimizations(void* ptr) { return static_cast(ptr)->supportedRouteOptimizations(); } long long QGeoRoutingManager_SupportedSegmentDetails(void* ptr) { return static_cast(ptr)->supportedSegmentDetails(); } long long QGeoRoutingManager_SupportedTravelModes(void* ptr) { return static_cast(ptr)->supportedTravelModes(); } void* QGeoRoutingManager_UpdateRoute(void* ptr, void* route, void* position) { return static_cast(ptr)->updateRoute(*static_cast(route), *static_cast(position)); } void QGeoRoutingManager_DestroyQGeoRoutingManager(void* ptr) { static_cast(ptr)->~QGeoRoutingManager(); } void QGeoRoutingManager_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QGeoRoutingManager_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRoutingManager::timerEvent(static_cast(event)); } void QGeoRoutingManager_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QGeoRoutingManager_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRoutingManager::childEvent(static_cast(event)); } void QGeoRoutingManager_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QGeoRoutingManager_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoRoutingManager::connectNotify(*static_cast(sign)); } void QGeoRoutingManager_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QGeoRoutingManager_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRoutingManager::customEvent(static_cast(event)); } void QGeoRoutingManager_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QGeoRoutingManager_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QGeoRoutingManager::deleteLater(); } void QGeoRoutingManager_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QGeoRoutingManager_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoRoutingManager::disconnectNotify(*static_cast(sign)); } char QGeoRoutingManager_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QGeoRoutingManager_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QGeoRoutingManager::event(static_cast(e)); } char QGeoRoutingManager_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QGeoRoutingManager_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QGeoRoutingManager::eventFilter(static_cast(watched), static_cast(event)); } void* QGeoRoutingManager_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QGeoRoutingManager_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QGeoRoutingManager::metaObject()); } class MyQGeoRoutingManagerEngine: public QGeoRoutingManagerEngine { public: QGeoRouteReply * calculateRoute(const QGeoRouteRequest & request) { return static_cast(callbackQGeoRoutingManagerEngine_CalculateRoute(this, const_cast(&request))); }; void Signal_Error(QGeoRouteReply * reply, QGeoRouteReply::Error error, QString errorString) { callbackQGeoRoutingManagerEngine_Error(this, reply, error, const_cast(errorString.toUtf8().constData())); }; void Signal_Finished(QGeoRouteReply * reply) { callbackQGeoRoutingManagerEngine_Finished(this, reply); }; QGeoRouteReply * updateRoute(const QGeoRoute & route, const QGeoCoordinate & position) { return static_cast(callbackQGeoRoutingManagerEngine_UpdateRoute(this, const_cast(&route), const_cast(&position))); }; ~MyQGeoRoutingManagerEngine() { callbackQGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngine(this); }; void timerEvent(QTimerEvent * event) { callbackQGeoRoutingManagerEngine_TimerEvent(this, event); }; void childEvent(QChildEvent * event) { callbackQGeoRoutingManagerEngine_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQGeoRoutingManagerEngine_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQGeoRoutingManagerEngine_CustomEvent(this, event); }; void deleteLater() { callbackQGeoRoutingManagerEngine_DeleteLater(this); }; void disconnectNotify(const QMetaMethod & sign) { callbackQGeoRoutingManagerEngine_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQGeoRoutingManagerEngine_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQGeoRoutingManagerEngine_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQGeoRoutingManagerEngine_MetaObject(const_cast(this))); }; }; void* QGeoRoutingManagerEngine_CalculateRoute(void* ptr, void* request) { return static_cast(ptr)->calculateRoute(*static_cast(request)); } void QGeoRoutingManagerEngine_ConnectError(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QGeoRoutingManagerEngine::error), static_cast(ptr), static_cast(&MyQGeoRoutingManagerEngine::Signal_Error)); } void QGeoRoutingManagerEngine_DisconnectError(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QGeoRoutingManagerEngine::error), static_cast(ptr), static_cast(&MyQGeoRoutingManagerEngine::Signal_Error)); } void QGeoRoutingManagerEngine_Error(void* ptr, void* reply, long long error, char* errorString) { static_cast(ptr)->error(static_cast(reply), static_cast(error), QString(errorString)); } void QGeoRoutingManagerEngine_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QGeoRoutingManagerEngine::finished), static_cast(ptr), static_cast(&MyQGeoRoutingManagerEngine::Signal_Finished)); } void QGeoRoutingManagerEngine_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QGeoRoutingManagerEngine::finished), static_cast(ptr), static_cast(&MyQGeoRoutingManagerEngine::Signal_Finished)); } void QGeoRoutingManagerEngine_Finished(void* ptr, void* reply) { static_cast(ptr)->finished(static_cast(reply)); } void* QGeoRoutingManagerEngine_Locale(void* ptr) { return new QLocale(static_cast(ptr)->locale()); } char* QGeoRoutingManagerEngine_ManagerName(void* ptr) { return const_cast(static_cast(ptr)->managerName().toUtf8().constData()); } int QGeoRoutingManagerEngine_ManagerVersion(void* ptr) { return static_cast(ptr)->managerVersion(); } long long QGeoRoutingManagerEngine_MeasurementSystem(void* ptr) { return static_cast(ptr)->measurementSystem(); } void QGeoRoutingManagerEngine_SetLocale(void* ptr, void* locale) { static_cast(ptr)->setLocale(*static_cast(locale)); } void QGeoRoutingManagerEngine_SetMeasurementSystem(void* ptr, long long system) { static_cast(ptr)->setMeasurementSystem(static_cast(system)); } void QGeoRoutingManagerEngine_SetSupportedFeatureTypes(void* ptr, long long featureTypes) { static_cast(ptr)->setSupportedFeatureTypes(static_cast(featureTypes)); } void QGeoRoutingManagerEngine_SetSupportedFeatureWeights(void* ptr, long long featureWeights) { static_cast(ptr)->setSupportedFeatureWeights(static_cast(featureWeights)); } void QGeoRoutingManagerEngine_SetSupportedManeuverDetails(void* ptr, long long maneuverDetails) { static_cast(ptr)->setSupportedManeuverDetails(static_cast(maneuverDetails)); } void QGeoRoutingManagerEngine_SetSupportedRouteOptimizations(void* ptr, long long optimizations) { static_cast(ptr)->setSupportedRouteOptimizations(static_cast(optimizations)); } void QGeoRoutingManagerEngine_SetSupportedSegmentDetails(void* ptr, long long segmentDetails) { static_cast(ptr)->setSupportedSegmentDetails(static_cast(segmentDetails)); } void QGeoRoutingManagerEngine_SetSupportedTravelModes(void* ptr, long long travelModes) { static_cast(ptr)->setSupportedTravelModes(static_cast(travelModes)); } long long QGeoRoutingManagerEngine_SupportedFeatureTypes(void* ptr) { return static_cast(ptr)->supportedFeatureTypes(); } long long QGeoRoutingManagerEngine_SupportedFeatureWeights(void* ptr) { return static_cast(ptr)->supportedFeatureWeights(); } long long QGeoRoutingManagerEngine_SupportedManeuverDetails(void* ptr) { return static_cast(ptr)->supportedManeuverDetails(); } long long QGeoRoutingManagerEngine_SupportedRouteOptimizations(void* ptr) { return static_cast(ptr)->supportedRouteOptimizations(); } long long QGeoRoutingManagerEngine_SupportedSegmentDetails(void* ptr) { return static_cast(ptr)->supportedSegmentDetails(); } long long QGeoRoutingManagerEngine_SupportedTravelModes(void* ptr) { return static_cast(ptr)->supportedTravelModes(); } void* QGeoRoutingManagerEngine_UpdateRoute(void* ptr, void* route, void* position) { return static_cast(ptr)->updateRoute(*static_cast(route), *static_cast(position)); } void* QGeoRoutingManagerEngine_UpdateRouteDefault(void* ptr, void* route, void* position) { return static_cast(ptr)->QGeoRoutingManagerEngine::updateRoute(*static_cast(route), *static_cast(position)); } void QGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngine(void* ptr) { static_cast(ptr)->~QGeoRoutingManagerEngine(); } void QGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngineDefault(void* ptr) { } void QGeoRoutingManagerEngine_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QGeoRoutingManagerEngine_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRoutingManagerEngine::timerEvent(static_cast(event)); } void QGeoRoutingManagerEngine_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QGeoRoutingManagerEngine_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRoutingManagerEngine::childEvent(static_cast(event)); } void QGeoRoutingManagerEngine_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QGeoRoutingManagerEngine_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoRoutingManagerEngine::connectNotify(*static_cast(sign)); } void QGeoRoutingManagerEngine_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QGeoRoutingManagerEngine_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoRoutingManagerEngine::customEvent(static_cast(event)); } void QGeoRoutingManagerEngine_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QGeoRoutingManagerEngine_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QGeoRoutingManagerEngine::deleteLater(); } void QGeoRoutingManagerEngine_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QGeoRoutingManagerEngine_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoRoutingManagerEngine::disconnectNotify(*static_cast(sign)); } char QGeoRoutingManagerEngine_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QGeoRoutingManagerEngine_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QGeoRoutingManagerEngine::event(static_cast(e)); } char QGeoRoutingManagerEngine_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QGeoRoutingManagerEngine_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QGeoRoutingManagerEngine::eventFilter(static_cast(watched), static_cast(event)); } void* QGeoRoutingManagerEngine_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QGeoRoutingManagerEngine_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QGeoRoutingManagerEngine::metaObject()); } int QGeoServiceProvider_OnlineGeocodingFeature_Type() { return QGeoServiceProvider::OnlineGeocodingFeature; } int QGeoServiceProvider_OfflineGeocodingFeature_Type() { return QGeoServiceProvider::OfflineGeocodingFeature; } int QGeoServiceProvider_ReverseGeocodingFeature_Type() { return QGeoServiceProvider::ReverseGeocodingFeature; } int QGeoServiceProvider_LocalizedGeocodingFeature_Type() { return QGeoServiceProvider::LocalizedGeocodingFeature; } int QGeoServiceProvider_AnyGeocodingFeatures_Type() { return QGeoServiceProvider::AnyGeocodingFeatures; } int QGeoServiceProvider_OnlineMappingFeature_Type() { return QGeoServiceProvider::OnlineMappingFeature; } int QGeoServiceProvider_OfflineMappingFeature_Type() { return QGeoServiceProvider::OfflineMappingFeature; } int QGeoServiceProvider_LocalizedMappingFeature_Type() { return QGeoServiceProvider::LocalizedMappingFeature; } int QGeoServiceProvider_AnyMappingFeatures_Type() { return QGeoServiceProvider::AnyMappingFeatures; } int QGeoServiceProvider_OnlinePlacesFeature_Type() { return QGeoServiceProvider::OnlinePlacesFeature; } int QGeoServiceProvider_OfflinePlacesFeature_Type() { return QGeoServiceProvider::OfflinePlacesFeature; } int QGeoServiceProvider_SavePlaceFeature_Type() { return QGeoServiceProvider::SavePlaceFeature; } int QGeoServiceProvider_RemovePlaceFeature_Type() { return QGeoServiceProvider::RemovePlaceFeature; } int QGeoServiceProvider_SaveCategoryFeature_Type() { return QGeoServiceProvider::SaveCategoryFeature; } int QGeoServiceProvider_RemoveCategoryFeature_Type() { return QGeoServiceProvider::RemoveCategoryFeature; } int QGeoServiceProvider_PlaceRecommendationsFeature_Type() { return QGeoServiceProvider::PlaceRecommendationsFeature; } int QGeoServiceProvider_SearchSuggestionsFeature_Type() { return QGeoServiceProvider::SearchSuggestionsFeature; } int QGeoServiceProvider_LocalizedPlacesFeature_Type() { return QGeoServiceProvider::LocalizedPlacesFeature; } int QGeoServiceProvider_NotificationsFeature_Type() { return QGeoServiceProvider::NotificationsFeature; } int QGeoServiceProvider_PlaceMatchingFeature_Type() { return QGeoServiceProvider::PlaceMatchingFeature; } int QGeoServiceProvider_AnyPlacesFeatures_Type() { return QGeoServiceProvider::AnyPlacesFeatures; } int QGeoServiceProvider_OnlineRoutingFeature_Type() { return QGeoServiceProvider::OnlineRoutingFeature; } int QGeoServiceProvider_OfflineRoutingFeature_Type() { return QGeoServiceProvider::OfflineRoutingFeature; } int QGeoServiceProvider_LocalizedRoutingFeature_Type() { return QGeoServiceProvider::LocalizedRoutingFeature; } int QGeoServiceProvider_RouteUpdatesFeature_Type() { return QGeoServiceProvider::RouteUpdatesFeature; } int QGeoServiceProvider_AlternativeRoutesFeature_Type() { return QGeoServiceProvider::AlternativeRoutesFeature; } int QGeoServiceProvider_ExcludeAreasRoutingFeature_Type() { return QGeoServiceProvider::ExcludeAreasRoutingFeature; } int QGeoServiceProvider_AnyRoutingFeatures_Type() { return QGeoServiceProvider::AnyRoutingFeatures; } char* QGeoServiceProvider_QGeoServiceProvider_AvailableServiceProviders() { return const_cast(QGeoServiceProvider::availableServiceProviders().join("|").toUtf8().constData()); } long long QGeoServiceProvider_Error(void* ptr) { return static_cast(ptr)->error(); } char* QGeoServiceProvider_ErrorString(void* ptr) { return const_cast(static_cast(ptr)->errorString().toUtf8().constData()); } long long QGeoServiceProvider_GeocodingFeatures(void* ptr) { return static_cast(ptr)->geocodingFeatures(); } void* QGeoServiceProvider_GeocodingManager(void* ptr) { return static_cast(ptr)->geocodingManager(); } long long QGeoServiceProvider_MappingFeatures(void* ptr) { return static_cast(ptr)->mappingFeatures(); } void* QGeoServiceProvider_PlaceManager(void* ptr) { return static_cast(ptr)->placeManager(); } long long QGeoServiceProvider_PlacesFeatures(void* ptr) { return static_cast(ptr)->placesFeatures(); } long long QGeoServiceProvider_RoutingFeatures(void* ptr) { return static_cast(ptr)->routingFeatures(); } void* QGeoServiceProvider_RoutingManager(void* ptr) { return static_cast(ptr)->routingManager(); } void QGeoServiceProvider_SetAllowExperimental(void* ptr, char allow) { static_cast(ptr)->setAllowExperimental(allow != 0); } void QGeoServiceProvider_SetLocale(void* ptr, void* locale) { static_cast(ptr)->setLocale(*static_cast(locale)); } void QGeoServiceProvider_DestroyQGeoServiceProvider(void* ptr) { static_cast(ptr)->~QGeoServiceProvider(); } void QGeoServiceProvider_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QGeoServiceProvider_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoServiceProvider::timerEvent(static_cast(event)); } void QGeoServiceProvider_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QGeoServiceProvider_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoServiceProvider::childEvent(static_cast(event)); } void QGeoServiceProvider_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QGeoServiceProvider_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoServiceProvider::connectNotify(*static_cast(sign)); } void QGeoServiceProvider_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QGeoServiceProvider_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QGeoServiceProvider::customEvent(static_cast(event)); } void QGeoServiceProvider_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QGeoServiceProvider_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QGeoServiceProvider::deleteLater(); } void QGeoServiceProvider_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QGeoServiceProvider_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QGeoServiceProvider::disconnectNotify(*static_cast(sign)); } char QGeoServiceProvider_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QGeoServiceProvider_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QGeoServiceProvider::event(static_cast(e)); } char QGeoServiceProvider_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QGeoServiceProvider_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QGeoServiceProvider::eventFilter(static_cast(watched), static_cast(event)); } void* QGeoServiceProvider_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QGeoServiceProvider_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QGeoServiceProvider::metaObject()); } class MyQGeoServiceProviderFactory: public QGeoServiceProviderFactory { public: ~MyQGeoServiceProviderFactory() { callbackQGeoServiceProviderFactory_DestroyQGeoServiceProviderFactory(this); }; }; void QGeoServiceProviderFactory_DestroyQGeoServiceProviderFactory(void* ptr) { static_cast(ptr)->~QGeoServiceProviderFactory(); } void QGeoServiceProviderFactory_DestroyQGeoServiceProviderFactoryDefault(void* ptr) { }