mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
5088 lines
162 KiB
Go
Executable file
5088 lines
162 KiB
Go
Executable file
// +build !minimal
|
|
|
|
package location
|
|
|
|
//#include <stdint.h>
|
|
//#include <stdlib.h>
|
|
//#include <string.h>
|
|
//#include "location.h"
|
|
import "C"
|
|
import (
|
|
"fmt"
|
|
"github.com/therecipe/qt"
|
|
"github.com/therecipe/qt/core"
|
|
"github.com/therecipe/qt/positioning"
|
|
"runtime"
|
|
"strings"
|
|
"unsafe"
|
|
)
|
|
|
|
func cGoUnpackString(s C.struct_QtLocation_PackedString) string {
|
|
if len := int(s.len); len == -1 {
|
|
return C.GoString(s.data)
|
|
}
|
|
return C.GoStringN(s.data, C.int(s.len))
|
|
}
|
|
|
|
type QGeoCodeReply struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoCodeReply_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoCodeReply_PTR() *QGeoCodeReply
|
|
}
|
|
|
|
func (ptr *QGeoCodeReply) QGeoCodeReply_PTR() *QGeoCodeReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoCodeReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoCodeReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoCodeReply(ptr QGeoCodeReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoCodeReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoCodeReplyFromPointer(ptr unsafe.Pointer) *QGeoCodeReply {
|
|
var n = new(QGeoCodeReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QGeoCodeReply__Error
|
|
//QGeoCodeReply::Error
|
|
type QGeoCodeReply__Error int64
|
|
|
|
const (
|
|
QGeoCodeReply__NoError QGeoCodeReply__Error = QGeoCodeReply__Error(0)
|
|
QGeoCodeReply__EngineNotSetError QGeoCodeReply__Error = QGeoCodeReply__Error(1)
|
|
QGeoCodeReply__CommunicationError QGeoCodeReply__Error = QGeoCodeReply__Error(2)
|
|
QGeoCodeReply__ParseError QGeoCodeReply__Error = QGeoCodeReply__Error(3)
|
|
QGeoCodeReply__UnsupportedOptionError QGeoCodeReply__Error = QGeoCodeReply__Error(4)
|
|
QGeoCodeReply__CombinationError QGeoCodeReply__Error = QGeoCodeReply__Error(5)
|
|
QGeoCodeReply__UnknownError QGeoCodeReply__Error = QGeoCodeReply__Error(6)
|
|
)
|
|
|
|
type QGeoCodingManager struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoCodingManager_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoCodingManager_PTR() *QGeoCodingManager
|
|
}
|
|
|
|
func (ptr *QGeoCodingManager) QGeoCodingManager_PTR() *QGeoCodingManager {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoCodingManager) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoCodingManager) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoCodingManager(ptr QGeoCodingManager_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoCodingManager_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoCodingManagerFromPointer(ptr unsafe.Pointer) *QGeoCodingManager {
|
|
var n = new(QGeoCodingManager)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QGeoCodingManagerEngine struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoCodingManagerEngine_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoCodingManagerEngine_PTR() *QGeoCodingManagerEngine
|
|
}
|
|
|
|
func (ptr *QGeoCodingManagerEngine) QGeoCodingManagerEngine_PTR() *QGeoCodingManagerEngine {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoCodingManagerEngine) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoCodingManagerEngine) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoCodingManagerEngine(ptr QGeoCodingManagerEngine_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoCodingManagerEngine_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoCodingManagerEngineFromPointer(ptr unsafe.Pointer) *QGeoCodingManagerEngine {
|
|
var n = new(QGeoCodingManagerEngine)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QGeoManeuver struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QGeoManeuver_ITF interface {
|
|
QGeoManeuver_PTR() *QGeoManeuver
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) QGeoManeuver_PTR() *QGeoManeuver {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoManeuver(ptr QGeoManeuver_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoManeuver_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoManeuverFromPointer(ptr unsafe.Pointer) *QGeoManeuver {
|
|
var n = new(QGeoManeuver)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QGeoManeuver__InstructionDirection
|
|
//QGeoManeuver::InstructionDirection
|
|
type QGeoManeuver__InstructionDirection int64
|
|
|
|
const (
|
|
QGeoManeuver__NoDirection QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(0)
|
|
QGeoManeuver__DirectionForward QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(1)
|
|
QGeoManeuver__DirectionBearRight QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(2)
|
|
QGeoManeuver__DirectionLightRight QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(3)
|
|
QGeoManeuver__DirectionRight QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(4)
|
|
QGeoManeuver__DirectionHardRight QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(5)
|
|
QGeoManeuver__DirectionUTurnRight QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(6)
|
|
QGeoManeuver__DirectionUTurnLeft QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(7)
|
|
QGeoManeuver__DirectionHardLeft QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(8)
|
|
QGeoManeuver__DirectionLeft QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(9)
|
|
QGeoManeuver__DirectionLightLeft QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(10)
|
|
QGeoManeuver__DirectionBearLeft QGeoManeuver__InstructionDirection = QGeoManeuver__InstructionDirection(11)
|
|
)
|
|
|
|
func NewQGeoManeuver() *QGeoManeuver {
|
|
var tmpValue = NewQGeoManeuverFromPointer(C.QGeoManeuver_NewQGeoManeuver())
|
|
runtime.SetFinalizer(tmpValue, (*QGeoManeuver).DestroyQGeoManeuver)
|
|
return tmpValue
|
|
}
|
|
|
|
func NewQGeoManeuver2(other QGeoManeuver_ITF) *QGeoManeuver {
|
|
var tmpValue = NewQGeoManeuverFromPointer(C.QGeoManeuver_NewQGeoManeuver2(PointerFromQGeoManeuver(other)))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoManeuver).DestroyQGeoManeuver)
|
|
return tmpValue
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetDirection(direction QGeoManeuver__InstructionDirection) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoManeuver_SetDirection(ptr.Pointer(), C.longlong(direction))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetDistanceToNextInstruction(distance float64) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoManeuver_SetDistanceToNextInstruction(ptr.Pointer(), C.double(distance))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetInstructionText(instructionText string) {
|
|
if ptr.Pointer() != nil {
|
|
var instructionTextC *C.char
|
|
if instructionText != "" {
|
|
instructionTextC = C.CString(instructionText)
|
|
defer C.free(unsafe.Pointer(instructionTextC))
|
|
}
|
|
C.QGeoManeuver_SetInstructionText(ptr.Pointer(), instructionTextC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetPosition(position positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoManeuver_SetPosition(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(position))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetTimeToNextInstruction(secs int) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoManeuver_SetTimeToNextInstruction(ptr.Pointer(), C.int(int32(secs)))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) SetWaypoint(coordinate positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoManeuver_SetWaypoint(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(coordinate))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) DestroyQGeoManeuver() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoManeuver_DestroyQGeoManeuver(ptr.Pointer())
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) Direction() QGeoManeuver__InstructionDirection {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoManeuver__InstructionDirection(C.QGeoManeuver_Direction(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) Position() *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoManeuver_Position(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) Waypoint() *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoManeuver_Waypoint(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) InstructionText() string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoManeuver_InstructionText(ptr.Pointer()))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) IsValid() bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoManeuver_IsValid(ptr.Pointer()) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) TimeToNextInstruction() int {
|
|
if ptr.Pointer() != nil {
|
|
return int(int32(C.QGeoManeuver_TimeToNextInstruction(ptr.Pointer())))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoManeuver) DistanceToNextInstruction() float64 {
|
|
if ptr.Pointer() != nil {
|
|
return float64(C.QGeoManeuver_DistanceToNextInstruction(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type QGeoRoute struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QGeoRoute_ITF interface {
|
|
QGeoRoute_PTR() *QGeoRoute
|
|
}
|
|
|
|
func (ptr *QGeoRoute) QGeoRoute_PTR() *QGeoRoute {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoRoute) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoRoute(ptr QGeoRoute_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoRoute_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRouteFromPointer(ptr unsafe.Pointer) *QGeoRoute {
|
|
var n = new(QGeoRoute)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
func NewQGeoRoute() *QGeoRoute {
|
|
var tmpValue = NewQGeoRouteFromPointer(C.QGeoRoute_NewQGeoRoute())
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRoute).DestroyQGeoRoute)
|
|
return tmpValue
|
|
}
|
|
|
|
func NewQGeoRoute2(other QGeoRoute_ITF) *QGeoRoute {
|
|
var tmpValue = NewQGeoRouteFromPointer(C.QGeoRoute_NewQGeoRoute2(PointerFromQGeoRoute(other)))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRoute).DestroyQGeoRoute)
|
|
return tmpValue
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetBounds(bounds positioning.QGeoRectangle_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetBounds(ptr.Pointer(), positioning.PointerFromQGeoRectangle(bounds))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetDistance(distance float64) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetDistance(ptr.Pointer(), C.double(distance))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetFirstRouteSegment(routeSegment QGeoRouteSegment_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetFirstRouteSegment(ptr.Pointer(), PointerFromQGeoRouteSegment(routeSegment))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetPath(path []*positioning.QGeoCoordinate) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetPath(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteFromPointer(NewQGeoRouteFromPointer(nil).__setPath_path_newList())
|
|
for _, v := range path {
|
|
tmpList.__setPath_path_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetRequest(request QGeoRouteRequest_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetRequest(ptr.Pointer(), PointerFromQGeoRouteRequest(request))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetRouteId(id string) {
|
|
if ptr.Pointer() != nil {
|
|
var idC *C.char
|
|
if id != "" {
|
|
idC = C.CString(id)
|
|
defer C.free(unsafe.Pointer(idC))
|
|
}
|
|
C.QGeoRoute_SetRouteId(ptr.Pointer(), idC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetTravelMode(mode QGeoRouteRequest__TravelMode) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetTravelMode(ptr.Pointer(), C.longlong(mode))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) SetTravelTime(secs int) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_SetTravelTime(ptr.Pointer(), C.int(int32(secs)))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) DestroyQGeoRoute() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute_DestroyQGeoRoute(ptr.Pointer())
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) Bounds() *positioning.QGeoRectangle {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoRectangleFromPointer(C.QGeoRoute_Bounds(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoRectangle).DestroyQGeoRectangle)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoute) Request() *QGeoRouteRequest {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteRequestFromPointer(C.QGeoRoute_Request(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteRequest).DestroyQGeoRouteRequest)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoute) TravelMode() QGeoRouteRequest__TravelMode {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__TravelMode(C.QGeoRoute_TravelMode(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoute) FirstRouteSegment() *QGeoRouteSegment {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteSegmentFromPointer(C.QGeoRoute_FirstRouteSegment(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteSegment).DestroyQGeoRouteSegment)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoute) Path() []*positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []*positioning.QGeoCoordinate {
|
|
var out = make([]*positioning.QGeoCoordinate, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoRouteFromPointer(l.data).__path_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoRoute_Path(ptr.Pointer()))
|
|
}
|
|
return make([]*positioning.QGeoCoordinate, 0)
|
|
}
|
|
|
|
func (ptr *QGeoRoute) RouteId() string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoRoute_RouteId(ptr.Pointer()))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoRoute) TravelTime() int {
|
|
if ptr.Pointer() != nil {
|
|
return int(int32(C.QGeoRoute_TravelTime(ptr.Pointer())))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoute) Distance() float64 {
|
|
if ptr.Pointer() != nil {
|
|
return float64(C.QGeoRoute_Distance(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoute) __setPath_path_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRoute___setPath_path_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoute) __setPath_path_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute___setPath_path_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) __setPath_path_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoute___setPath_path_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoute) __path_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRoute___path_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoute) __path_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoute___path_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoute) __path_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoute___path_newList(ptr.Pointer()))
|
|
}
|
|
|
|
type QGeoRouteReply struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoRouteReply_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoRouteReply_PTR() *QGeoRouteReply
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) QGeoRouteReply_PTR() *QGeoRouteReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoRouteReply(ptr QGeoRouteReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoRouteReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRouteReplyFromPointer(ptr unsafe.Pointer) *QGeoRouteReply {
|
|
var n = new(QGeoRouteReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QGeoRouteReply__Error
|
|
//QGeoRouteReply::Error
|
|
type QGeoRouteReply__Error int64
|
|
|
|
const (
|
|
QGeoRouteReply__NoError QGeoRouteReply__Error = QGeoRouteReply__Error(0)
|
|
QGeoRouteReply__EngineNotSetError QGeoRouteReply__Error = QGeoRouteReply__Error(1)
|
|
QGeoRouteReply__CommunicationError QGeoRouteReply__Error = QGeoRouteReply__Error(2)
|
|
QGeoRouteReply__ParseError QGeoRouteReply__Error = QGeoRouteReply__Error(3)
|
|
QGeoRouteReply__UnsupportedOptionError QGeoRouteReply__Error = QGeoRouteReply__Error(4)
|
|
QGeoRouteReply__UnknownError QGeoRouteReply__Error = QGeoRouteReply__Error(5)
|
|
)
|
|
|
|
func NewQGeoRouteReply(error QGeoRouteReply__Error, errorString string, parent core.QObject_ITF) *QGeoRouteReply {
|
|
var errorStringC *C.char
|
|
if errorString != "" {
|
|
errorStringC = C.CString(errorString)
|
|
defer C.free(unsafe.Pointer(errorStringC))
|
|
}
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRouteReply_NewQGeoRouteReply(C.longlong(error), errorStringC, core.PointerFromQObject(parent)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
|
|
func NewQGeoRouteReply2(request QGeoRouteRequest_ITF, parent core.QObject_ITF) *QGeoRouteReply {
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRouteReply_NewQGeoRouteReply2(PointerFromQGeoRouteRequest(request), core.PointerFromQObject(parent)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_Abort
|
|
func callbackQGeoRouteReply_Abort(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "abort"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).AbortDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ConnectAbort(f func()) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "abort"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "abort", func() {
|
|
signal.(func())()
|
|
f()
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "abort", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DisconnectAbort() {
|
|
if ptr.Pointer() != nil {
|
|
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "abort")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Abort() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_Abort(ptr.Pointer())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) AbortDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_AbortDefault(ptr.Pointer())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) AddRoutes(routes []*QGeoRoute) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_AddRoutes(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteReplyFromPointer(NewQGeoRouteReplyFromPointer(nil).__addRoutes_routes_newList())
|
|
for _, v := range routes {
|
|
tmpList.__addRoutes_routes_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_Error2
|
|
func callbackQGeoRouteReply_Error2(ptr unsafe.Pointer, error C.longlong, errorString C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "error2"); signal != nil {
|
|
signal.(func(QGeoRouteReply__Error, string))(QGeoRouteReply__Error(error), cGoUnpackString(errorString))
|
|
}
|
|
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ConnectError2(f func(error QGeoRouteReply__Error, errorString string)) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if !qt.ExistsSignal(fmt.Sprint(ptr.Pointer()), "error2") {
|
|
C.QGeoRouteReply_ConnectError2(ptr.Pointer())
|
|
}
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "error2"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "error2", func(error QGeoRouteReply__Error, errorString string) {
|
|
signal.(func(QGeoRouteReply__Error, string))(error, errorString)
|
|
f(error, errorString)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "error2", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DisconnectError2() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_DisconnectError2(ptr.Pointer())
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "error2")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Error2(error QGeoRouteReply__Error, errorString string) {
|
|
if ptr.Pointer() != nil {
|
|
var errorStringC *C.char
|
|
if errorString != "" {
|
|
errorStringC = C.CString(errorString)
|
|
defer C.free(unsafe.Pointer(errorStringC))
|
|
}
|
|
C.QGeoRouteReply_Error2(ptr.Pointer(), C.longlong(error), errorStringC)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_Finished
|
|
func callbackQGeoRouteReply_Finished(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "finished"); signal != nil {
|
|
signal.(func())()
|
|
}
|
|
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ConnectFinished(f func()) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if !qt.ExistsSignal(fmt.Sprint(ptr.Pointer()), "finished") {
|
|
C.QGeoRouteReply_ConnectFinished(ptr.Pointer())
|
|
}
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "finished"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "finished", func() {
|
|
signal.(func())()
|
|
f()
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "finished", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DisconnectFinished() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_DisconnectFinished(ptr.Pointer())
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "finished")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Finished() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_Finished(ptr.Pointer())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) SetError(error QGeoRouteReply__Error, errorString string) {
|
|
if ptr.Pointer() != nil {
|
|
var errorStringC *C.char
|
|
if errorString != "" {
|
|
errorStringC = C.CString(errorString)
|
|
defer C.free(unsafe.Pointer(errorStringC))
|
|
}
|
|
C.QGeoRouteReply_SetError(ptr.Pointer(), C.longlong(error), errorStringC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) SetFinished(finished bool) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_SetFinished(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(finished))))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) SetRoutes(routes []*QGeoRoute) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_SetRoutes(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteReplyFromPointer(NewQGeoRouteReplyFromPointer(nil).__setRoutes_routes_newList())
|
|
for _, v := range routes {
|
|
tmpList.__setRoutes_routes_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_DestroyQGeoRouteReply
|
|
func callbackQGeoRouteReply_DestroyQGeoRouteReply(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "~QGeoRouteReply"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).DestroyQGeoRouteReplyDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ConnectDestroyQGeoRouteReply(f func()) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRouteReply"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRouteReply", func() {
|
|
signal.(func())()
|
|
f()
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRouteReply", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DisconnectDestroyQGeoRouteReply() {
|
|
if ptr.Pointer() != nil {
|
|
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRouteReply")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DestroyQGeoRouteReply() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_DestroyQGeoRouteReply(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DestroyQGeoRouteReplyDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_DestroyQGeoRouteReplyDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Error() QGeoRouteReply__Error {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteReply__Error(C.QGeoRouteReply_Error(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Request() *QGeoRouteRequest {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteRequestFromPointer(C.QGeoRouteReply_Request(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteRequest).DestroyQGeoRouteRequest)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) Routes() []*QGeoRoute {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []*QGeoRoute {
|
|
var out = make([]*QGeoRoute, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoRouteReplyFromPointer(l.data).__routes_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoRouteReply_Routes(ptr.Pointer()))
|
|
}
|
|
return make([]*QGeoRoute, 0)
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ErrorString() string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoRouteReply_ErrorString(ptr.Pointer()))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) IsFinished() bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRouteReply_IsFinished(ptr.Pointer()) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __addRoutes_routes_atList(i int) *QGeoRoute {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteFromPointer(C.QGeoRouteReply___addRoutes_routes_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRoute).DestroyQGeoRoute)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __addRoutes_routes_setList(i QGeoRoute_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___addRoutes_routes_setList(ptr.Pointer(), PointerFromQGeoRoute(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __addRoutes_routes_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___addRoutes_routes_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __setRoutes_routes_atList(i int) *QGeoRoute {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteFromPointer(C.QGeoRouteReply___setRoutes_routes_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRoute).DestroyQGeoRoute)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __setRoutes_routes_setList(i QGeoRoute_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___setRoutes_routes_setList(ptr.Pointer(), PointerFromQGeoRoute(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __setRoutes_routes_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___setRoutes_routes_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __routes_atList(i int) *QGeoRoute {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteFromPointer(C.QGeoRouteReply___routes_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRoute).DestroyQGeoRoute)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __routes_setList(i QGeoRoute_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___routes_setList(ptr.Pointer(), PointerFromQGeoRoute(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __routes_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___routes_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __dynamicPropertyNames_atList(i int) *core.QByteArray {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQByteArrayFromPointer(C.QGeoRouteReply___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __dynamicPropertyNames_setList(i core.QByteArray_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __dynamicPropertyNames_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___dynamicPropertyNames_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_atList2(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRouteReply___findChildren_atList2(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_setList2(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_newList2() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___findChildren_newList2(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_atList3(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRouteReply___findChildren_atList3(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_setList3(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_newList3() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___findChildren_newList3(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRouteReply___findChildren_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __findChildren_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___findChildren_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __children_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRouteReply___children_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __children_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply___children_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) __children_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteReply___children_newList(ptr.Pointer()))
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_Event
|
|
func callbackQGeoRouteReply_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "event"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoRouteReplyFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) EventDefault(e core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRouteReply_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_EventFilter
|
|
func callbackQGeoRouteReply_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "eventFilter"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoRouteReplyFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRouteReply_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_ChildEvent
|
|
func callbackQGeoRouteReply_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "childEvent"); signal != nil {
|
|
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ChildEventDefault(event core.QChildEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_ConnectNotify
|
|
func callbackQGeoRouteReply_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "connectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) ConnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_CustomEvent
|
|
func callbackQGeoRouteReply_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "customEvent"); signal != nil {
|
|
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) CustomEventDefault(event core.QEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_DeleteLater
|
|
func callbackQGeoRouteReply_DeleteLater(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "deleteLater"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).DeleteLaterDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DeleteLaterDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_DeleteLaterDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_Destroyed
|
|
func callbackQGeoRouteReply_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "destroyed"); signal != nil {
|
|
signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_DisconnectNotify
|
|
func callbackQGeoRouteReply_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "disconnectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_ObjectNameChanged
|
|
func callbackQGeoRouteReply_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "objectNameChanged"); signal != nil {
|
|
signal.(func(string))(cGoUnpackString(objectName))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_TimerEvent
|
|
func callbackQGeoRouteReply_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "timerEvent"); signal != nil {
|
|
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRouteReplyFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) TimerEventDefault(event core.QTimerEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteReply_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRouteReply_MetaObject
|
|
func callbackQGeoRouteReply_MetaObject(ptr unsafe.Pointer) unsafe.Pointer {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "metaObject"); signal != nil {
|
|
return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)())
|
|
}
|
|
|
|
return core.PointerFromQMetaObject(NewQGeoRouteReplyFromPointer(ptr).MetaObjectDefault())
|
|
}
|
|
|
|
func (ptr *QGeoRouteReply) MetaObjectDefault() *core.QMetaObject {
|
|
if ptr.Pointer() != nil {
|
|
return core.NewQMetaObjectFromPointer(C.QGeoRouteReply_MetaObjectDefault(ptr.Pointer()))
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QGeoRouteRequest struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QGeoRouteRequest_ITF interface {
|
|
QGeoRouteRequest_PTR() *QGeoRouteRequest
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) QGeoRouteRequest_PTR() *QGeoRouteRequest {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoRouteRequest(ptr QGeoRouteRequest_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoRouteRequest_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRouteRequestFromPointer(ptr unsafe.Pointer) *QGeoRouteRequest {
|
|
var n = new(QGeoRouteRequest)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QGeoRouteRequest__FeatureType
|
|
//QGeoRouteRequest::FeatureType
|
|
type QGeoRouteRequest__FeatureType int64
|
|
|
|
const (
|
|
QGeoRouteRequest__NoFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000000)
|
|
QGeoRouteRequest__TollFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000001)
|
|
QGeoRouteRequest__HighwayFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000002)
|
|
QGeoRouteRequest__PublicTransitFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000004)
|
|
QGeoRouteRequest__FerryFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000008)
|
|
QGeoRouteRequest__TunnelFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000010)
|
|
QGeoRouteRequest__DirtRoadFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000020)
|
|
QGeoRouteRequest__ParksFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000040)
|
|
QGeoRouteRequest__MotorPoolLaneFeature QGeoRouteRequest__FeatureType = QGeoRouteRequest__FeatureType(0x00000080)
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoRouteRequest__FeatureWeight
|
|
//QGeoRouteRequest::FeatureWeight
|
|
type QGeoRouteRequest__FeatureWeight int64
|
|
|
|
const (
|
|
QGeoRouteRequest__NeutralFeatureWeight QGeoRouteRequest__FeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000000)
|
|
QGeoRouteRequest__PreferFeatureWeight QGeoRouteRequest__FeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000001)
|
|
QGeoRouteRequest__RequireFeatureWeight QGeoRouteRequest__FeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000002)
|
|
QGeoRouteRequest__AvoidFeatureWeight QGeoRouteRequest__FeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000004)
|
|
QGeoRouteRequest__DisallowFeatureWeight QGeoRouteRequest__FeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000008)
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoRouteRequest__ManeuverDetail
|
|
//QGeoRouteRequest::ManeuverDetail
|
|
type QGeoRouteRequest__ManeuverDetail int64
|
|
|
|
const (
|
|
QGeoRouteRequest__NoManeuvers QGeoRouteRequest__ManeuverDetail = QGeoRouteRequest__ManeuverDetail(0x0000)
|
|
QGeoRouteRequest__BasicManeuvers QGeoRouteRequest__ManeuverDetail = QGeoRouteRequest__ManeuverDetail(0x0001)
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoRouteRequest__RouteOptimization
|
|
//QGeoRouteRequest::RouteOptimization
|
|
type QGeoRouteRequest__RouteOptimization int64
|
|
|
|
const (
|
|
QGeoRouteRequest__ShortestRoute QGeoRouteRequest__RouteOptimization = QGeoRouteRequest__RouteOptimization(0x0001)
|
|
QGeoRouteRequest__FastestRoute QGeoRouteRequest__RouteOptimization = QGeoRouteRequest__RouteOptimization(0x0002)
|
|
QGeoRouteRequest__MostEconomicRoute QGeoRouteRequest__RouteOptimization = QGeoRouteRequest__RouteOptimization(0x0004)
|
|
QGeoRouteRequest__MostScenicRoute QGeoRouteRequest__RouteOptimization = QGeoRouteRequest__RouteOptimization(0x0008)
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoRouteRequest__SegmentDetail
|
|
//QGeoRouteRequest::SegmentDetail
|
|
type QGeoRouteRequest__SegmentDetail int64
|
|
|
|
const (
|
|
QGeoRouteRequest__NoSegmentData QGeoRouteRequest__SegmentDetail = QGeoRouteRequest__SegmentDetail(0x0000)
|
|
QGeoRouteRequest__BasicSegmentData QGeoRouteRequest__SegmentDetail = QGeoRouteRequest__SegmentDetail(0x0001)
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoRouteRequest__TravelMode
|
|
//QGeoRouteRequest::TravelMode
|
|
type QGeoRouteRequest__TravelMode int64
|
|
|
|
const (
|
|
QGeoRouteRequest__CarTravel QGeoRouteRequest__TravelMode = QGeoRouteRequest__TravelMode(0x0001)
|
|
QGeoRouteRequest__PedestrianTravel QGeoRouteRequest__TravelMode = QGeoRouteRequest__TravelMode(0x0002)
|
|
QGeoRouteRequest__BicycleTravel QGeoRouteRequest__TravelMode = QGeoRouteRequest__TravelMode(0x0004)
|
|
QGeoRouteRequest__PublicTransitTravel QGeoRouteRequest__TravelMode = QGeoRouteRequest__TravelMode(0x0008)
|
|
QGeoRouteRequest__TruckTravel QGeoRouteRequest__TravelMode = QGeoRouteRequest__TravelMode(0x0010)
|
|
)
|
|
|
|
func NewQGeoRouteRequest2(origin positioning.QGeoCoordinate_ITF, destination positioning.QGeoCoordinate_ITF) *QGeoRouteRequest {
|
|
var tmpValue = NewQGeoRouteRequestFromPointer(C.QGeoRouteRequest_NewQGeoRouteRequest2(positioning.PointerFromQGeoCoordinate(origin), positioning.PointerFromQGeoCoordinate(destination)))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteRequest).DestroyQGeoRouteRequest)
|
|
return tmpValue
|
|
}
|
|
|
|
func NewQGeoRouteRequest3(other QGeoRouteRequest_ITF) *QGeoRouteRequest {
|
|
var tmpValue = NewQGeoRouteRequestFromPointer(C.QGeoRouteRequest_NewQGeoRouteRequest3(PointerFromQGeoRouteRequest(other)))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteRequest).DestroyQGeoRouteRequest)
|
|
return tmpValue
|
|
}
|
|
|
|
func NewQGeoRouteRequest(waypoints []*positioning.QGeoCoordinate) *QGeoRouteRequest {
|
|
var tmpValue = NewQGeoRouteRequestFromPointer(C.QGeoRouteRequest_NewQGeoRouteRequest(func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteRequestFromPointer(NewQGeoRouteRequestFromPointer(nil).__QGeoRouteRequest_waypoints_newList())
|
|
for _, v := range waypoints {
|
|
tmpList.__QGeoRouteRequest_waypoints_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}()))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteRequest).DestroyQGeoRouteRequest)
|
|
return tmpValue
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetExcludeAreas(areas []*positioning.QGeoRectangle) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetExcludeAreas(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteRequestFromPointer(NewQGeoRouteRequestFromPointer(nil).__setExcludeAreas_areas_newList())
|
|
for _, v := range areas {
|
|
tmpList.__setExcludeAreas_areas_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetFeatureWeight(featureType QGeoRouteRequest__FeatureType, featureWeight QGeoRouteRequest__FeatureWeight) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetFeatureWeight(ptr.Pointer(), C.longlong(featureType), C.longlong(featureWeight))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetManeuverDetail(maneuverDetail QGeoRouteRequest__ManeuverDetail) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetManeuverDetail(ptr.Pointer(), C.longlong(maneuverDetail))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetNumberAlternativeRoutes(alternatives int) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetNumberAlternativeRoutes(ptr.Pointer(), C.int(int32(alternatives)))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetRouteOptimization(optimization QGeoRouteRequest__RouteOptimization) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetRouteOptimization(ptr.Pointer(), C.longlong(optimization))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetSegmentDetail(segmentDetail QGeoRouteRequest__SegmentDetail) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetSegmentDetail(ptr.Pointer(), C.longlong(segmentDetail))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetTravelModes(travelModes QGeoRouteRequest__TravelMode) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetTravelModes(ptr.Pointer(), C.longlong(travelModes))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SetWaypoints(waypoints []*positioning.QGeoCoordinate) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_SetWaypoints(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteRequestFromPointer(NewQGeoRouteRequestFromPointer(nil).__setWaypoints_waypoints_newList())
|
|
for _, v := range waypoints {
|
|
tmpList.__setWaypoints_waypoints_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) DestroyQGeoRouteRequest() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest_DestroyQGeoRouteRequest(ptr.Pointer())
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) FeatureWeight(featureType QGeoRouteRequest__FeatureType) QGeoRouteRequest__FeatureWeight {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__FeatureWeight(C.QGeoRouteRequest_FeatureWeight(ptr.Pointer(), C.longlong(featureType)))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) ManeuverDetail() QGeoRouteRequest__ManeuverDetail {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__ManeuverDetail(C.QGeoRouteRequest_ManeuverDetail(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) Waypoints() []*positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []*positioning.QGeoCoordinate {
|
|
var out = make([]*positioning.QGeoCoordinate, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoRouteRequestFromPointer(l.data).__waypoints_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoRouteRequest_Waypoints(ptr.Pointer()))
|
|
}
|
|
return make([]*positioning.QGeoCoordinate, 0)
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) ExcludeAreas() []*positioning.QGeoRectangle {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []*positioning.QGeoRectangle {
|
|
var out = make([]*positioning.QGeoRectangle, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoRouteRequestFromPointer(l.data).__excludeAreas_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoRouteRequest_ExcludeAreas(ptr.Pointer()))
|
|
}
|
|
return make([]*positioning.QGeoRectangle, 0)
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) RouteOptimization() QGeoRouteRequest__RouteOptimization {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__RouteOptimization(C.QGeoRouteRequest_RouteOptimization(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) SegmentDetail() QGeoRouteRequest__SegmentDetail {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__SegmentDetail(C.QGeoRouteRequest_SegmentDetail(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) TravelModes() QGeoRouteRequest__TravelMode {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__TravelMode(C.QGeoRouteRequest_TravelModes(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) NumberAlternativeRoutes() int {
|
|
if ptr.Pointer() != nil {
|
|
return int(int32(C.QGeoRouteRequest_NumberAlternativeRoutes(ptr.Pointer())))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __QGeoRouteRequest_waypoints_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRouteRequest___QGeoRouteRequest_waypoints_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __QGeoRouteRequest_waypoints_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest___QGeoRouteRequest_waypoints_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __QGeoRouteRequest_waypoints_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteRequest___QGeoRouteRequest_waypoints_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __setExcludeAreas_areas_atList(i int) *positioning.QGeoRectangle {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoRectangleFromPointer(C.QGeoRouteRequest___setExcludeAreas_areas_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoRectangle).DestroyQGeoRectangle)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __setExcludeAreas_areas_setList(i positioning.QGeoRectangle_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest___setExcludeAreas_areas_setList(ptr.Pointer(), positioning.PointerFromQGeoRectangle(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __setExcludeAreas_areas_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteRequest___setExcludeAreas_areas_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __setWaypoints_waypoints_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRouteRequest___setWaypoints_waypoints_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __setWaypoints_waypoints_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest___setWaypoints_waypoints_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __setWaypoints_waypoints_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteRequest___setWaypoints_waypoints_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __waypoints_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRouteRequest___waypoints_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __waypoints_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest___waypoints_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __waypoints_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteRequest___waypoints_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __excludeAreas_atList(i int) *positioning.QGeoRectangle {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoRectangleFromPointer(C.QGeoRouteRequest___excludeAreas_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoRectangle).DestroyQGeoRectangle)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __excludeAreas_setList(i positioning.QGeoRectangle_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteRequest___excludeAreas_setList(ptr.Pointer(), positioning.PointerFromQGeoRectangle(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteRequest) __excludeAreas_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteRequest___excludeAreas_newList(ptr.Pointer()))
|
|
}
|
|
|
|
type QGeoRouteSegment struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QGeoRouteSegment_ITF interface {
|
|
QGeoRouteSegment_PTR() *QGeoRouteSegment
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) QGeoRouteSegment_PTR() *QGeoRouteSegment {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoRouteSegment(ptr QGeoRouteSegment_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoRouteSegment_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRouteSegmentFromPointer(ptr unsafe.Pointer) *QGeoRouteSegment {
|
|
var n = new(QGeoRouteSegment)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
func NewQGeoRouteSegment() *QGeoRouteSegment {
|
|
var tmpValue = NewQGeoRouteSegmentFromPointer(C.QGeoRouteSegment_NewQGeoRouteSegment())
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteSegment).DestroyQGeoRouteSegment)
|
|
return tmpValue
|
|
}
|
|
|
|
func NewQGeoRouteSegment2(other QGeoRouteSegment_ITF) *QGeoRouteSegment {
|
|
var tmpValue = NewQGeoRouteSegmentFromPointer(C.QGeoRouteSegment_NewQGeoRouteSegment2(PointerFromQGeoRouteSegment(other)))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteSegment).DestroyQGeoRouteSegment)
|
|
return tmpValue
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) SetDistance(distance float64) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment_SetDistance(ptr.Pointer(), C.double(distance))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) SetManeuver(maneuver QGeoManeuver_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment_SetManeuver(ptr.Pointer(), PointerFromQGeoManeuver(maneuver))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) SetNextRouteSegment(routeSegment QGeoRouteSegment_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment_SetNextRouteSegment(ptr.Pointer(), PointerFromQGeoRouteSegment(routeSegment))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) SetPath(path []*positioning.QGeoCoordinate) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment_SetPath(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRouteSegmentFromPointer(NewQGeoRouteSegmentFromPointer(nil).__setPath_path_newList())
|
|
for _, v := range path {
|
|
tmpList.__setPath_path_setList(v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) SetTravelTime(secs int) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment_SetTravelTime(ptr.Pointer(), C.int(int32(secs)))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) DestroyQGeoRouteSegment() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment_DestroyQGeoRouteSegment(ptr.Pointer())
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) Maneuver() *QGeoManeuver {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoManeuverFromPointer(C.QGeoRouteSegment_Maneuver(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoManeuver).DestroyQGeoManeuver)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) NextRouteSegment() *QGeoRouteSegment {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteSegmentFromPointer(C.QGeoRouteSegment_NextRouteSegment(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*QGeoRouteSegment).DestroyQGeoRouteSegment)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) Path() []*positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []*positioning.QGeoCoordinate {
|
|
var out = make([]*positioning.QGeoCoordinate, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoRouteSegmentFromPointer(l.data).__path_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoRouteSegment_Path(ptr.Pointer()))
|
|
}
|
|
return make([]*positioning.QGeoCoordinate, 0)
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) IsValid() bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRouteSegment_IsValid(ptr.Pointer()) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) TravelTime() int {
|
|
if ptr.Pointer() != nil {
|
|
return int(int32(C.QGeoRouteSegment_TravelTime(ptr.Pointer())))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) Distance() float64 {
|
|
if ptr.Pointer() != nil {
|
|
return float64(C.QGeoRouteSegment_Distance(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) __setPath_path_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRouteSegment___setPath_path_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) __setPath_path_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment___setPath_path_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) __setPath_path_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteSegment___setPath_path_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) __path_atList(i int) *positioning.QGeoCoordinate {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = positioning.NewQGeoCoordinateFromPointer(C.QGeoRouteSegment___path_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*positioning.QGeoCoordinate).DestroyQGeoCoordinate)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) __path_setList(i positioning.QGeoCoordinate_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRouteSegment___path_setList(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRouteSegment) __path_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRouteSegment___path_newList(ptr.Pointer()))
|
|
}
|
|
|
|
type QGeoRoutingManager struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoRoutingManager_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoRoutingManager_PTR() *QGeoRoutingManager
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) QGeoRoutingManager_PTR() *QGeoRoutingManager {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoRoutingManager(ptr QGeoRoutingManager_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoRoutingManager_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRoutingManagerFromPointer(ptr unsafe.Pointer) *QGeoRoutingManager {
|
|
var n = new(QGeoRoutingManager)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
func (ptr *QGeoRoutingManager) CalculateRoute(request QGeoRouteRequest_ITF) *QGeoRouteReply {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRoutingManager_CalculateRoute(ptr.Pointer(), PointerFromQGeoRouteRequest(request)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) UpdateRoute(route QGeoRoute_ITF, position positioning.QGeoCoordinate_ITF) *QGeoRouteReply {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRoutingManager_UpdateRoute(ptr.Pointer(), PointerFromQGeoRoute(route), positioning.PointerFromQGeoCoordinate(position)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_Error
|
|
func callbackQGeoRoutingManager_Error(ptr unsafe.Pointer, reply unsafe.Pointer, error C.longlong, errorString C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "error"); signal != nil {
|
|
signal.(func(*QGeoRouteReply, QGeoRouteReply__Error, string))(NewQGeoRouteReplyFromPointer(reply), QGeoRouteReply__Error(error), cGoUnpackString(errorString))
|
|
}
|
|
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) ConnectError(f func(reply *QGeoRouteReply, error QGeoRouteReply__Error, errorString string)) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if !qt.ExistsSignal(fmt.Sprint(ptr.Pointer()), "error") {
|
|
C.QGeoRoutingManager_ConnectError(ptr.Pointer())
|
|
}
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "error"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "error", func(reply *QGeoRouteReply, error QGeoRouteReply__Error, errorString string) {
|
|
signal.(func(*QGeoRouteReply, QGeoRouteReply__Error, string))(reply, error, errorString)
|
|
f(reply, error, errorString)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "error", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) DisconnectError() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_DisconnectError(ptr.Pointer())
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "error")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) Error(reply QGeoRouteReply_ITF, error QGeoRouteReply__Error, errorString string) {
|
|
if ptr.Pointer() != nil {
|
|
var errorStringC *C.char
|
|
if errorString != "" {
|
|
errorStringC = C.CString(errorString)
|
|
defer C.free(unsafe.Pointer(errorStringC))
|
|
}
|
|
C.QGeoRoutingManager_Error(ptr.Pointer(), PointerFromQGeoRouteReply(reply), C.longlong(error), errorStringC)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_Finished
|
|
func callbackQGeoRoutingManager_Finished(ptr unsafe.Pointer, reply unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "finished"); signal != nil {
|
|
signal.(func(*QGeoRouteReply))(NewQGeoRouteReplyFromPointer(reply))
|
|
}
|
|
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) ConnectFinished(f func(reply *QGeoRouteReply)) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if !qt.ExistsSignal(fmt.Sprint(ptr.Pointer()), "finished") {
|
|
C.QGeoRoutingManager_ConnectFinished(ptr.Pointer())
|
|
}
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "finished"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "finished", func(reply *QGeoRouteReply) {
|
|
signal.(func(*QGeoRouteReply))(reply)
|
|
f(reply)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "finished", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) DisconnectFinished() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_DisconnectFinished(ptr.Pointer())
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "finished")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) Finished(reply QGeoRouteReply_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_Finished(ptr.Pointer(), PointerFromQGeoRouteReply(reply))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SetLocale(locale core.QLocale_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_SetLocale(ptr.Pointer(), core.PointerFromQLocale(locale))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SetMeasurementSystem(system core.QLocale__MeasurementSystem) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_SetMeasurementSystem(ptr.Pointer(), C.longlong(system))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) DestroyQGeoRoutingManager() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_DestroyQGeoRoutingManager(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SupportedFeatureTypes() QGeoRouteRequest__FeatureType {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__FeatureType(C.QGeoRoutingManager_SupportedFeatureTypes(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SupportedFeatureWeights() QGeoRouteRequest__FeatureWeight {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__FeatureWeight(C.QGeoRoutingManager_SupportedFeatureWeights(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SupportedManeuverDetails() QGeoRouteRequest__ManeuverDetail {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__ManeuverDetail(C.QGeoRoutingManager_SupportedManeuverDetails(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SupportedRouteOptimizations() QGeoRouteRequest__RouteOptimization {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__RouteOptimization(C.QGeoRoutingManager_SupportedRouteOptimizations(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SupportedSegmentDetails() QGeoRouteRequest__SegmentDetail {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__SegmentDetail(C.QGeoRoutingManager_SupportedSegmentDetails(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) SupportedTravelModes() QGeoRouteRequest__TravelMode {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__TravelMode(C.QGeoRoutingManager_SupportedTravelModes(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) Locale() *core.QLocale {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQLocaleFromPointer(C.QGeoRoutingManager_Locale(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*core.QLocale).DestroyQLocale)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) MeasurementSystem() core.QLocale__MeasurementSystem {
|
|
if ptr.Pointer() != nil {
|
|
return core.QLocale__MeasurementSystem(C.QGeoRoutingManager_MeasurementSystem(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) ManagerName() string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoRoutingManager_ManagerName(ptr.Pointer()))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) ManagerVersion() int {
|
|
if ptr.Pointer() != nil {
|
|
return int(int32(C.QGeoRoutingManager_ManagerVersion(ptr.Pointer())))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __dynamicPropertyNames_atList(i int) *core.QByteArray {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQByteArrayFromPointer(C.QGeoRoutingManager___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __dynamicPropertyNames_setList(i core.QByteArray_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __dynamicPropertyNames_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManager___dynamicPropertyNames_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_atList2(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManager___findChildren_atList2(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_setList2(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_newList2() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManager___findChildren_newList2(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_atList3(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManager___findChildren_atList3(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_setList3(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_newList3() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManager___findChildren_newList3(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManager___findChildren_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __findChildren_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManager___findChildren_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __children_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManager___children_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __children_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager___children_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) __children_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManager___children_newList(ptr.Pointer()))
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_Event
|
|
func callbackQGeoRoutingManager_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "event"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoRoutingManagerFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) EventDefault(e core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRoutingManager_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_EventFilter
|
|
func callbackQGeoRoutingManager_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "eventFilter"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoRoutingManagerFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRoutingManager_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_ChildEvent
|
|
func callbackQGeoRoutingManager_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "childEvent"); signal != nil {
|
|
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRoutingManagerFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) ChildEventDefault(event core.QChildEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_ConnectNotify
|
|
func callbackQGeoRoutingManager_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "connectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoRoutingManagerFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) ConnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_CustomEvent
|
|
func callbackQGeoRoutingManager_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "customEvent"); signal != nil {
|
|
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRoutingManagerFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) CustomEventDefault(event core.QEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_DeleteLater
|
|
func callbackQGeoRoutingManager_DeleteLater(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "deleteLater"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoRoutingManagerFromPointer(ptr).DeleteLaterDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) DeleteLaterDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_DeleteLaterDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_Destroyed
|
|
func callbackQGeoRoutingManager_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "destroyed"); signal != nil {
|
|
signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_DisconnectNotify
|
|
func callbackQGeoRoutingManager_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "disconnectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoRoutingManagerFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_ObjectNameChanged
|
|
func callbackQGeoRoutingManager_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "objectNameChanged"); signal != nil {
|
|
signal.(func(string))(cGoUnpackString(objectName))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_TimerEvent
|
|
func callbackQGeoRoutingManager_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "timerEvent"); signal != nil {
|
|
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRoutingManagerFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) TimerEventDefault(event core.QTimerEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManager_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManager_MetaObject
|
|
func callbackQGeoRoutingManager_MetaObject(ptr unsafe.Pointer) unsafe.Pointer {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "metaObject"); signal != nil {
|
|
return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)())
|
|
}
|
|
|
|
return core.PointerFromQMetaObject(NewQGeoRoutingManagerFromPointer(ptr).MetaObjectDefault())
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManager) MetaObjectDefault() *core.QMetaObject {
|
|
if ptr.Pointer() != nil {
|
|
return core.NewQMetaObjectFromPointer(C.QGeoRoutingManager_MetaObjectDefault(ptr.Pointer()))
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QGeoRoutingManagerEngine struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoRoutingManagerEngine_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoRoutingManagerEngine_PTR() *QGeoRoutingManagerEngine
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) QGeoRoutingManagerEngine_PTR() *QGeoRoutingManagerEngine {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoRoutingManagerEngine(ptr QGeoRoutingManagerEngine_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoRoutingManagerEngine_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRoutingManagerEngineFromPointer(ptr unsafe.Pointer) *QGeoRoutingManagerEngine {
|
|
var n = new(QGeoRoutingManagerEngine)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_CalculateRoute
|
|
func callbackQGeoRoutingManagerEngine_CalculateRoute(ptr unsafe.Pointer, request unsafe.Pointer) unsafe.Pointer {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "calculateRoute"); signal != nil {
|
|
return PointerFromQGeoRouteReply(signal.(func(*QGeoRouteRequest) *QGeoRouteReply)(NewQGeoRouteRequestFromPointer(request)))
|
|
}
|
|
|
|
return PointerFromQGeoRouteReply(nil)
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ConnectCalculateRoute(f func(request *QGeoRouteRequest) *QGeoRouteReply) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "calculateRoute"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "calculateRoute", func(request *QGeoRouteRequest) *QGeoRouteReply {
|
|
signal.(func(*QGeoRouteRequest))(request)
|
|
return f(request)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "calculateRoute", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DisconnectCalculateRoute() {
|
|
if ptr.Pointer() != nil {
|
|
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "calculateRoute")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) CalculateRoute(request QGeoRouteRequest_ITF) *QGeoRouteReply {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRoutingManagerEngine_CalculateRoute(ptr.Pointer(), PointerFromQGeoRouteRequest(request)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_UpdateRoute
|
|
func callbackQGeoRoutingManagerEngine_UpdateRoute(ptr unsafe.Pointer, route unsafe.Pointer, position unsafe.Pointer) unsafe.Pointer {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "updateRoute"); signal != nil {
|
|
return PointerFromQGeoRouteReply(signal.(func(*QGeoRoute, *positioning.QGeoCoordinate) *QGeoRouteReply)(NewQGeoRouteFromPointer(route), positioning.NewQGeoCoordinateFromPointer(position)))
|
|
}
|
|
|
|
return PointerFromQGeoRouteReply(NewQGeoRoutingManagerEngineFromPointer(ptr).UpdateRouteDefault(NewQGeoRouteFromPointer(route), positioning.NewQGeoCoordinateFromPointer(position)))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ConnectUpdateRoute(f func(route *QGeoRoute, position *positioning.QGeoCoordinate) *QGeoRouteReply) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "updateRoute"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "updateRoute", func(route *QGeoRoute, position *positioning.QGeoCoordinate) *QGeoRouteReply {
|
|
signal.(func(*QGeoRoute, *positioning.QGeoCoordinate))(route, position)
|
|
return f(route, position)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "updateRoute", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DisconnectUpdateRoute() {
|
|
if ptr.Pointer() != nil {
|
|
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "updateRoute")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) UpdateRoute(route QGeoRoute_ITF, position positioning.QGeoCoordinate_ITF) *QGeoRouteReply {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRoutingManagerEngine_UpdateRoute(ptr.Pointer(), PointerFromQGeoRoute(route), positioning.PointerFromQGeoCoordinate(position)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) UpdateRouteDefault(route QGeoRoute_ITF, position positioning.QGeoCoordinate_ITF) *QGeoRouteReply {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRouteReplyFromPointer(C.QGeoRoutingManagerEngine_UpdateRouteDefault(ptr.Pointer(), PointerFromQGeoRoute(route), positioning.PointerFromQGeoCoordinate(position)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoRoutingManagerEngine(parameters map[string]*core.QVariant, parent core.QObject_ITF) *QGeoRoutingManagerEngine {
|
|
var tmpValue = NewQGeoRoutingManagerEngineFromPointer(C.QGeoRoutingManagerEngine_NewQGeoRoutingManagerEngine(func() unsafe.Pointer {
|
|
var tmpList = NewQGeoRoutingManagerEngineFromPointer(NewQGeoRoutingManagerEngineFromPointer(nil).__QGeoRoutingManagerEngine_parameters_newList())
|
|
for k, v := range parameters {
|
|
tmpList.__QGeoRoutingManagerEngine_parameters_setList(k, v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}(), core.PointerFromQObject(parent)))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_Error
|
|
func callbackQGeoRoutingManagerEngine_Error(ptr unsafe.Pointer, reply unsafe.Pointer, error C.longlong, errorString C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "error"); signal != nil {
|
|
signal.(func(*QGeoRouteReply, QGeoRouteReply__Error, string))(NewQGeoRouteReplyFromPointer(reply), QGeoRouteReply__Error(error), cGoUnpackString(errorString))
|
|
}
|
|
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ConnectError(f func(reply *QGeoRouteReply, error QGeoRouteReply__Error, errorString string)) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if !qt.ExistsSignal(fmt.Sprint(ptr.Pointer()), "error") {
|
|
C.QGeoRoutingManagerEngine_ConnectError(ptr.Pointer())
|
|
}
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "error"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "error", func(reply *QGeoRouteReply, error QGeoRouteReply__Error, errorString string) {
|
|
signal.(func(*QGeoRouteReply, QGeoRouteReply__Error, string))(reply, error, errorString)
|
|
f(reply, error, errorString)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "error", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DisconnectError() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_DisconnectError(ptr.Pointer())
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "error")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) Error(reply QGeoRouteReply_ITF, error QGeoRouteReply__Error, errorString string) {
|
|
if ptr.Pointer() != nil {
|
|
var errorStringC *C.char
|
|
if errorString != "" {
|
|
errorStringC = C.CString(errorString)
|
|
defer C.free(unsafe.Pointer(errorStringC))
|
|
}
|
|
C.QGeoRoutingManagerEngine_Error(ptr.Pointer(), PointerFromQGeoRouteReply(reply), C.longlong(error), errorStringC)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_Finished
|
|
func callbackQGeoRoutingManagerEngine_Finished(ptr unsafe.Pointer, reply unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "finished"); signal != nil {
|
|
signal.(func(*QGeoRouteReply))(NewQGeoRouteReplyFromPointer(reply))
|
|
}
|
|
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ConnectFinished(f func(reply *QGeoRouteReply)) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if !qt.ExistsSignal(fmt.Sprint(ptr.Pointer()), "finished") {
|
|
C.QGeoRoutingManagerEngine_ConnectFinished(ptr.Pointer())
|
|
}
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "finished"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "finished", func(reply *QGeoRouteReply) {
|
|
signal.(func(*QGeoRouteReply))(reply)
|
|
f(reply)
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "finished", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DisconnectFinished() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_DisconnectFinished(ptr.Pointer())
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "finished")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) Finished(reply QGeoRouteReply_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_Finished(ptr.Pointer(), PointerFromQGeoRouteReply(reply))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetLocale(locale core.QLocale_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetLocale(ptr.Pointer(), core.PointerFromQLocale(locale))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetMeasurementSystem(system core.QLocale__MeasurementSystem) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetMeasurementSystem(ptr.Pointer(), C.longlong(system))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetSupportedFeatureTypes(featureTypes QGeoRouteRequest__FeatureType) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetSupportedFeatureTypes(ptr.Pointer(), C.longlong(featureTypes))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetSupportedFeatureWeights(featureWeights QGeoRouteRequest__FeatureWeight) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetSupportedFeatureWeights(ptr.Pointer(), C.longlong(featureWeights))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetSupportedManeuverDetails(maneuverDetails QGeoRouteRequest__ManeuverDetail) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetSupportedManeuverDetails(ptr.Pointer(), C.longlong(maneuverDetails))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetSupportedRouteOptimizations(optimizations QGeoRouteRequest__RouteOptimization) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetSupportedRouteOptimizations(ptr.Pointer(), C.longlong(optimizations))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetSupportedSegmentDetails(segmentDetails QGeoRouteRequest__SegmentDetail) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetSupportedSegmentDetails(ptr.Pointer(), C.longlong(segmentDetails))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SetSupportedTravelModes(travelModes QGeoRouteRequest__TravelMode) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_SetSupportedTravelModes(ptr.Pointer(), C.longlong(travelModes))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngine
|
|
func callbackQGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngine(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "~QGeoRoutingManagerEngine"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).DestroyQGeoRoutingManagerEngineDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ConnectDestroyQGeoRoutingManagerEngine(f func()) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRoutingManagerEngine"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRoutingManagerEngine", func() {
|
|
signal.(func())()
|
|
f()
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRoutingManagerEngine", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DisconnectDestroyQGeoRoutingManagerEngine() {
|
|
if ptr.Pointer() != nil {
|
|
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoRoutingManagerEngine")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DestroyQGeoRoutingManagerEngine() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngine(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DestroyQGeoRoutingManagerEngineDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngineDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SupportedFeatureTypes() QGeoRouteRequest__FeatureType {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__FeatureType(C.QGeoRoutingManagerEngine_SupportedFeatureTypes(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SupportedFeatureWeights() QGeoRouteRequest__FeatureWeight {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__FeatureWeight(C.QGeoRoutingManagerEngine_SupportedFeatureWeights(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SupportedManeuverDetails() QGeoRouteRequest__ManeuverDetail {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__ManeuverDetail(C.QGeoRoutingManagerEngine_SupportedManeuverDetails(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SupportedRouteOptimizations() QGeoRouteRequest__RouteOptimization {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__RouteOptimization(C.QGeoRoutingManagerEngine_SupportedRouteOptimizations(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SupportedSegmentDetails() QGeoRouteRequest__SegmentDetail {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__SegmentDetail(C.QGeoRoutingManagerEngine_SupportedSegmentDetails(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) SupportedTravelModes() QGeoRouteRequest__TravelMode {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoRouteRequest__TravelMode(C.QGeoRoutingManagerEngine_SupportedTravelModes(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) Locale() *core.QLocale {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQLocaleFromPointer(C.QGeoRoutingManagerEngine_Locale(ptr.Pointer()))
|
|
runtime.SetFinalizer(tmpValue, (*core.QLocale).DestroyQLocale)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) MeasurementSystem() core.QLocale__MeasurementSystem {
|
|
if ptr.Pointer() != nil {
|
|
return core.QLocale__MeasurementSystem(C.QGeoRoutingManagerEngine_MeasurementSystem(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ManagerName() string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoRoutingManagerEngine_ManagerName(ptr.Pointer()))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ManagerVersion() int {
|
|
if ptr.Pointer() != nil {
|
|
return int(int32(C.QGeoRoutingManagerEngine_ManagerVersion(ptr.Pointer())))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __QGeoRoutingManagerEngine_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoRoutingManagerEngine___QGeoRoutingManagerEngine_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __QGeoRoutingManagerEngine_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoRoutingManagerEngine___QGeoRoutingManagerEngine_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __QGeoRoutingManagerEngine_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine___QGeoRoutingManagerEngine_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __QGeoRoutingManagerEngine_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoRoutingManagerEngineFromPointer(l.data).____QGeoRoutingManagerEngine_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoRoutingManagerEngine___QGeoRoutingManagerEngine_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ____QGeoRoutingManagerEngine_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoRoutingManagerEngine_____QGeoRoutingManagerEngine_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ____QGeoRoutingManagerEngine_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoRoutingManagerEngine_____QGeoRoutingManagerEngine_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ____QGeoRoutingManagerEngine_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine_____QGeoRoutingManagerEngine_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __dynamicPropertyNames_atList(i int) *core.QByteArray {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQByteArrayFromPointer(C.QGeoRoutingManagerEngine___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __dynamicPropertyNames_setList(i core.QByteArray_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __dynamicPropertyNames_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine___dynamicPropertyNames_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_atList2(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManagerEngine___findChildren_atList2(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_setList2(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_newList2() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine___findChildren_newList2(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_atList3(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManagerEngine___findChildren_atList3(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_setList3(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_newList3() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine___findChildren_newList3(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManagerEngine___findChildren_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __findChildren_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine___findChildren_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __children_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoRoutingManagerEngine___children_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __children_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine___children_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) __children_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoRoutingManagerEngine___children_newList(ptr.Pointer()))
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_Event
|
|
func callbackQGeoRoutingManagerEngine_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "event"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoRoutingManagerEngineFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) EventDefault(e core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRoutingManagerEngine_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_EventFilter
|
|
func callbackQGeoRoutingManagerEngine_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "eventFilter"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoRoutingManagerEngineFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoRoutingManagerEngine_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_ChildEvent
|
|
func callbackQGeoRoutingManagerEngine_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "childEvent"); signal != nil {
|
|
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ChildEventDefault(event core.QChildEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_ConnectNotify
|
|
func callbackQGeoRoutingManagerEngine_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "connectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) ConnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_CustomEvent
|
|
func callbackQGeoRoutingManagerEngine_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "customEvent"); signal != nil {
|
|
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) CustomEventDefault(event core.QEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_DeleteLater
|
|
func callbackQGeoRoutingManagerEngine_DeleteLater(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "deleteLater"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).DeleteLaterDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DeleteLaterDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_DeleteLaterDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_Destroyed
|
|
func callbackQGeoRoutingManagerEngine_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "destroyed"); signal != nil {
|
|
signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_DisconnectNotify
|
|
func callbackQGeoRoutingManagerEngine_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "disconnectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_ObjectNameChanged
|
|
func callbackQGeoRoutingManagerEngine_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "objectNameChanged"); signal != nil {
|
|
signal.(func(string))(cGoUnpackString(objectName))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_TimerEvent
|
|
func callbackQGeoRoutingManagerEngine_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "timerEvent"); signal != nil {
|
|
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
|
|
} else {
|
|
NewQGeoRoutingManagerEngineFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) TimerEventDefault(event core.QTimerEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoRoutingManagerEngine_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoRoutingManagerEngine_MetaObject
|
|
func callbackQGeoRoutingManagerEngine_MetaObject(ptr unsafe.Pointer) unsafe.Pointer {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "metaObject"); signal != nil {
|
|
return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)())
|
|
}
|
|
|
|
return core.PointerFromQMetaObject(NewQGeoRoutingManagerEngineFromPointer(ptr).MetaObjectDefault())
|
|
}
|
|
|
|
func (ptr *QGeoRoutingManagerEngine) MetaObjectDefault() *core.QMetaObject {
|
|
if ptr.Pointer() != nil {
|
|
return core.NewQMetaObjectFromPointer(C.QGeoRoutingManagerEngine_MetaObjectDefault(ptr.Pointer()))
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QGeoServiceProvider struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QGeoServiceProvider_ITF interface {
|
|
core.QObject_ITF
|
|
QGeoServiceProvider_PTR() *QGeoServiceProvider
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) QGeoServiceProvider_PTR() *QGeoServiceProvider {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoServiceProvider(ptr QGeoServiceProvider_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoServiceProvider_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoServiceProviderFromPointer(ptr unsafe.Pointer) *QGeoServiceProvider {
|
|
var n = new(QGeoServiceProvider)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QGeoServiceProvider__Error
|
|
//QGeoServiceProvider::Error
|
|
type QGeoServiceProvider__Error int64
|
|
|
|
const (
|
|
QGeoServiceProvider__NoError QGeoServiceProvider__Error = QGeoServiceProvider__Error(0)
|
|
QGeoServiceProvider__NotSupportedError QGeoServiceProvider__Error = QGeoServiceProvider__Error(1)
|
|
QGeoServiceProvider__UnknownParameterError QGeoServiceProvider__Error = QGeoServiceProvider__Error(2)
|
|
QGeoServiceProvider__MissingRequiredParameterError QGeoServiceProvider__Error = QGeoServiceProvider__Error(3)
|
|
QGeoServiceProvider__ConnectionError QGeoServiceProvider__Error = QGeoServiceProvider__Error(4)
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoServiceProvider__GeocodingFeature
|
|
//QGeoServiceProvider::GeocodingFeature
|
|
type QGeoServiceProvider__GeocodingFeature int64
|
|
|
|
var (
|
|
QGeoServiceProvider__NoGeocodingFeatures QGeoServiceProvider__GeocodingFeature = QGeoServiceProvider__GeocodingFeature(0)
|
|
QGeoServiceProvider__OnlineGeocodingFeature QGeoServiceProvider__GeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_OnlineGeocodingFeature_Type())
|
|
QGeoServiceProvider__OfflineGeocodingFeature QGeoServiceProvider__GeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_OfflineGeocodingFeature_Type())
|
|
QGeoServiceProvider__ReverseGeocodingFeature QGeoServiceProvider__GeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_ReverseGeocodingFeature_Type())
|
|
QGeoServiceProvider__LocalizedGeocodingFeature QGeoServiceProvider__GeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_LocalizedGeocodingFeature_Type())
|
|
QGeoServiceProvider__AnyGeocodingFeatures QGeoServiceProvider__GeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_AnyGeocodingFeatures_Type())
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoServiceProvider__MappingFeature
|
|
//QGeoServiceProvider::MappingFeature
|
|
type QGeoServiceProvider__MappingFeature int64
|
|
|
|
var (
|
|
QGeoServiceProvider__NoMappingFeatures QGeoServiceProvider__MappingFeature = QGeoServiceProvider__MappingFeature(0)
|
|
QGeoServiceProvider__OnlineMappingFeature QGeoServiceProvider__MappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_OnlineMappingFeature_Type())
|
|
QGeoServiceProvider__OfflineMappingFeature QGeoServiceProvider__MappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_OfflineMappingFeature_Type())
|
|
QGeoServiceProvider__LocalizedMappingFeature QGeoServiceProvider__MappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_LocalizedMappingFeature_Type())
|
|
QGeoServiceProvider__AnyMappingFeatures QGeoServiceProvider__MappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_AnyMappingFeatures_Type())
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoServiceProvider__PlacesFeature
|
|
//QGeoServiceProvider::PlacesFeature
|
|
type QGeoServiceProvider__PlacesFeature int64
|
|
|
|
var (
|
|
QGeoServiceProvider__NoPlacesFeatures QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(0)
|
|
QGeoServiceProvider__OnlinePlacesFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_OnlinePlacesFeature_Type())
|
|
QGeoServiceProvider__OfflinePlacesFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_OfflinePlacesFeature_Type())
|
|
QGeoServiceProvider__SavePlaceFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_SavePlaceFeature_Type())
|
|
QGeoServiceProvider__RemovePlaceFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_RemovePlaceFeature_Type())
|
|
QGeoServiceProvider__SaveCategoryFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_SaveCategoryFeature_Type())
|
|
QGeoServiceProvider__RemoveCategoryFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_RemoveCategoryFeature_Type())
|
|
QGeoServiceProvider__PlaceRecommendationsFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_PlaceRecommendationsFeature_Type())
|
|
QGeoServiceProvider__SearchSuggestionsFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_SearchSuggestionsFeature_Type())
|
|
QGeoServiceProvider__LocalizedPlacesFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_LocalizedPlacesFeature_Type())
|
|
QGeoServiceProvider__NotificationsFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_NotificationsFeature_Type())
|
|
QGeoServiceProvider__PlaceMatchingFeature QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_PlaceMatchingFeature_Type())
|
|
QGeoServiceProvider__AnyPlacesFeatures QGeoServiceProvider__PlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_AnyPlacesFeatures_Type())
|
|
)
|
|
|
|
//go:generate stringer -type=QGeoServiceProvider__RoutingFeature
|
|
//QGeoServiceProvider::RoutingFeature
|
|
type QGeoServiceProvider__RoutingFeature int64
|
|
|
|
var (
|
|
QGeoServiceProvider__NoRoutingFeatures QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(0)
|
|
QGeoServiceProvider__OnlineRoutingFeature QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_OnlineRoutingFeature_Type())
|
|
QGeoServiceProvider__OfflineRoutingFeature QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_OfflineRoutingFeature_Type())
|
|
QGeoServiceProvider__LocalizedRoutingFeature QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_LocalizedRoutingFeature_Type())
|
|
QGeoServiceProvider__RouteUpdatesFeature QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_RouteUpdatesFeature_Type())
|
|
QGeoServiceProvider__AlternativeRoutesFeature QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_AlternativeRoutesFeature_Type())
|
|
QGeoServiceProvider__ExcludeAreasRoutingFeature QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_ExcludeAreasRoutingFeature_Type())
|
|
QGeoServiceProvider__AnyRoutingFeatures QGeoServiceProvider__RoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_AnyRoutingFeatures_Type())
|
|
)
|
|
|
|
func NewQGeoServiceProvider(providerName string, parameters map[string]*core.QVariant, allowExperimental bool) *QGeoServiceProvider {
|
|
var providerNameC *C.char
|
|
if providerName != "" {
|
|
providerNameC = C.CString(providerName)
|
|
defer C.free(unsafe.Pointer(providerNameC))
|
|
}
|
|
var tmpValue = NewQGeoServiceProviderFromPointer(C.QGeoServiceProvider_NewQGeoServiceProvider(providerNameC, func() unsafe.Pointer {
|
|
var tmpList = NewQGeoServiceProviderFromPointer(NewQGeoServiceProviderFromPointer(nil).__QGeoServiceProvider_parameters_newList())
|
|
for k, v := range parameters {
|
|
tmpList.__QGeoServiceProvider_parameters_setList(k, v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}(), C.char(int8(qt.GoBoolToInt(allowExperimental)))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
|
|
func QGeoServiceProvider_AvailableServiceProviders() []string {
|
|
return strings.Split(cGoUnpackString(C.QGeoServiceProvider_QGeoServiceProvider_AvailableServiceProviders()), "|")
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) AvailableServiceProviders() []string {
|
|
return strings.Split(cGoUnpackString(C.QGeoServiceProvider_QGeoServiceProvider_AvailableServiceProviders()), "|")
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) SetAllowExperimental(allow bool) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_SetAllowExperimental(ptr.Pointer(), C.char(int8(qt.GoBoolToInt(allow))))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) SetLocale(locale core.QLocale_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_SetLocale(ptr.Pointer(), core.PointerFromQLocale(locale))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) SetParameters(parameters map[string]*core.QVariant) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_SetParameters(ptr.Pointer(), func() unsafe.Pointer {
|
|
var tmpList = NewQGeoServiceProviderFromPointer(NewQGeoServiceProviderFromPointer(nil).__setParameters_parameters_newList())
|
|
for k, v := range parameters {
|
|
tmpList.__setParameters_parameters_setList(k, v)
|
|
}
|
|
return tmpList.Pointer()
|
|
}())
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) DestroyQGeoServiceProvider() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_DestroyQGeoServiceProvider(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) Error() QGeoServiceProvider__Error {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoServiceProvider__Error(C.QGeoServiceProvider_Error(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) GeocodingFeatures() QGeoServiceProvider__GeocodingFeature {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_GeocodingFeatures(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) MappingFeatures() QGeoServiceProvider__MappingFeature {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_MappingFeatures(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) PlacesFeatures() QGeoServiceProvider__PlacesFeature {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_PlacesFeatures(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) GeocodingManager() *QGeoCodingManager {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoCodingManagerFromPointer(C.QGeoServiceProvider_GeocodingManager(ptr.Pointer()))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) RoutingManager() *QGeoRoutingManager {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQGeoRoutingManagerFromPointer(C.QGeoServiceProvider_RoutingManager(ptr.Pointer()))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) PlaceManager() *QPlaceManager {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = NewQPlaceManagerFromPointer(C.QGeoServiceProvider_PlaceManager(ptr.Pointer()))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ErrorString() string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProvider_ErrorString(ptr.Pointer()))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) RoutingFeatures() QGeoServiceProvider__RoutingFeature {
|
|
if ptr.Pointer() != nil {
|
|
return QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_RoutingFeatures(ptr.Pointer()))
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __QGeoServiceProvider_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoServiceProvider___QGeoServiceProvider_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __QGeoServiceProvider_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoServiceProvider___QGeoServiceProvider_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __QGeoServiceProvider_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___QGeoServiceProvider_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __QGeoServiceProvider_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoServiceProviderFromPointer(l.data).____QGeoServiceProvider_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoServiceProvider___QGeoServiceProvider_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __setParameters_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoServiceProvider___setParameters_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __setParameters_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoServiceProvider___setParameters_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __setParameters_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___setParameters_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __setParameters_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoServiceProviderFromPointer(l.data).____setParameters_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoServiceProvider___setParameters_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ____QGeoServiceProvider_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProvider_____QGeoServiceProvider_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ____QGeoServiceProvider_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoServiceProvider_____QGeoServiceProvider_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ____QGeoServiceProvider_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider_____QGeoServiceProvider_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ____setParameters_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProvider_____setParameters_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ____setParameters_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoServiceProvider_____setParameters_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ____setParameters_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider_____setParameters_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __dynamicPropertyNames_atList(i int) *core.QByteArray {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQByteArrayFromPointer(C.QGeoServiceProvider___dynamicPropertyNames_atList(ptr.Pointer(), C.int(int32(i))))
|
|
runtime.SetFinalizer(tmpValue, (*core.QByteArray).DestroyQByteArray)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __dynamicPropertyNames_setList(i core.QByteArray_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider___dynamicPropertyNames_setList(ptr.Pointer(), core.PointerFromQByteArray(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __dynamicPropertyNames_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___dynamicPropertyNames_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_atList2(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoServiceProvider___findChildren_atList2(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_setList2(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider___findChildren_setList2(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_newList2() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___findChildren_newList2(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_atList3(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoServiceProvider___findChildren_atList3(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_setList3(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider___findChildren_setList3(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_newList3() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___findChildren_newList3(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoServiceProvider___findChildren_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider___findChildren_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __findChildren_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___findChildren_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __children_atList(i int) *core.QObject {
|
|
if ptr.Pointer() != nil {
|
|
var tmpValue = core.NewQObjectFromPointer(C.QGeoServiceProvider___children_atList(ptr.Pointer(), C.int(int32(i))))
|
|
if !qt.ExistsSignal(fmt.Sprint(tmpValue.Pointer()), "QObject::destroyed") {
|
|
tmpValue.ConnectDestroyed(func(*core.QObject) { tmpValue.SetPointer(nil) })
|
|
}
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __children_setList(i core.QObject_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider___children_setList(ptr.Pointer(), core.PointerFromQObject(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) __children_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProvider___children_newList(ptr.Pointer()))
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_Event
|
|
func callbackQGeoServiceProvider_Event(ptr unsafe.Pointer, e unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "event"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QEvent) bool)(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoServiceProviderFromPointer(ptr).EventDefault(core.NewQEventFromPointer(e)))))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) EventDefault(e core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoServiceProvider_EventDefault(ptr.Pointer(), core.PointerFromQEvent(e)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_EventFilter
|
|
func callbackQGeoServiceProvider_EventFilter(ptr unsafe.Pointer, watched unsafe.Pointer, event unsafe.Pointer) C.char {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "eventFilter"); signal != nil {
|
|
return C.char(int8(qt.GoBoolToInt(signal.(func(*core.QObject, *core.QEvent) bool)(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
return C.char(int8(qt.GoBoolToInt(NewQGeoServiceProviderFromPointer(ptr).EventFilterDefault(core.NewQObjectFromPointer(watched), core.NewQEventFromPointer(event)))))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) EventFilterDefault(watched core.QObject_ITF, event core.QEvent_ITF) bool {
|
|
if ptr.Pointer() != nil {
|
|
return C.QGeoServiceProvider_EventFilterDefault(ptr.Pointer(), core.PointerFromQObject(watched), core.PointerFromQEvent(event)) != 0
|
|
}
|
|
return false
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_ChildEvent
|
|
func callbackQGeoServiceProvider_ChildEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "childEvent"); signal != nil {
|
|
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
|
|
} else {
|
|
NewQGeoServiceProviderFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ChildEventDefault(event core.QChildEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_ConnectNotify
|
|
func callbackQGeoServiceProvider_ConnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "connectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoServiceProviderFromPointer(ptr).ConnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) ConnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_ConnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_CustomEvent
|
|
func callbackQGeoServiceProvider_CustomEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "customEvent"); signal != nil {
|
|
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
|
|
} else {
|
|
NewQGeoServiceProviderFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) CustomEventDefault(event core.QEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_DeleteLater
|
|
func callbackQGeoServiceProvider_DeleteLater(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "deleteLater"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoServiceProviderFromPointer(ptr).DeleteLaterDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) DeleteLaterDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_DeleteLaterDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_Destroyed
|
|
func callbackQGeoServiceProvider_Destroyed(ptr unsafe.Pointer, obj unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "destroyed"); signal != nil {
|
|
signal.(func(*core.QObject))(core.NewQObjectFromPointer(obj))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_DisconnectNotify
|
|
func callbackQGeoServiceProvider_DisconnectNotify(ptr unsafe.Pointer, sign unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "disconnectNotify"); signal != nil {
|
|
signal.(func(*core.QMetaMethod))(core.NewQMetaMethodFromPointer(sign))
|
|
} else {
|
|
NewQGeoServiceProviderFromPointer(ptr).DisconnectNotifyDefault(core.NewQMetaMethodFromPointer(sign))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) DisconnectNotifyDefault(sign core.QMetaMethod_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_DisconnectNotifyDefault(ptr.Pointer(), core.PointerFromQMetaMethod(sign))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_ObjectNameChanged
|
|
func callbackQGeoServiceProvider_ObjectNameChanged(ptr unsafe.Pointer, objectName C.struct_QtLocation_PackedString) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "objectNameChanged"); signal != nil {
|
|
signal.(func(string))(cGoUnpackString(objectName))
|
|
}
|
|
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_TimerEvent
|
|
func callbackQGeoServiceProvider_TimerEvent(ptr unsafe.Pointer, event unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "timerEvent"); signal != nil {
|
|
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
|
|
} else {
|
|
NewQGeoServiceProviderFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) TimerEventDefault(event core.QTimerEvent_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProvider_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
|
|
}
|
|
}
|
|
|
|
//export callbackQGeoServiceProvider_MetaObject
|
|
func callbackQGeoServiceProvider_MetaObject(ptr unsafe.Pointer) unsafe.Pointer {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "metaObject"); signal != nil {
|
|
return core.PointerFromQMetaObject(signal.(func() *core.QMetaObject)())
|
|
}
|
|
|
|
return core.PointerFromQMetaObject(NewQGeoServiceProviderFromPointer(ptr).MetaObjectDefault())
|
|
}
|
|
|
|
func (ptr *QGeoServiceProvider) MetaObjectDefault() *core.QMetaObject {
|
|
if ptr.Pointer() != nil {
|
|
return core.NewQMetaObjectFromPointer(C.QGeoServiceProvider_MetaObjectDefault(ptr.Pointer()))
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QGeoServiceProviderFactory struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QGeoServiceProviderFactory_ITF interface {
|
|
QGeoServiceProviderFactory_PTR() *QGeoServiceProviderFactory
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) QGeoServiceProviderFactory_PTR() *QGeoServiceProviderFactory {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQGeoServiceProviderFactory(ptr QGeoServiceProviderFactory_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QGeoServiceProviderFactory_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQGeoServiceProviderFactoryFromPointer(ptr unsafe.Pointer) *QGeoServiceProviderFactory {
|
|
var n = new(QGeoServiceProviderFactory)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//export callbackQGeoServiceProviderFactory_DestroyQGeoServiceProviderFactory
|
|
func callbackQGeoServiceProviderFactory_DestroyQGeoServiceProviderFactory(ptr unsafe.Pointer) {
|
|
if signal := qt.GetSignal(fmt.Sprint(ptr), "~QGeoServiceProviderFactory"); signal != nil {
|
|
signal.(func())()
|
|
} else {
|
|
NewQGeoServiceProviderFactoryFromPointer(ptr).DestroyQGeoServiceProviderFactoryDefault()
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ConnectDestroyQGeoServiceProviderFactory(f func()) {
|
|
if ptr.Pointer() != nil {
|
|
|
|
if signal := qt.LendSignal(fmt.Sprint(ptr.Pointer()), "~QGeoServiceProviderFactory"); signal != nil {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoServiceProviderFactory", func() {
|
|
signal.(func())()
|
|
f()
|
|
})
|
|
} else {
|
|
qt.ConnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoServiceProviderFactory", f)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) DisconnectDestroyQGeoServiceProviderFactory() {
|
|
if ptr.Pointer() != nil {
|
|
|
|
qt.DisconnectSignal(fmt.Sprint(ptr.Pointer()), "~QGeoServiceProviderFactory")
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) DestroyQGeoServiceProviderFactory() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProviderFactory_DestroyQGeoServiceProviderFactory(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) DestroyQGeoServiceProviderFactoryDefault() {
|
|
if ptr.Pointer() != nil {
|
|
C.QGeoServiceProviderFactory_DestroyQGeoServiceProviderFactoryDefault(ptr.Pointer())
|
|
qt.DisconnectAllSignals(fmt.Sprint(ptr.Pointer()))
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createGeocodingManagerEngine_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoServiceProviderFactory___createGeocodingManagerEngine_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createGeocodingManagerEngine_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoServiceProviderFactory___createGeocodingManagerEngine_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createGeocodingManagerEngine_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory___createGeocodingManagerEngine_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createGeocodingManagerEngine_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoServiceProviderFactoryFromPointer(l.data).____createGeocodingManagerEngine_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoServiceProviderFactory___createGeocodingManagerEngine_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createMappingManagerEngine_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoServiceProviderFactory___createMappingManagerEngine_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createMappingManagerEngine_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoServiceProviderFactory___createMappingManagerEngine_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createMappingManagerEngine_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory___createMappingManagerEngine_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createMappingManagerEngine_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoServiceProviderFactoryFromPointer(l.data).____createMappingManagerEngine_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoServiceProviderFactory___createMappingManagerEngine_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createRoutingManagerEngine_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoServiceProviderFactory___createRoutingManagerEngine_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createRoutingManagerEngine_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoServiceProviderFactory___createRoutingManagerEngine_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createRoutingManagerEngine_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory___createRoutingManagerEngine_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createRoutingManagerEngine_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoServiceProviderFactoryFromPointer(l.data).____createRoutingManagerEngine_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoServiceProviderFactory___createRoutingManagerEngine_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createPlaceManagerEngine_parameters_atList(i string) *core.QVariant {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
var tmpValue = core.NewQVariantFromPointer(C.QGeoServiceProviderFactory___createPlaceManagerEngine_parameters_atList(ptr.Pointer(), iC))
|
|
runtime.SetFinalizer(tmpValue, (*core.QVariant).DestroyQVariant)
|
|
return tmpValue
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createPlaceManagerEngine_parameters_setList(key string, i core.QVariant_ITF) {
|
|
if ptr.Pointer() != nil {
|
|
var keyC *C.char
|
|
if key != "" {
|
|
keyC = C.CString(key)
|
|
defer C.free(unsafe.Pointer(keyC))
|
|
}
|
|
C.QGeoServiceProviderFactory___createPlaceManagerEngine_parameters_setList(ptr.Pointer(), keyC, core.PointerFromQVariant(i))
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createPlaceManagerEngine_parameters_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory___createPlaceManagerEngine_parameters_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) __createPlaceManagerEngine_keyList() []string {
|
|
if ptr.Pointer() != nil {
|
|
return func(l C.struct_QtLocation_PackedList) []string {
|
|
var out = make([]string, int(l.len))
|
|
for i := 0; i < int(l.len); i++ {
|
|
out[i] = NewQGeoServiceProviderFactoryFromPointer(l.data).____createPlaceManagerEngine_keyList_atList(i)
|
|
}
|
|
return out
|
|
}(C.QGeoServiceProviderFactory___createPlaceManagerEngine_keyList(ptr.Pointer()))
|
|
}
|
|
return make([]string, 0)
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createGeocodingManagerEngine_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProviderFactory_____createGeocodingManagerEngine_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createGeocodingManagerEngine_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoServiceProviderFactory_____createGeocodingManagerEngine_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createGeocodingManagerEngine_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory_____createGeocodingManagerEngine_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createMappingManagerEngine_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProviderFactory_____createMappingManagerEngine_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createMappingManagerEngine_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoServiceProviderFactory_____createMappingManagerEngine_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createMappingManagerEngine_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory_____createMappingManagerEngine_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createRoutingManagerEngine_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProviderFactory_____createRoutingManagerEngine_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createRoutingManagerEngine_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoServiceProviderFactory_____createRoutingManagerEngine_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createRoutingManagerEngine_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory_____createRoutingManagerEngine_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createPlaceManagerEngine_keyList_atList(i int) string {
|
|
if ptr.Pointer() != nil {
|
|
return cGoUnpackString(C.QGeoServiceProviderFactory_____createPlaceManagerEngine_keyList_atList(ptr.Pointer(), C.int(int32(i))))
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createPlaceManagerEngine_keyList_setList(i string) {
|
|
if ptr.Pointer() != nil {
|
|
var iC *C.char
|
|
if i != "" {
|
|
iC = C.CString(i)
|
|
defer C.free(unsafe.Pointer(iC))
|
|
}
|
|
C.QGeoServiceProviderFactory_____createPlaceManagerEngine_keyList_setList(ptr.Pointer(), iC)
|
|
}
|
|
}
|
|
|
|
func (ptr *QGeoServiceProviderFactory) ____createPlaceManagerEngine_keyList_newList() unsafe.Pointer {
|
|
return unsafe.Pointer(C.QGeoServiceProviderFactory_____createPlaceManagerEngine_keyList_newList(ptr.Pointer()))
|
|
}
|
|
|
|
type QLocation struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QLocation_ITF interface {
|
|
QLocation_PTR() *QLocation
|
|
}
|
|
|
|
func (ptr *QLocation) QLocation_PTR() *QLocation {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QLocation) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QLocation) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQLocation(ptr QLocation_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QLocation_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQLocationFromPointer(ptr unsafe.Pointer) *QLocation {
|
|
var n = new(QLocation)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
func (ptr *QLocation) DestroyQLocation() {
|
|
if ptr != nil {
|
|
C.free(ptr.Pointer())
|
|
ptr.SetPointer(nil)
|
|
}
|
|
}
|
|
|
|
//go:generate stringer -type=QLocation__Visibility
|
|
//QLocation::Visibility
|
|
type QLocation__Visibility int64
|
|
|
|
const (
|
|
QLocation__UnspecifiedVisibility QLocation__Visibility = QLocation__Visibility(0x00)
|
|
QLocation__DeviceVisibility QLocation__Visibility = QLocation__Visibility(0x01)
|
|
QLocation__PrivateVisibility QLocation__Visibility = QLocation__Visibility(0x02)
|
|
QLocation__PublicVisibility QLocation__Visibility = QLocation__Visibility(0x04)
|
|
)
|
|
|
|
type QPlace struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlace_ITF interface {
|
|
QPlace_PTR() *QPlace
|
|
}
|
|
|
|
func (ptr *QPlace) QPlace_PTR() *QPlace {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlace) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlace) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlace(ptr QPlace_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlace_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceFromPointer(ptr unsafe.Pointer) *QPlace {
|
|
var n = new(QPlace)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceAttribute struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceAttribute_ITF interface {
|
|
QPlaceAttribute_PTR() *QPlaceAttribute
|
|
}
|
|
|
|
func (ptr *QPlaceAttribute) QPlaceAttribute_PTR() *QPlaceAttribute {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceAttribute) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceAttribute) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceAttribute(ptr QPlaceAttribute_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceAttribute_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceAttributeFromPointer(ptr unsafe.Pointer) *QPlaceAttribute {
|
|
var n = new(QPlaceAttribute)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceCategory struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceCategory_ITF interface {
|
|
QPlaceCategory_PTR() *QPlaceCategory
|
|
}
|
|
|
|
func (ptr *QPlaceCategory) QPlaceCategory_PTR() *QPlaceCategory {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceCategory) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceCategory) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceCategory(ptr QPlaceCategory_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceCategory_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceCategoryFromPointer(ptr unsafe.Pointer) *QPlaceCategory {
|
|
var n = new(QPlaceCategory)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceContactDetail struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceContactDetail_ITF interface {
|
|
QPlaceContactDetail_PTR() *QPlaceContactDetail
|
|
}
|
|
|
|
func (ptr *QPlaceContactDetail) QPlaceContactDetail_PTR() *QPlaceContactDetail {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceContactDetail) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceContactDetail) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceContactDetail(ptr QPlaceContactDetail_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContactDetail_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceContactDetailFromPointer(ptr unsafe.Pointer) *QPlaceContactDetail {
|
|
var n = new(QPlaceContactDetail)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceContent struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceContent_ITF interface {
|
|
QPlaceContent_PTR() *QPlaceContent
|
|
}
|
|
|
|
func (ptr *QPlaceContent) QPlaceContent_PTR() *QPlaceContent {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceContent) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceContent) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceContent(ptr QPlaceContent_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContent_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceContentFromPointer(ptr unsafe.Pointer) *QPlaceContent {
|
|
var n = new(QPlaceContent)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QPlaceContent__Type
|
|
//QPlaceContent::Type
|
|
type QPlaceContent__Type int64
|
|
|
|
const (
|
|
QPlaceContent__NoType QPlaceContent__Type = QPlaceContent__Type(0)
|
|
QPlaceContent__ImageType QPlaceContent__Type = QPlaceContent__Type(1)
|
|
QPlaceContent__ReviewType QPlaceContent__Type = QPlaceContent__Type(2)
|
|
QPlaceContent__EditorialType QPlaceContent__Type = QPlaceContent__Type(3)
|
|
)
|
|
|
|
type QPlaceContentReply struct {
|
|
QPlaceReply
|
|
}
|
|
|
|
type QPlaceContentReply_ITF interface {
|
|
QPlaceReply_ITF
|
|
QPlaceContentReply_PTR() *QPlaceContentReply
|
|
}
|
|
|
|
func (ptr *QPlaceContentReply) QPlaceContentReply_PTR() *QPlaceContentReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceContentReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceContentReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceReply_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceContentReply(ptr QPlaceContentReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContentReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceContentReplyFromPointer(ptr unsafe.Pointer) *QPlaceContentReply {
|
|
var n = new(QPlaceContentReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceContentRequest struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceContentRequest_ITF interface {
|
|
QPlaceContentRequest_PTR() *QPlaceContentRequest
|
|
}
|
|
|
|
func (ptr *QPlaceContentRequest) QPlaceContentRequest_PTR() *QPlaceContentRequest {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceContentRequest) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceContentRequest) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceContentRequest(ptr QPlaceContentRequest_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContentRequest_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceContentRequestFromPointer(ptr unsafe.Pointer) *QPlaceContentRequest {
|
|
var n = new(QPlaceContentRequest)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceDetailsReply struct {
|
|
QPlaceReply
|
|
}
|
|
|
|
type QPlaceDetailsReply_ITF interface {
|
|
QPlaceReply_ITF
|
|
QPlaceDetailsReply_PTR() *QPlaceDetailsReply
|
|
}
|
|
|
|
func (ptr *QPlaceDetailsReply) QPlaceDetailsReply_PTR() *QPlaceDetailsReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceDetailsReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceDetailsReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceReply_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceDetailsReply(ptr QPlaceDetailsReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceDetailsReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceDetailsReplyFromPointer(ptr unsafe.Pointer) *QPlaceDetailsReply {
|
|
var n = new(QPlaceDetailsReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceEditorial struct {
|
|
QPlaceContent
|
|
}
|
|
|
|
type QPlaceEditorial_ITF interface {
|
|
QPlaceContent_ITF
|
|
QPlaceEditorial_PTR() *QPlaceEditorial
|
|
}
|
|
|
|
func (ptr *QPlaceEditorial) QPlaceEditorial_PTR() *QPlaceEditorial {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceEditorial) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContent_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceEditorial) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceContent_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceEditorial(ptr QPlaceEditorial_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceEditorial_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceEditorialFromPointer(ptr unsafe.Pointer) *QPlaceEditorial {
|
|
var n = new(QPlaceEditorial)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceIcon struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceIcon_ITF interface {
|
|
QPlaceIcon_PTR() *QPlaceIcon
|
|
}
|
|
|
|
func (ptr *QPlaceIcon) QPlaceIcon_PTR() *QPlaceIcon {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceIcon) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceIcon) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceIcon(ptr QPlaceIcon_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceIcon_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceIconFromPointer(ptr unsafe.Pointer) *QPlaceIcon {
|
|
var n = new(QPlaceIcon)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceIdReply struct {
|
|
QPlaceReply
|
|
}
|
|
|
|
type QPlaceIdReply_ITF interface {
|
|
QPlaceReply_ITF
|
|
QPlaceIdReply_PTR() *QPlaceIdReply
|
|
}
|
|
|
|
func (ptr *QPlaceIdReply) QPlaceIdReply_PTR() *QPlaceIdReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceIdReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceIdReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceReply_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceIdReply(ptr QPlaceIdReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceIdReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceIdReplyFromPointer(ptr unsafe.Pointer) *QPlaceIdReply {
|
|
var n = new(QPlaceIdReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QPlaceIdReply__OperationType
|
|
//QPlaceIdReply::OperationType
|
|
type QPlaceIdReply__OperationType int64
|
|
|
|
const (
|
|
QPlaceIdReply__SavePlace QPlaceIdReply__OperationType = QPlaceIdReply__OperationType(0)
|
|
QPlaceIdReply__SaveCategory QPlaceIdReply__OperationType = QPlaceIdReply__OperationType(1)
|
|
QPlaceIdReply__RemovePlace QPlaceIdReply__OperationType = QPlaceIdReply__OperationType(2)
|
|
QPlaceIdReply__RemoveCategory QPlaceIdReply__OperationType = QPlaceIdReply__OperationType(3)
|
|
)
|
|
|
|
type QPlaceImage struct {
|
|
QPlaceContent
|
|
}
|
|
|
|
type QPlaceImage_ITF interface {
|
|
QPlaceContent_ITF
|
|
QPlaceImage_PTR() *QPlaceImage
|
|
}
|
|
|
|
func (ptr *QPlaceImage) QPlaceImage_PTR() *QPlaceImage {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceImage) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContent_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceImage) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceContent_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceImage(ptr QPlaceImage_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceImage_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceImageFromPointer(ptr unsafe.Pointer) *QPlaceImage {
|
|
var n = new(QPlaceImage)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceManager struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QPlaceManager_ITF interface {
|
|
core.QObject_ITF
|
|
QPlaceManager_PTR() *QPlaceManager
|
|
}
|
|
|
|
func (ptr *QPlaceManager) QPlaceManager_PTR() *QPlaceManager {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceManager) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceManager) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceManager(ptr QPlaceManager_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceManager_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceManagerFromPointer(ptr unsafe.Pointer) *QPlaceManager {
|
|
var n = new(QPlaceManager)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceManagerEngine struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QPlaceManagerEngine_ITF interface {
|
|
core.QObject_ITF
|
|
QPlaceManagerEngine_PTR() *QPlaceManagerEngine
|
|
}
|
|
|
|
func (ptr *QPlaceManagerEngine) QPlaceManagerEngine_PTR() *QPlaceManagerEngine {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceManagerEngine) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceManagerEngine) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceManagerEngine(ptr QPlaceManagerEngine_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceManagerEngine_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceManagerEngineFromPointer(ptr unsafe.Pointer) *QPlaceManagerEngine {
|
|
var n = new(QPlaceManagerEngine)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceMatchReply struct {
|
|
QPlaceReply
|
|
}
|
|
|
|
type QPlaceMatchReply_ITF interface {
|
|
QPlaceReply_ITF
|
|
QPlaceMatchReply_PTR() *QPlaceMatchReply
|
|
}
|
|
|
|
func (ptr *QPlaceMatchReply) QPlaceMatchReply_PTR() *QPlaceMatchReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceMatchReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceMatchReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceReply_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceMatchReply(ptr QPlaceMatchReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceMatchReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceMatchReplyFromPointer(ptr unsafe.Pointer) *QPlaceMatchReply {
|
|
var n = new(QPlaceMatchReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceMatchRequest struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceMatchRequest_ITF interface {
|
|
QPlaceMatchRequest_PTR() *QPlaceMatchRequest
|
|
}
|
|
|
|
func (ptr *QPlaceMatchRequest) QPlaceMatchRequest_PTR() *QPlaceMatchRequest {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceMatchRequest) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceMatchRequest) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceMatchRequest(ptr QPlaceMatchRequest_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceMatchRequest_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceMatchRequestFromPointer(ptr unsafe.Pointer) *QPlaceMatchRequest {
|
|
var n = new(QPlaceMatchRequest)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceProposedSearchResult struct {
|
|
QPlaceSearchResult
|
|
}
|
|
|
|
type QPlaceProposedSearchResult_ITF interface {
|
|
QPlaceSearchResult_ITF
|
|
QPlaceProposedSearchResult_PTR() *QPlaceProposedSearchResult
|
|
}
|
|
|
|
func (ptr *QPlaceProposedSearchResult) QPlaceProposedSearchResult_PTR() *QPlaceProposedSearchResult {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceProposedSearchResult) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSearchResult_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceProposedSearchResult) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceSearchResult_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceProposedSearchResult(ptr QPlaceProposedSearchResult_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceProposedSearchResult_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceProposedSearchResultFromPointer(ptr unsafe.Pointer) *QPlaceProposedSearchResult {
|
|
var n = new(QPlaceProposedSearchResult)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceRatings struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceRatings_ITF interface {
|
|
QPlaceRatings_PTR() *QPlaceRatings
|
|
}
|
|
|
|
func (ptr *QPlaceRatings) QPlaceRatings_PTR() *QPlaceRatings {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceRatings) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceRatings) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceRatings(ptr QPlaceRatings_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceRatings_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceRatingsFromPointer(ptr unsafe.Pointer) *QPlaceRatings {
|
|
var n = new(QPlaceRatings)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceReply struct {
|
|
core.QObject
|
|
}
|
|
|
|
type QPlaceReply_ITF interface {
|
|
core.QObject_ITF
|
|
QPlaceReply_PTR() *QPlaceReply
|
|
}
|
|
|
|
func (ptr *QPlaceReply) QPlaceReply_PTR() *QPlaceReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QObject_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QObject_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceReply(ptr QPlaceReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceReplyFromPointer(ptr unsafe.Pointer) *QPlaceReply {
|
|
var n = new(QPlaceReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QPlaceReply__Error
|
|
//QPlaceReply::Error
|
|
type QPlaceReply__Error int64
|
|
|
|
const (
|
|
QPlaceReply__NoError QPlaceReply__Error = QPlaceReply__Error(0)
|
|
QPlaceReply__PlaceDoesNotExistError QPlaceReply__Error = QPlaceReply__Error(1)
|
|
QPlaceReply__CategoryDoesNotExistError QPlaceReply__Error = QPlaceReply__Error(2)
|
|
QPlaceReply__CommunicationError QPlaceReply__Error = QPlaceReply__Error(3)
|
|
QPlaceReply__ParseError QPlaceReply__Error = QPlaceReply__Error(4)
|
|
QPlaceReply__PermissionsError QPlaceReply__Error = QPlaceReply__Error(5)
|
|
QPlaceReply__UnsupportedError QPlaceReply__Error = QPlaceReply__Error(6)
|
|
QPlaceReply__BadArgumentError QPlaceReply__Error = QPlaceReply__Error(7)
|
|
QPlaceReply__CancelError QPlaceReply__Error = QPlaceReply__Error(8)
|
|
QPlaceReply__UnknownError QPlaceReply__Error = QPlaceReply__Error(9)
|
|
)
|
|
|
|
//go:generate stringer -type=QPlaceReply__Type
|
|
//QPlaceReply::Type
|
|
type QPlaceReply__Type int64
|
|
|
|
const (
|
|
QPlaceReply__Reply QPlaceReply__Type = QPlaceReply__Type(0)
|
|
QPlaceReply__DetailsReply QPlaceReply__Type = QPlaceReply__Type(1)
|
|
QPlaceReply__SearchReply QPlaceReply__Type = QPlaceReply__Type(2)
|
|
QPlaceReply__SearchSuggestionReply QPlaceReply__Type = QPlaceReply__Type(3)
|
|
QPlaceReply__ContentReply QPlaceReply__Type = QPlaceReply__Type(4)
|
|
QPlaceReply__IdReply QPlaceReply__Type = QPlaceReply__Type(5)
|
|
QPlaceReply__MatchReply QPlaceReply__Type = QPlaceReply__Type(6)
|
|
)
|
|
|
|
type QPlaceResult struct {
|
|
QPlaceSearchResult
|
|
}
|
|
|
|
type QPlaceResult_ITF interface {
|
|
QPlaceSearchResult_ITF
|
|
QPlaceResult_PTR() *QPlaceResult
|
|
}
|
|
|
|
func (ptr *QPlaceResult) QPlaceResult_PTR() *QPlaceResult {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceResult) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSearchResult_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceResult) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceSearchResult_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceResult(ptr QPlaceResult_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceResult_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceResultFromPointer(ptr unsafe.Pointer) *QPlaceResult {
|
|
var n = new(QPlaceResult)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceReview struct {
|
|
QPlaceContent
|
|
}
|
|
|
|
type QPlaceReview_ITF interface {
|
|
QPlaceContent_ITF
|
|
QPlaceReview_PTR() *QPlaceReview
|
|
}
|
|
|
|
func (ptr *QPlaceReview) QPlaceReview_PTR() *QPlaceReview {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceReview) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceContent_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceReview) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceContent_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceReview(ptr QPlaceReview_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReview_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceReviewFromPointer(ptr unsafe.Pointer) *QPlaceReview {
|
|
var n = new(QPlaceReview)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceSearchReply struct {
|
|
QPlaceReply
|
|
}
|
|
|
|
type QPlaceSearchReply_ITF interface {
|
|
QPlaceReply_ITF
|
|
QPlaceSearchReply_PTR() *QPlaceSearchReply
|
|
}
|
|
|
|
func (ptr *QPlaceSearchReply) QPlaceSearchReply_PTR() *QPlaceSearchReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceSearchReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceSearchReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceReply_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceSearchReply(ptr QPlaceSearchReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSearchReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceSearchReplyFromPointer(ptr unsafe.Pointer) *QPlaceSearchReply {
|
|
var n = new(QPlaceSearchReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceSearchRequest struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceSearchRequest_ITF interface {
|
|
QPlaceSearchRequest_PTR() *QPlaceSearchRequest
|
|
}
|
|
|
|
func (ptr *QPlaceSearchRequest) QPlaceSearchRequest_PTR() *QPlaceSearchRequest {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceSearchRequest) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceSearchRequest) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceSearchRequest(ptr QPlaceSearchRequest_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSearchRequest_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceSearchRequestFromPointer(ptr unsafe.Pointer) *QPlaceSearchRequest {
|
|
var n = new(QPlaceSearchRequest)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QPlaceSearchRequest__RelevanceHint
|
|
//QPlaceSearchRequest::RelevanceHint
|
|
type QPlaceSearchRequest__RelevanceHint int64
|
|
|
|
const (
|
|
QPlaceSearchRequest__UnspecifiedHint QPlaceSearchRequest__RelevanceHint = QPlaceSearchRequest__RelevanceHint(0)
|
|
QPlaceSearchRequest__DistanceHint QPlaceSearchRequest__RelevanceHint = QPlaceSearchRequest__RelevanceHint(1)
|
|
QPlaceSearchRequest__LexicalPlaceNameHint QPlaceSearchRequest__RelevanceHint = QPlaceSearchRequest__RelevanceHint(2)
|
|
)
|
|
|
|
type QPlaceSearchResult struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceSearchResult_ITF interface {
|
|
QPlaceSearchResult_PTR() *QPlaceSearchResult
|
|
}
|
|
|
|
func (ptr *QPlaceSearchResult) QPlaceSearchResult_PTR() *QPlaceSearchResult {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceSearchResult) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceSearchResult) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceSearchResult(ptr QPlaceSearchResult_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSearchResult_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceSearchResultFromPointer(ptr unsafe.Pointer) *QPlaceSearchResult {
|
|
var n = new(QPlaceSearchResult)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
//go:generate stringer -type=QPlaceSearchResult__SearchResultType
|
|
//QPlaceSearchResult::SearchResultType
|
|
type QPlaceSearchResult__SearchResultType int64
|
|
|
|
const (
|
|
QPlaceSearchResult__UnknownSearchResult QPlaceSearchResult__SearchResultType = QPlaceSearchResult__SearchResultType(0)
|
|
QPlaceSearchResult__PlaceResult QPlaceSearchResult__SearchResultType = QPlaceSearchResult__SearchResultType(1)
|
|
QPlaceSearchResult__ProposedSearchResult QPlaceSearchResult__SearchResultType = QPlaceSearchResult__SearchResultType(2)
|
|
)
|
|
|
|
type QPlaceSearchSuggestionReply struct {
|
|
QPlaceReply
|
|
}
|
|
|
|
type QPlaceSearchSuggestionReply_ITF interface {
|
|
QPlaceReply_ITF
|
|
QPlaceSearchSuggestionReply_PTR() *QPlaceSearchSuggestionReply
|
|
}
|
|
|
|
func (ptr *QPlaceSearchSuggestionReply) QPlaceSearchSuggestionReply_PTR() *QPlaceSearchSuggestionReply {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceSearchSuggestionReply) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceSearchSuggestionReply) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.QPlaceReply_PTR().SetPointer(p)
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceSearchSuggestionReply(ptr QPlaceSearchSuggestionReply_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSearchSuggestionReply_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceSearchSuggestionReplyFromPointer(ptr unsafe.Pointer) *QPlaceSearchSuggestionReply {
|
|
var n = new(QPlaceSearchSuggestionReply)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceSupplier struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceSupplier_ITF interface {
|
|
QPlaceSupplier_PTR() *QPlaceSupplier
|
|
}
|
|
|
|
func (ptr *QPlaceSupplier) QPlaceSupplier_PTR() *QPlaceSupplier {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceSupplier) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceSupplier) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceSupplier(ptr QPlaceSupplier_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceSupplier_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceSupplierFromPointer(ptr unsafe.Pointer) *QPlaceSupplier {
|
|
var n = new(QPlaceSupplier)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|
|
|
|
type QPlaceUser struct {
|
|
ptr unsafe.Pointer
|
|
}
|
|
|
|
type QPlaceUser_ITF interface {
|
|
QPlaceUser_PTR() *QPlaceUser
|
|
}
|
|
|
|
func (ptr *QPlaceUser) QPlaceUser_PTR() *QPlaceUser {
|
|
return ptr
|
|
}
|
|
|
|
func (ptr *QPlaceUser) Pointer() unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.ptr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (ptr *QPlaceUser) SetPointer(p unsafe.Pointer) {
|
|
if ptr != nil {
|
|
ptr.ptr = p
|
|
}
|
|
}
|
|
|
|
func PointerFromQPlaceUser(ptr QPlaceUser_ITF) unsafe.Pointer {
|
|
if ptr != nil {
|
|
return ptr.QPlaceUser_PTR().Pointer()
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewQPlaceUserFromPointer(ptr unsafe.Pointer) *QPlaceUser {
|
|
var n = new(QPlaceUser)
|
|
n.SetPointer(ptr)
|
|
return n
|
|
}
|