cutego/location/location.go

3292 lines
92 KiB
Go
Raw Normal View History

package location
//#include "location.h"
import "C"
import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/positioning"
"strings"
"unsafe"
)
type QGeoCodeReply struct {
core.QObject
}
type QGeoCodeReply_ITF interface {
core.QObject_ITF
QGeoCodeReply_PTR() *QGeoCodeReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoCodeReplyFromPointer(ptr unsafe.Pointer) *QGeoCodeReply {
var n = NewQGeoCodeReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoCodeReply_") {
n.SetObjectName("QGeoCodeReply_" + qt.Identifier())
}
return n
}
func (ptr *QGeoCodeReply) QGeoCodeReply_PTR() *QGeoCodeReply {
return ptr
}
//QGeoCodeReply::Error
type QGeoCodeReply__Error int64
const (
QGeoCodeReply__NoError = QGeoCodeReply__Error(0)
QGeoCodeReply__EngineNotSetError = QGeoCodeReply__Error(1)
QGeoCodeReply__CommunicationError = QGeoCodeReply__Error(2)
QGeoCodeReply__ParseError = QGeoCodeReply__Error(3)
QGeoCodeReply__UnsupportedOptionError = QGeoCodeReply__Error(4)
QGeoCodeReply__CombinationError = QGeoCodeReply__Error(5)
QGeoCodeReply__UnknownError = QGeoCodeReply__Error(6)
)
type QGeoCodingManager struct {
core.QObject
}
type QGeoCodingManager_ITF interface {
core.QObject_ITF
QGeoCodingManager_PTR() *QGeoCodingManager
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoCodingManagerFromPointer(ptr unsafe.Pointer) *QGeoCodingManager {
var n = NewQGeoCodingManagerFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoCodingManager_") {
n.SetObjectName("QGeoCodingManager_" + qt.Identifier())
}
return n
}
func (ptr *QGeoCodingManager) QGeoCodingManager_PTR() *QGeoCodingManager {
return ptr
}
type QGeoCodingManagerEngine struct {
core.QObject
}
type QGeoCodingManagerEngine_ITF interface {
core.QObject_ITF
QGeoCodingManagerEngine_PTR() *QGeoCodingManagerEngine
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoCodingManagerEngineFromPointer(ptr unsafe.Pointer) *QGeoCodingManagerEngine {
var n = NewQGeoCodingManagerEngineFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoCodingManagerEngine_") {
n.SetObjectName("QGeoCodingManagerEngine_" + qt.Identifier())
}
return n
}
func (ptr *QGeoCodingManagerEngine) QGeoCodingManagerEngine_PTR() *QGeoCodingManagerEngine {
return ptr
}
type QGeoManeuver struct {
ptr unsafe.Pointer
}
type QGeoManeuver_ITF interface {
QGeoManeuver_PTR() *QGeoManeuver
}
func (p *QGeoManeuver) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QGeoManeuver) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQGeoManeuverFromPointer(ptr unsafe.Pointer) *QGeoManeuver {
var n = NewQGeoManeuverFromPointer(ptr)
return n
}
func (ptr *QGeoManeuver) QGeoManeuver_PTR() *QGeoManeuver {
return ptr
}
//QGeoManeuver::InstructionDirection
type QGeoManeuver__InstructionDirection int64
const (
QGeoManeuver__NoDirection = QGeoManeuver__InstructionDirection(0)
QGeoManeuver__DirectionForward = QGeoManeuver__InstructionDirection(1)
QGeoManeuver__DirectionBearRight = QGeoManeuver__InstructionDirection(2)
QGeoManeuver__DirectionLightRight = QGeoManeuver__InstructionDirection(3)
QGeoManeuver__DirectionRight = QGeoManeuver__InstructionDirection(4)
QGeoManeuver__DirectionHardRight = QGeoManeuver__InstructionDirection(5)
QGeoManeuver__DirectionUTurnRight = QGeoManeuver__InstructionDirection(6)
QGeoManeuver__DirectionUTurnLeft = QGeoManeuver__InstructionDirection(7)
QGeoManeuver__DirectionHardLeft = QGeoManeuver__InstructionDirection(8)
QGeoManeuver__DirectionLeft = QGeoManeuver__InstructionDirection(9)
QGeoManeuver__DirectionLightLeft = QGeoManeuver__InstructionDirection(10)
QGeoManeuver__DirectionBearLeft = QGeoManeuver__InstructionDirection(11)
)
func NewQGeoManeuver() *QGeoManeuver {
defer qt.Recovering("QGeoManeuver::QGeoManeuver")
2016-01-26 19:58:25 +03:00
return newQGeoManeuverFromPointer(C.QGeoManeuver_NewQGeoManeuver())
}
func NewQGeoManeuver2(other QGeoManeuver_ITF) *QGeoManeuver {
defer qt.Recovering("QGeoManeuver::QGeoManeuver")
2016-01-26 19:58:25 +03:00
return newQGeoManeuverFromPointer(C.QGeoManeuver_NewQGeoManeuver2(PointerFromQGeoManeuver(other)))
}
func (ptr *QGeoManeuver) Direction() QGeoManeuver__InstructionDirection {
defer qt.Recovering("QGeoManeuver::direction")
if ptr.Pointer() != nil {
return QGeoManeuver__InstructionDirection(C.QGeoManeuver_Direction(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoManeuver) DistanceToNextInstruction() float64 {
defer qt.Recovering("QGeoManeuver::distanceToNextInstruction")
if ptr.Pointer() != nil {
return float64(C.QGeoManeuver_DistanceToNextInstruction(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoManeuver) InstructionText() string {
defer qt.Recovering("QGeoManeuver::instructionText")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoManeuver_InstructionText(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoManeuver) IsValid() bool {
defer qt.Recovering("QGeoManeuver::isValid")
if ptr.Pointer() != nil {
return C.QGeoManeuver_IsValid(ptr.Pointer()) != 0
}
return false
}
func (ptr *QGeoManeuver) SetDirection(direction QGeoManeuver__InstructionDirection) {
defer qt.Recovering("QGeoManeuver::setDirection")
if ptr.Pointer() != nil {
C.QGeoManeuver_SetDirection(ptr.Pointer(), C.int(direction))
}
}
func (ptr *QGeoManeuver) SetDistanceToNextInstruction(distance float64) {
defer qt.Recovering("QGeoManeuver::setDistanceToNextInstruction")
if ptr.Pointer() != nil {
C.QGeoManeuver_SetDistanceToNextInstruction(ptr.Pointer(), C.double(distance))
}
}
func (ptr *QGeoManeuver) SetInstructionText(instructionText string) {
defer qt.Recovering("QGeoManeuver::setInstructionText")
if ptr.Pointer() != nil {
C.QGeoManeuver_SetInstructionText(ptr.Pointer(), C.CString(instructionText))
}
}
func (ptr *QGeoManeuver) SetPosition(position positioning.QGeoCoordinate_ITF) {
defer qt.Recovering("QGeoManeuver::setPosition")
if ptr.Pointer() != nil {
C.QGeoManeuver_SetPosition(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(position))
}
}
func (ptr *QGeoManeuver) SetTimeToNextInstruction(secs int) {
defer qt.Recovering("QGeoManeuver::setTimeToNextInstruction")
if ptr.Pointer() != nil {
C.QGeoManeuver_SetTimeToNextInstruction(ptr.Pointer(), C.int(secs))
}
}
func (ptr *QGeoManeuver) SetWaypoint(coordinate positioning.QGeoCoordinate_ITF) {
defer qt.Recovering("QGeoManeuver::setWaypoint")
if ptr.Pointer() != nil {
C.QGeoManeuver_SetWaypoint(ptr.Pointer(), positioning.PointerFromQGeoCoordinate(coordinate))
}
}
func (ptr *QGeoManeuver) TimeToNextInstruction() int {
defer qt.Recovering("QGeoManeuver::timeToNextInstruction")
if ptr.Pointer() != nil {
return int(C.QGeoManeuver_TimeToNextInstruction(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoManeuver) DestroyQGeoManeuver() {
defer qt.Recovering("QGeoManeuver::~QGeoManeuver")
if ptr.Pointer() != nil {
C.QGeoManeuver_DestroyQGeoManeuver(ptr.Pointer())
}
}
type QGeoRoute struct {
ptr unsafe.Pointer
}
type QGeoRoute_ITF interface {
QGeoRoute_PTR() *QGeoRoute
}
func (p *QGeoRoute) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QGeoRoute) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQGeoRouteFromPointer(ptr unsafe.Pointer) *QGeoRoute {
var n = NewQGeoRouteFromPointer(ptr)
return n
}
func (ptr *QGeoRoute) QGeoRoute_PTR() *QGeoRoute {
return ptr
}
func NewQGeoRoute() *QGeoRoute {
defer qt.Recovering("QGeoRoute::QGeoRoute")
2016-01-26 19:58:25 +03:00
return newQGeoRouteFromPointer(C.QGeoRoute_NewQGeoRoute())
}
func NewQGeoRoute2(other QGeoRoute_ITF) *QGeoRoute {
defer qt.Recovering("QGeoRoute::QGeoRoute")
2016-01-26 19:58:25 +03:00
return newQGeoRouteFromPointer(C.QGeoRoute_NewQGeoRoute2(PointerFromQGeoRoute(other)))
}
func (ptr *QGeoRoute) Distance() float64 {
defer qt.Recovering("QGeoRoute::distance")
if ptr.Pointer() != nil {
return float64(C.QGeoRoute_Distance(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoute) RouteId() string {
defer qt.Recovering("QGeoRoute::routeId")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoRoute_RouteId(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoRoute) SetBounds(bounds positioning.QGeoRectangle_ITF) {
defer qt.Recovering("QGeoRoute::setBounds")
if ptr.Pointer() != nil {
C.QGeoRoute_SetBounds(ptr.Pointer(), positioning.PointerFromQGeoRectangle(bounds))
}
}
func (ptr *QGeoRoute) SetDistance(distance float64) {
defer qt.Recovering("QGeoRoute::setDistance")
if ptr.Pointer() != nil {
C.QGeoRoute_SetDistance(ptr.Pointer(), C.double(distance))
}
}
func (ptr *QGeoRoute) SetFirstRouteSegment(routeSegment QGeoRouteSegment_ITF) {
defer qt.Recovering("QGeoRoute::setFirstRouteSegment")
if ptr.Pointer() != nil {
C.QGeoRoute_SetFirstRouteSegment(ptr.Pointer(), PointerFromQGeoRouteSegment(routeSegment))
}
}
func (ptr *QGeoRoute) SetRequest(request QGeoRouteRequest_ITF) {
defer qt.Recovering("QGeoRoute::setRequest")
if ptr.Pointer() != nil {
C.QGeoRoute_SetRequest(ptr.Pointer(), PointerFromQGeoRouteRequest(request))
}
}
func (ptr *QGeoRoute) SetRouteId(id string) {
defer qt.Recovering("QGeoRoute::setRouteId")
if ptr.Pointer() != nil {
C.QGeoRoute_SetRouteId(ptr.Pointer(), C.CString(id))
}
}
func (ptr *QGeoRoute) SetTravelMode(mode QGeoRouteRequest__TravelMode) {
defer qt.Recovering("QGeoRoute::setTravelMode")
if ptr.Pointer() != nil {
C.QGeoRoute_SetTravelMode(ptr.Pointer(), C.int(mode))
}
}
func (ptr *QGeoRoute) SetTravelTime(secs int) {
defer qt.Recovering("QGeoRoute::setTravelTime")
if ptr.Pointer() != nil {
C.QGeoRoute_SetTravelTime(ptr.Pointer(), C.int(secs))
}
}
func (ptr *QGeoRoute) TravelMode() QGeoRouteRequest__TravelMode {
defer qt.Recovering("QGeoRoute::travelMode")
if ptr.Pointer() != nil {
return QGeoRouteRequest__TravelMode(C.QGeoRoute_TravelMode(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoute) TravelTime() int {
defer qt.Recovering("QGeoRoute::travelTime")
if ptr.Pointer() != nil {
return int(C.QGeoRoute_TravelTime(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoute) DestroyQGeoRoute() {
defer qt.Recovering("QGeoRoute::~QGeoRoute")
if ptr.Pointer() != nil {
C.QGeoRoute_DestroyQGeoRoute(ptr.Pointer())
}
}
type QGeoRouteReply struct {
core.QObject
}
type QGeoRouteReply_ITF interface {
core.QObject_ITF
QGeoRouteReply_PTR() *QGeoRouteReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoRouteReplyFromPointer(ptr unsafe.Pointer) *QGeoRouteReply {
var n = NewQGeoRouteReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoRouteReply_") {
n.SetObjectName("QGeoRouteReply_" + qt.Identifier())
}
return n
}
func (ptr *QGeoRouteReply) QGeoRouteReply_PTR() *QGeoRouteReply {
return ptr
}
//QGeoRouteReply::Error
type QGeoRouteReply__Error int64
const (
QGeoRouteReply__NoError = QGeoRouteReply__Error(0)
QGeoRouteReply__EngineNotSetError = QGeoRouteReply__Error(1)
QGeoRouteReply__CommunicationError = QGeoRouteReply__Error(2)
QGeoRouteReply__ParseError = QGeoRouteReply__Error(3)
QGeoRouteReply__UnsupportedOptionError = QGeoRouteReply__Error(4)
QGeoRouteReply__UnknownError = QGeoRouteReply__Error(5)
)
func NewQGeoRouteReply(error QGeoRouteReply__Error, errorString string, parent core.QObject_ITF) *QGeoRouteReply {
defer qt.Recovering("QGeoRouteReply::QGeoRouteReply")
2016-01-26 19:58:25 +03:00
return newQGeoRouteReplyFromPointer(C.QGeoRouteReply_NewQGeoRouteReply(C.int(error), C.CString(errorString), core.PointerFromQObject(parent)))
}
func (ptr *QGeoRouteReply) ConnectAbort(f func()) {
defer qt.Recovering("connect QGeoRouteReply::abort")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "abort", f)
}
}
func (ptr *QGeoRouteReply) DisconnectAbort() {
defer qt.Recovering("disconnect QGeoRouteReply::abort")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "abort")
}
}
//export callbackQGeoRouteReplyAbort
func callbackQGeoRouteReplyAbort(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QGeoRouteReply::abort")
if signal := qt.GetSignal(C.GoString(ptrName), "abort"); signal != nil {
signal.(func())()
} else {
NewQGeoRouteReplyFromPointer(ptr).AbortDefault()
}
}
func (ptr *QGeoRouteReply) Abort() {
defer qt.Recovering("QGeoRouteReply::abort")
if ptr.Pointer() != nil {
C.QGeoRouteReply_Abort(ptr.Pointer())
}
}
func (ptr *QGeoRouteReply) AbortDefault() {
defer qt.Recovering("QGeoRouteReply::abort")
if ptr.Pointer() != nil {
C.QGeoRouteReply_AbortDefault(ptr.Pointer())
}
}
func (ptr *QGeoRouteReply) ConnectError2(f func(error QGeoRouteReply__Error, errorString string)) {
defer qt.Recovering("connect QGeoRouteReply::error")
if ptr.Pointer() != nil {
C.QGeoRouteReply_ConnectError2(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "error2", f)
}
}
func (ptr *QGeoRouteReply) DisconnectError2() {
defer qt.Recovering("disconnect QGeoRouteReply::error")
if ptr.Pointer() != nil {
C.QGeoRouteReply_DisconnectError2(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "error2")
}
}
//export callbackQGeoRouteReplyError2
func callbackQGeoRouteReplyError2(ptr unsafe.Pointer, ptrName *C.char, error C.int, errorString *C.char) {
defer qt.Recovering("callback QGeoRouteReply::error")
if signal := qt.GetSignal(C.GoString(ptrName), "error2"); signal != nil {
signal.(func(QGeoRouteReply__Error, string))(QGeoRouteReply__Error(error), C.GoString(errorString))
}
}
func (ptr *QGeoRouteReply) Error2(error QGeoRouteReply__Error, errorString string) {
defer qt.Recovering("QGeoRouteReply::error")
if ptr.Pointer() != nil {
C.QGeoRouteReply_Error2(ptr.Pointer(), C.int(error), C.CString(errorString))
}
}
func (ptr *QGeoRouteReply) Error() QGeoRouteReply__Error {
defer qt.Recovering("QGeoRouteReply::error")
if ptr.Pointer() != nil {
return QGeoRouteReply__Error(C.QGeoRouteReply_Error(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteReply) ErrorString() string {
defer qt.Recovering("QGeoRouteReply::errorString")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoRouteReply_ErrorString(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoRouteReply) ConnectFinished(f func()) {
defer qt.Recovering("connect QGeoRouteReply::finished")
if ptr.Pointer() != nil {
C.QGeoRouteReply_ConnectFinished(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "finished", f)
}
}
func (ptr *QGeoRouteReply) DisconnectFinished() {
defer qt.Recovering("disconnect QGeoRouteReply::finished")
if ptr.Pointer() != nil {
C.QGeoRouteReply_DisconnectFinished(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "finished")
}
}
//export callbackQGeoRouteReplyFinished
func callbackQGeoRouteReplyFinished(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QGeoRouteReply::finished")
if signal := qt.GetSignal(C.GoString(ptrName), "finished"); signal != nil {
signal.(func())()
}
}
func (ptr *QGeoRouteReply) Finished() {
defer qt.Recovering("QGeoRouteReply::finished")
if ptr.Pointer() != nil {
C.QGeoRouteReply_Finished(ptr.Pointer())
}
}
func (ptr *QGeoRouteReply) IsFinished() bool {
defer qt.Recovering("QGeoRouteReply::isFinished")
if ptr.Pointer() != nil {
return C.QGeoRouteReply_IsFinished(ptr.Pointer()) != 0
}
return false
}
func (ptr *QGeoRouteReply) DestroyQGeoRouteReply() {
defer qt.Recovering("QGeoRouteReply::~QGeoRouteReply")
if ptr.Pointer() != nil {
C.QGeoRouteReply_DestroyQGeoRouteReply(ptr.Pointer())
ptr.SetPointer(nil)
}
}
func (ptr *QGeoRouteReply) ConnectTimerEvent(f func(event *core.QTimerEvent)) {
defer qt.Recovering("connect QGeoRouteReply::timerEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "timerEvent", f)
}
}
func (ptr *QGeoRouteReply) DisconnectTimerEvent() {
defer qt.Recovering("disconnect QGeoRouteReply::timerEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "timerEvent")
}
}
//export callbackQGeoRouteReplyTimerEvent
func callbackQGeoRouteReplyTimerEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRouteReply::timerEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "timerEvent"); signal != nil {
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
} else {
NewQGeoRouteReplyFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
}
}
func (ptr *QGeoRouteReply) TimerEvent(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoRouteReply::timerEvent")
if ptr.Pointer() != nil {
C.QGeoRouteReply_TimerEvent(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoRouteReply) TimerEventDefault(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoRouteReply::timerEvent")
if ptr.Pointer() != nil {
C.QGeoRouteReply_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoRouteReply) ConnectChildEvent(f func(event *core.QChildEvent)) {
defer qt.Recovering("connect QGeoRouteReply::childEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "childEvent", f)
}
}
func (ptr *QGeoRouteReply) DisconnectChildEvent() {
defer qt.Recovering("disconnect QGeoRouteReply::childEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "childEvent")
}
}
//export callbackQGeoRouteReplyChildEvent
func callbackQGeoRouteReplyChildEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRouteReply::childEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "childEvent"); signal != nil {
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
} else {
NewQGeoRouteReplyFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
}
}
func (ptr *QGeoRouteReply) ChildEvent(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoRouteReply::childEvent")
if ptr.Pointer() != nil {
C.QGeoRouteReply_ChildEvent(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoRouteReply) ChildEventDefault(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoRouteReply::childEvent")
if ptr.Pointer() != nil {
C.QGeoRouteReply_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoRouteReply) ConnectCustomEvent(f func(event *core.QEvent)) {
defer qt.Recovering("connect QGeoRouteReply::customEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "customEvent", f)
}
}
func (ptr *QGeoRouteReply) DisconnectCustomEvent() {
defer qt.Recovering("disconnect QGeoRouteReply::customEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "customEvent")
}
}
//export callbackQGeoRouteReplyCustomEvent
func callbackQGeoRouteReplyCustomEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRouteReply::customEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "customEvent"); signal != nil {
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
} else {
NewQGeoRouteReplyFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
}
}
func (ptr *QGeoRouteReply) CustomEvent(event core.QEvent_ITF) {
defer qt.Recovering("QGeoRouteReply::customEvent")
if ptr.Pointer() != nil {
C.QGeoRouteReply_CustomEvent(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
func (ptr *QGeoRouteReply) CustomEventDefault(event core.QEvent_ITF) {
defer qt.Recovering("QGeoRouteReply::customEvent")
if ptr.Pointer() != nil {
C.QGeoRouteReply_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
type QGeoRouteRequest struct {
ptr unsafe.Pointer
}
type QGeoRouteRequest_ITF interface {
QGeoRouteRequest_PTR() *QGeoRouteRequest
}
func (p *QGeoRouteRequest) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QGeoRouteRequest) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQGeoRouteRequestFromPointer(ptr unsafe.Pointer) *QGeoRouteRequest {
var n = NewQGeoRouteRequestFromPointer(ptr)
return n
}
func (ptr *QGeoRouteRequest) QGeoRouteRequest_PTR() *QGeoRouteRequest {
return ptr
}
//QGeoRouteRequest::FeatureType
type QGeoRouteRequest__FeatureType int64
const (
QGeoRouteRequest__NoFeature = QGeoRouteRequest__FeatureType(0x00000000)
QGeoRouteRequest__TollFeature = QGeoRouteRequest__FeatureType(0x00000001)
QGeoRouteRequest__HighwayFeature = QGeoRouteRequest__FeatureType(0x00000002)
QGeoRouteRequest__PublicTransitFeature = QGeoRouteRequest__FeatureType(0x00000004)
QGeoRouteRequest__FerryFeature = QGeoRouteRequest__FeatureType(0x00000008)
QGeoRouteRequest__TunnelFeature = QGeoRouteRequest__FeatureType(0x00000010)
QGeoRouteRequest__DirtRoadFeature = QGeoRouteRequest__FeatureType(0x00000020)
QGeoRouteRequest__ParksFeature = QGeoRouteRequest__FeatureType(0x00000040)
QGeoRouteRequest__MotorPoolLaneFeature = QGeoRouteRequest__FeatureType(0x00000080)
)
//QGeoRouteRequest::FeatureWeight
type QGeoRouteRequest__FeatureWeight int64
const (
QGeoRouteRequest__NeutralFeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000000)
QGeoRouteRequest__PreferFeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000001)
QGeoRouteRequest__RequireFeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000002)
QGeoRouteRequest__AvoidFeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000004)
QGeoRouteRequest__DisallowFeatureWeight = QGeoRouteRequest__FeatureWeight(0x00000008)
)
//QGeoRouteRequest::ManeuverDetail
type QGeoRouteRequest__ManeuverDetail int64
const (
QGeoRouteRequest__NoManeuvers = QGeoRouteRequest__ManeuverDetail(0x0000)
QGeoRouteRequest__BasicManeuvers = QGeoRouteRequest__ManeuverDetail(0x0001)
)
//QGeoRouteRequest::RouteOptimization
type QGeoRouteRequest__RouteOptimization int64
const (
QGeoRouteRequest__ShortestRoute = QGeoRouteRequest__RouteOptimization(0x0001)
QGeoRouteRequest__FastestRoute = QGeoRouteRequest__RouteOptimization(0x0002)
QGeoRouteRequest__MostEconomicRoute = QGeoRouteRequest__RouteOptimization(0x0004)
QGeoRouteRequest__MostScenicRoute = QGeoRouteRequest__RouteOptimization(0x0008)
)
//QGeoRouteRequest::SegmentDetail
type QGeoRouteRequest__SegmentDetail int64
const (
QGeoRouteRequest__NoSegmentData = QGeoRouteRequest__SegmentDetail(0x0000)
QGeoRouteRequest__BasicSegmentData = QGeoRouteRequest__SegmentDetail(0x0001)
)
//QGeoRouteRequest::TravelMode
type QGeoRouteRequest__TravelMode int64
const (
QGeoRouteRequest__CarTravel = QGeoRouteRequest__TravelMode(0x0001)
QGeoRouteRequest__PedestrianTravel = QGeoRouteRequest__TravelMode(0x0002)
QGeoRouteRequest__BicycleTravel = QGeoRouteRequest__TravelMode(0x0004)
QGeoRouteRequest__PublicTransitTravel = QGeoRouteRequest__TravelMode(0x0008)
QGeoRouteRequest__TruckTravel = QGeoRouteRequest__TravelMode(0x0010)
)
func NewQGeoRouteRequest2(origin positioning.QGeoCoordinate_ITF, destination positioning.QGeoCoordinate_ITF) *QGeoRouteRequest {
defer qt.Recovering("QGeoRouteRequest::QGeoRouteRequest")
2016-01-26 19:58:25 +03:00
return newQGeoRouteRequestFromPointer(C.QGeoRouteRequest_NewQGeoRouteRequest2(positioning.PointerFromQGeoCoordinate(origin), positioning.PointerFromQGeoCoordinate(destination)))
}
func NewQGeoRouteRequest3(other QGeoRouteRequest_ITF) *QGeoRouteRequest {
defer qt.Recovering("QGeoRouteRequest::QGeoRouteRequest")
2016-01-26 19:58:25 +03:00
return newQGeoRouteRequestFromPointer(C.QGeoRouteRequest_NewQGeoRouteRequest3(PointerFromQGeoRouteRequest(other)))
}
func (ptr *QGeoRouteRequest) FeatureWeight(featureType QGeoRouteRequest__FeatureType) QGeoRouteRequest__FeatureWeight {
defer qt.Recovering("QGeoRouteRequest::featureWeight")
if ptr.Pointer() != nil {
return QGeoRouteRequest__FeatureWeight(C.QGeoRouteRequest_FeatureWeight(ptr.Pointer(), C.int(featureType)))
}
return 0
}
func (ptr *QGeoRouteRequest) ManeuverDetail() QGeoRouteRequest__ManeuverDetail {
defer qt.Recovering("QGeoRouteRequest::maneuverDetail")
if ptr.Pointer() != nil {
return QGeoRouteRequest__ManeuverDetail(C.QGeoRouteRequest_ManeuverDetail(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteRequest) NumberAlternativeRoutes() int {
defer qt.Recovering("QGeoRouteRequest::numberAlternativeRoutes")
if ptr.Pointer() != nil {
return int(C.QGeoRouteRequest_NumberAlternativeRoutes(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteRequest) RouteOptimization() QGeoRouteRequest__RouteOptimization {
defer qt.Recovering("QGeoRouteRequest::routeOptimization")
if ptr.Pointer() != nil {
return QGeoRouteRequest__RouteOptimization(C.QGeoRouteRequest_RouteOptimization(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteRequest) SegmentDetail() QGeoRouteRequest__SegmentDetail {
defer qt.Recovering("QGeoRouteRequest::segmentDetail")
if ptr.Pointer() != nil {
return QGeoRouteRequest__SegmentDetail(C.QGeoRouteRequest_SegmentDetail(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteRequest) SetFeatureWeight(featureType QGeoRouteRequest__FeatureType, featureWeight QGeoRouteRequest__FeatureWeight) {
defer qt.Recovering("QGeoRouteRequest::setFeatureWeight")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_SetFeatureWeight(ptr.Pointer(), C.int(featureType), C.int(featureWeight))
}
}
func (ptr *QGeoRouteRequest) SetManeuverDetail(maneuverDetail QGeoRouteRequest__ManeuverDetail) {
defer qt.Recovering("QGeoRouteRequest::setManeuverDetail")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_SetManeuverDetail(ptr.Pointer(), C.int(maneuverDetail))
}
}
func (ptr *QGeoRouteRequest) SetNumberAlternativeRoutes(alternatives int) {
defer qt.Recovering("QGeoRouteRequest::setNumberAlternativeRoutes")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_SetNumberAlternativeRoutes(ptr.Pointer(), C.int(alternatives))
}
}
func (ptr *QGeoRouteRequest) SetRouteOptimization(optimization QGeoRouteRequest__RouteOptimization) {
defer qt.Recovering("QGeoRouteRequest::setRouteOptimization")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_SetRouteOptimization(ptr.Pointer(), C.int(optimization))
}
}
func (ptr *QGeoRouteRequest) SetSegmentDetail(segmentDetail QGeoRouteRequest__SegmentDetail) {
defer qt.Recovering("QGeoRouteRequest::setSegmentDetail")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_SetSegmentDetail(ptr.Pointer(), C.int(segmentDetail))
}
}
func (ptr *QGeoRouteRequest) SetTravelModes(travelModes QGeoRouteRequest__TravelMode) {
defer qt.Recovering("QGeoRouteRequest::setTravelModes")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_SetTravelModes(ptr.Pointer(), C.int(travelModes))
}
}
func (ptr *QGeoRouteRequest) TravelModes() QGeoRouteRequest__TravelMode {
defer qt.Recovering("QGeoRouteRequest::travelModes")
if ptr.Pointer() != nil {
return QGeoRouteRequest__TravelMode(C.QGeoRouteRequest_TravelModes(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteRequest) DestroyQGeoRouteRequest() {
defer qt.Recovering("QGeoRouteRequest::~QGeoRouteRequest")
if ptr.Pointer() != nil {
C.QGeoRouteRequest_DestroyQGeoRouteRequest(ptr.Pointer())
}
}
type QGeoRouteSegment struct {
ptr unsafe.Pointer
}
type QGeoRouteSegment_ITF interface {
QGeoRouteSegment_PTR() *QGeoRouteSegment
}
func (p *QGeoRouteSegment) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QGeoRouteSegment) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQGeoRouteSegmentFromPointer(ptr unsafe.Pointer) *QGeoRouteSegment {
var n = NewQGeoRouteSegmentFromPointer(ptr)
return n
}
func (ptr *QGeoRouteSegment) QGeoRouteSegment_PTR() *QGeoRouteSegment {
return ptr
}
func NewQGeoRouteSegment() *QGeoRouteSegment {
defer qt.Recovering("QGeoRouteSegment::QGeoRouteSegment")
2016-01-26 19:58:25 +03:00
return newQGeoRouteSegmentFromPointer(C.QGeoRouteSegment_NewQGeoRouteSegment())
}
func NewQGeoRouteSegment2(other QGeoRouteSegment_ITF) *QGeoRouteSegment {
defer qt.Recovering("QGeoRouteSegment::QGeoRouteSegment")
2016-01-26 19:58:25 +03:00
return newQGeoRouteSegmentFromPointer(C.QGeoRouteSegment_NewQGeoRouteSegment2(PointerFromQGeoRouteSegment(other)))
}
func (ptr *QGeoRouteSegment) Distance() float64 {
defer qt.Recovering("QGeoRouteSegment::distance")
if ptr.Pointer() != nil {
return float64(C.QGeoRouteSegment_Distance(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteSegment) IsValid() bool {
defer qt.Recovering("QGeoRouteSegment::isValid")
if ptr.Pointer() != nil {
return C.QGeoRouteSegment_IsValid(ptr.Pointer()) != 0
}
return false
}
func (ptr *QGeoRouteSegment) SetDistance(distance float64) {
defer qt.Recovering("QGeoRouteSegment::setDistance")
if ptr.Pointer() != nil {
C.QGeoRouteSegment_SetDistance(ptr.Pointer(), C.double(distance))
}
}
func (ptr *QGeoRouteSegment) SetManeuver(maneuver QGeoManeuver_ITF) {
defer qt.Recovering("QGeoRouteSegment::setManeuver")
if ptr.Pointer() != nil {
C.QGeoRouteSegment_SetManeuver(ptr.Pointer(), PointerFromQGeoManeuver(maneuver))
}
}
func (ptr *QGeoRouteSegment) SetNextRouteSegment(routeSegment QGeoRouteSegment_ITF) {
defer qt.Recovering("QGeoRouteSegment::setNextRouteSegment")
if ptr.Pointer() != nil {
C.QGeoRouteSegment_SetNextRouteSegment(ptr.Pointer(), PointerFromQGeoRouteSegment(routeSegment))
}
}
func (ptr *QGeoRouteSegment) SetTravelTime(secs int) {
defer qt.Recovering("QGeoRouteSegment::setTravelTime")
if ptr.Pointer() != nil {
C.QGeoRouteSegment_SetTravelTime(ptr.Pointer(), C.int(secs))
}
}
func (ptr *QGeoRouteSegment) TravelTime() int {
defer qt.Recovering("QGeoRouteSegment::travelTime")
if ptr.Pointer() != nil {
return int(C.QGeoRouteSegment_TravelTime(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRouteSegment) DestroyQGeoRouteSegment() {
defer qt.Recovering("QGeoRouteSegment::~QGeoRouteSegment")
if ptr.Pointer() != nil {
C.QGeoRouteSegment_DestroyQGeoRouteSegment(ptr.Pointer())
}
}
type QGeoRoutingManager struct {
core.QObject
}
type QGeoRoutingManager_ITF interface {
core.QObject_ITF
QGeoRoutingManager_PTR() *QGeoRoutingManager
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoRoutingManagerFromPointer(ptr unsafe.Pointer) *QGeoRoutingManager {
var n = NewQGeoRoutingManagerFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoRoutingManager_") {
n.SetObjectName("QGeoRoutingManager_" + qt.Identifier())
}
return n
}
func (ptr *QGeoRoutingManager) QGeoRoutingManager_PTR() *QGeoRoutingManager {
return ptr
}
func (ptr *QGeoRoutingManager) CalculateRoute(request QGeoRouteRequest_ITF) *QGeoRouteReply {
defer qt.Recovering("QGeoRoutingManager::calculateRoute")
if ptr.Pointer() != nil {
return NewQGeoRouteReplyFromPointer(C.QGeoRoutingManager_CalculateRoute(ptr.Pointer(), PointerFromQGeoRouteRequest(request)))
}
return nil
}
func (ptr *QGeoRoutingManager) ConnectError(f func(reply *QGeoRouteReply, error QGeoRouteReply__Error, errorString string)) {
defer qt.Recovering("connect QGeoRoutingManager::error")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_ConnectError(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "error", f)
}
}
func (ptr *QGeoRoutingManager) DisconnectError() {
defer qt.Recovering("disconnect QGeoRoutingManager::error")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_DisconnectError(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "error")
}
}
//export callbackQGeoRoutingManagerError
func callbackQGeoRoutingManagerError(ptr unsafe.Pointer, ptrName *C.char, reply unsafe.Pointer, error C.int, errorString *C.char) {
defer qt.Recovering("callback QGeoRoutingManager::error")
if signal := qt.GetSignal(C.GoString(ptrName), "error"); signal != nil {
signal.(func(*QGeoRouteReply, QGeoRouteReply__Error, string))(NewQGeoRouteReplyFromPointer(reply), QGeoRouteReply__Error(error), C.GoString(errorString))
}
}
func (ptr *QGeoRoutingManager) Error(reply QGeoRouteReply_ITF, error QGeoRouteReply__Error, errorString string) {
defer qt.Recovering("QGeoRoutingManager::error")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_Error(ptr.Pointer(), PointerFromQGeoRouteReply(reply), C.int(error), C.CString(errorString))
}
}
func (ptr *QGeoRoutingManager) ConnectFinished(f func(reply *QGeoRouteReply)) {
defer qt.Recovering("connect QGeoRoutingManager::finished")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_ConnectFinished(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "finished", f)
}
}
func (ptr *QGeoRoutingManager) DisconnectFinished() {
defer qt.Recovering("disconnect QGeoRoutingManager::finished")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_DisconnectFinished(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "finished")
}
}
//export callbackQGeoRoutingManagerFinished
func callbackQGeoRoutingManagerFinished(ptr unsafe.Pointer, ptrName *C.char, reply unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManager::finished")
if signal := qt.GetSignal(C.GoString(ptrName), "finished"); signal != nil {
signal.(func(*QGeoRouteReply))(NewQGeoRouteReplyFromPointer(reply))
}
}
func (ptr *QGeoRoutingManager) Finished(reply QGeoRouteReply_ITF) {
defer qt.Recovering("QGeoRoutingManager::finished")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_Finished(ptr.Pointer(), PointerFromQGeoRouteReply(reply))
}
}
func (ptr *QGeoRoutingManager) ManagerName() string {
defer qt.Recovering("QGeoRoutingManager::managerName")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoRoutingManager_ManagerName(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoRoutingManager) ManagerVersion() int {
defer qt.Recovering("QGeoRoutingManager::managerVersion")
if ptr.Pointer() != nil {
return int(C.QGeoRoutingManager_ManagerVersion(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) MeasurementSystem() core.QLocale__MeasurementSystem {
defer qt.Recovering("QGeoRoutingManager::measurementSystem")
if ptr.Pointer() != nil {
return core.QLocale__MeasurementSystem(C.QGeoRoutingManager_MeasurementSystem(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) SetLocale(locale core.QLocale_ITF) {
defer qt.Recovering("QGeoRoutingManager::setLocale")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_SetLocale(ptr.Pointer(), core.PointerFromQLocale(locale))
}
}
func (ptr *QGeoRoutingManager) SetMeasurementSystem(system core.QLocale__MeasurementSystem) {
defer qt.Recovering("QGeoRoutingManager::setMeasurementSystem")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_SetMeasurementSystem(ptr.Pointer(), C.int(system))
}
}
func (ptr *QGeoRoutingManager) SupportedFeatureTypes() QGeoRouteRequest__FeatureType {
defer qt.Recovering("QGeoRoutingManager::supportedFeatureTypes")
if ptr.Pointer() != nil {
return QGeoRouteRequest__FeatureType(C.QGeoRoutingManager_SupportedFeatureTypes(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) SupportedFeatureWeights() QGeoRouteRequest__FeatureWeight {
defer qt.Recovering("QGeoRoutingManager::supportedFeatureWeights")
if ptr.Pointer() != nil {
return QGeoRouteRequest__FeatureWeight(C.QGeoRoutingManager_SupportedFeatureWeights(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) SupportedManeuverDetails() QGeoRouteRequest__ManeuverDetail {
defer qt.Recovering("QGeoRoutingManager::supportedManeuverDetails")
if ptr.Pointer() != nil {
return QGeoRouteRequest__ManeuverDetail(C.QGeoRoutingManager_SupportedManeuverDetails(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) SupportedRouteOptimizations() QGeoRouteRequest__RouteOptimization {
defer qt.Recovering("QGeoRoutingManager::supportedRouteOptimizations")
if ptr.Pointer() != nil {
return QGeoRouteRequest__RouteOptimization(C.QGeoRoutingManager_SupportedRouteOptimizations(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) SupportedSegmentDetails() QGeoRouteRequest__SegmentDetail {
defer qt.Recovering("QGeoRoutingManager::supportedSegmentDetails")
if ptr.Pointer() != nil {
return QGeoRouteRequest__SegmentDetail(C.QGeoRoutingManager_SupportedSegmentDetails(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) SupportedTravelModes() QGeoRouteRequest__TravelMode {
defer qt.Recovering("QGeoRoutingManager::supportedTravelModes")
if ptr.Pointer() != nil {
return QGeoRouteRequest__TravelMode(C.QGeoRoutingManager_SupportedTravelModes(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManager) UpdateRoute(route QGeoRoute_ITF, position positioning.QGeoCoordinate_ITF) *QGeoRouteReply {
defer qt.Recovering("QGeoRoutingManager::updateRoute")
if ptr.Pointer() != nil {
return NewQGeoRouteReplyFromPointer(C.QGeoRoutingManager_UpdateRoute(ptr.Pointer(), PointerFromQGeoRoute(route), positioning.PointerFromQGeoCoordinate(position)))
}
return nil
}
func (ptr *QGeoRoutingManager) DestroyQGeoRoutingManager() {
defer qt.Recovering("QGeoRoutingManager::~QGeoRoutingManager")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_DestroyQGeoRoutingManager(ptr.Pointer())
ptr.SetPointer(nil)
}
}
func (ptr *QGeoRoutingManager) ConnectTimerEvent(f func(event *core.QTimerEvent)) {
defer qt.Recovering("connect QGeoRoutingManager::timerEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "timerEvent", f)
}
}
func (ptr *QGeoRoutingManager) DisconnectTimerEvent() {
defer qt.Recovering("disconnect QGeoRoutingManager::timerEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "timerEvent")
}
}
//export callbackQGeoRoutingManagerTimerEvent
func callbackQGeoRoutingManagerTimerEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManager::timerEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "timerEvent"); signal != nil {
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
} else {
NewQGeoRoutingManagerFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
}
}
func (ptr *QGeoRoutingManager) TimerEvent(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoRoutingManager::timerEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_TimerEvent(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoRoutingManager) TimerEventDefault(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoRoutingManager::timerEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoRoutingManager) ConnectChildEvent(f func(event *core.QChildEvent)) {
defer qt.Recovering("connect QGeoRoutingManager::childEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "childEvent", f)
}
}
func (ptr *QGeoRoutingManager) DisconnectChildEvent() {
defer qt.Recovering("disconnect QGeoRoutingManager::childEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "childEvent")
}
}
//export callbackQGeoRoutingManagerChildEvent
func callbackQGeoRoutingManagerChildEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManager::childEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "childEvent"); signal != nil {
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
} else {
NewQGeoRoutingManagerFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
}
}
func (ptr *QGeoRoutingManager) ChildEvent(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoRoutingManager::childEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_ChildEvent(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoRoutingManager) ChildEventDefault(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoRoutingManager::childEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoRoutingManager) ConnectCustomEvent(f func(event *core.QEvent)) {
defer qt.Recovering("connect QGeoRoutingManager::customEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "customEvent", f)
}
}
func (ptr *QGeoRoutingManager) DisconnectCustomEvent() {
defer qt.Recovering("disconnect QGeoRoutingManager::customEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "customEvent")
}
}
//export callbackQGeoRoutingManagerCustomEvent
func callbackQGeoRoutingManagerCustomEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManager::customEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "customEvent"); signal != nil {
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
} else {
NewQGeoRoutingManagerFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
}
}
func (ptr *QGeoRoutingManager) CustomEvent(event core.QEvent_ITF) {
defer qt.Recovering("QGeoRoutingManager::customEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_CustomEvent(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
func (ptr *QGeoRoutingManager) CustomEventDefault(event core.QEvent_ITF) {
defer qt.Recovering("QGeoRoutingManager::customEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManager_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
type QGeoRoutingManagerEngine struct {
core.QObject
}
type QGeoRoutingManagerEngine_ITF interface {
core.QObject_ITF
QGeoRoutingManagerEngine_PTR() *QGeoRoutingManagerEngine
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoRoutingManagerEngineFromPointer(ptr unsafe.Pointer) *QGeoRoutingManagerEngine {
var n = NewQGeoRoutingManagerEngineFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoRoutingManagerEngine_") {
n.SetObjectName("QGeoRoutingManagerEngine_" + qt.Identifier())
}
return n
}
func (ptr *QGeoRoutingManagerEngine) QGeoRoutingManagerEngine_PTR() *QGeoRoutingManagerEngine {
return ptr
}
func (ptr *QGeoRoutingManagerEngine) CalculateRoute(request QGeoRouteRequest_ITF) *QGeoRouteReply {
defer qt.Recovering("QGeoRoutingManagerEngine::calculateRoute")
if ptr.Pointer() != nil {
return NewQGeoRouteReplyFromPointer(C.QGeoRoutingManagerEngine_CalculateRoute(ptr.Pointer(), PointerFromQGeoRouteRequest(request)))
}
return nil
}
func (ptr *QGeoRoutingManagerEngine) ConnectError(f func(reply *QGeoRouteReply, error QGeoRouteReply__Error, errorString string)) {
defer qt.Recovering("connect QGeoRoutingManagerEngine::error")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_ConnectError(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "error", f)
}
}
func (ptr *QGeoRoutingManagerEngine) DisconnectError() {
defer qt.Recovering("disconnect QGeoRoutingManagerEngine::error")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_DisconnectError(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "error")
}
}
//export callbackQGeoRoutingManagerEngineError
func callbackQGeoRoutingManagerEngineError(ptr unsafe.Pointer, ptrName *C.char, reply unsafe.Pointer, error C.int, errorString *C.char) {
defer qt.Recovering("callback QGeoRoutingManagerEngine::error")
if signal := qt.GetSignal(C.GoString(ptrName), "error"); signal != nil {
signal.(func(*QGeoRouteReply, QGeoRouteReply__Error, string))(NewQGeoRouteReplyFromPointer(reply), QGeoRouteReply__Error(error), C.GoString(errorString))
}
}
func (ptr *QGeoRoutingManagerEngine) Error(reply QGeoRouteReply_ITF, error QGeoRouteReply__Error, errorString string) {
defer qt.Recovering("QGeoRoutingManagerEngine::error")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_Error(ptr.Pointer(), PointerFromQGeoRouteReply(reply), C.int(error), C.CString(errorString))
}
}
func (ptr *QGeoRoutingManagerEngine) ConnectFinished(f func(reply *QGeoRouteReply)) {
defer qt.Recovering("connect QGeoRoutingManagerEngine::finished")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_ConnectFinished(ptr.Pointer())
qt.ConnectSignal(ptr.ObjectName(), "finished", f)
}
}
func (ptr *QGeoRoutingManagerEngine) DisconnectFinished() {
defer qt.Recovering("disconnect QGeoRoutingManagerEngine::finished")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_DisconnectFinished(ptr.Pointer())
qt.DisconnectSignal(ptr.ObjectName(), "finished")
}
}
//export callbackQGeoRoutingManagerEngineFinished
func callbackQGeoRoutingManagerEngineFinished(ptr unsafe.Pointer, ptrName *C.char, reply unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManagerEngine::finished")
if signal := qt.GetSignal(C.GoString(ptrName), "finished"); signal != nil {
signal.(func(*QGeoRouteReply))(NewQGeoRouteReplyFromPointer(reply))
}
}
func (ptr *QGeoRoutingManagerEngine) Finished(reply QGeoRouteReply_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::finished")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_Finished(ptr.Pointer(), PointerFromQGeoRouteReply(reply))
}
}
func (ptr *QGeoRoutingManagerEngine) ManagerName() string {
defer qt.Recovering("QGeoRoutingManagerEngine::managerName")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoRoutingManagerEngine_ManagerName(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoRoutingManagerEngine) ManagerVersion() int {
defer qt.Recovering("QGeoRoutingManagerEngine::managerVersion")
if ptr.Pointer() != nil {
return int(C.QGeoRoutingManagerEngine_ManagerVersion(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) MeasurementSystem() core.QLocale__MeasurementSystem {
defer qt.Recovering("QGeoRoutingManagerEngine::measurementSystem")
if ptr.Pointer() != nil {
return core.QLocale__MeasurementSystem(C.QGeoRoutingManagerEngine_MeasurementSystem(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) SetLocale(locale core.QLocale_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::setLocale")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_SetLocale(ptr.Pointer(), core.PointerFromQLocale(locale))
}
}
func (ptr *QGeoRoutingManagerEngine) SetMeasurementSystem(system core.QLocale__MeasurementSystem) {
defer qt.Recovering("QGeoRoutingManagerEngine::setMeasurementSystem")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_SetMeasurementSystem(ptr.Pointer(), C.int(system))
}
}
func (ptr *QGeoRoutingManagerEngine) SupportedFeatureTypes() QGeoRouteRequest__FeatureType {
defer qt.Recovering("QGeoRoutingManagerEngine::supportedFeatureTypes")
if ptr.Pointer() != nil {
return QGeoRouteRequest__FeatureType(C.QGeoRoutingManagerEngine_SupportedFeatureTypes(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) SupportedFeatureWeights() QGeoRouteRequest__FeatureWeight {
defer qt.Recovering("QGeoRoutingManagerEngine::supportedFeatureWeights")
if ptr.Pointer() != nil {
return QGeoRouteRequest__FeatureWeight(C.QGeoRoutingManagerEngine_SupportedFeatureWeights(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) SupportedManeuverDetails() QGeoRouteRequest__ManeuverDetail {
defer qt.Recovering("QGeoRoutingManagerEngine::supportedManeuverDetails")
if ptr.Pointer() != nil {
return QGeoRouteRequest__ManeuverDetail(C.QGeoRoutingManagerEngine_SupportedManeuverDetails(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) SupportedRouteOptimizations() QGeoRouteRequest__RouteOptimization {
defer qt.Recovering("QGeoRoutingManagerEngine::supportedRouteOptimizations")
if ptr.Pointer() != nil {
return QGeoRouteRequest__RouteOptimization(C.QGeoRoutingManagerEngine_SupportedRouteOptimizations(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) SupportedSegmentDetails() QGeoRouteRequest__SegmentDetail {
defer qt.Recovering("QGeoRoutingManagerEngine::supportedSegmentDetails")
if ptr.Pointer() != nil {
return QGeoRouteRequest__SegmentDetail(C.QGeoRoutingManagerEngine_SupportedSegmentDetails(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) SupportedTravelModes() QGeoRouteRequest__TravelMode {
defer qt.Recovering("QGeoRoutingManagerEngine::supportedTravelModes")
if ptr.Pointer() != nil {
return QGeoRouteRequest__TravelMode(C.QGeoRoutingManagerEngine_SupportedTravelModes(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoRoutingManagerEngine) UpdateRoute(route QGeoRoute_ITF, position positioning.QGeoCoordinate_ITF) *QGeoRouteReply {
defer qt.Recovering("QGeoRoutingManagerEngine::updateRoute")
if ptr.Pointer() != nil {
return NewQGeoRouteReplyFromPointer(C.QGeoRoutingManagerEngine_UpdateRoute(ptr.Pointer(), PointerFromQGeoRoute(route), positioning.PointerFromQGeoCoordinate(position)))
}
return nil
}
func (ptr *QGeoRoutingManagerEngine) DestroyQGeoRoutingManagerEngine() {
defer qt.Recovering("QGeoRoutingManagerEngine::~QGeoRoutingManagerEngine")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_DestroyQGeoRoutingManagerEngine(ptr.Pointer())
ptr.SetPointer(nil)
}
}
func (ptr *QGeoRoutingManagerEngine) ConnectTimerEvent(f func(event *core.QTimerEvent)) {
defer qt.Recovering("connect QGeoRoutingManagerEngine::timerEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "timerEvent", f)
}
}
func (ptr *QGeoRoutingManagerEngine) DisconnectTimerEvent() {
defer qt.Recovering("disconnect QGeoRoutingManagerEngine::timerEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "timerEvent")
}
}
//export callbackQGeoRoutingManagerEngineTimerEvent
func callbackQGeoRoutingManagerEngineTimerEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManagerEngine::timerEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "timerEvent"); signal != nil {
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
} else {
NewQGeoRoutingManagerEngineFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
}
}
func (ptr *QGeoRoutingManagerEngine) TimerEvent(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::timerEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_TimerEvent(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoRoutingManagerEngine) TimerEventDefault(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::timerEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoRoutingManagerEngine) ConnectChildEvent(f func(event *core.QChildEvent)) {
defer qt.Recovering("connect QGeoRoutingManagerEngine::childEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "childEvent", f)
}
}
func (ptr *QGeoRoutingManagerEngine) DisconnectChildEvent() {
defer qt.Recovering("disconnect QGeoRoutingManagerEngine::childEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "childEvent")
}
}
//export callbackQGeoRoutingManagerEngineChildEvent
func callbackQGeoRoutingManagerEngineChildEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManagerEngine::childEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "childEvent"); signal != nil {
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
} else {
NewQGeoRoutingManagerEngineFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
}
}
func (ptr *QGeoRoutingManagerEngine) ChildEvent(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::childEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_ChildEvent(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoRoutingManagerEngine) ChildEventDefault(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::childEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoRoutingManagerEngine) ConnectCustomEvent(f func(event *core.QEvent)) {
defer qt.Recovering("connect QGeoRoutingManagerEngine::customEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "customEvent", f)
}
}
func (ptr *QGeoRoutingManagerEngine) DisconnectCustomEvent() {
defer qt.Recovering("disconnect QGeoRoutingManagerEngine::customEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "customEvent")
}
}
//export callbackQGeoRoutingManagerEngineCustomEvent
func callbackQGeoRoutingManagerEngineCustomEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoRoutingManagerEngine::customEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "customEvent"); signal != nil {
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
} else {
NewQGeoRoutingManagerEngineFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
}
}
func (ptr *QGeoRoutingManagerEngine) CustomEvent(event core.QEvent_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::customEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_CustomEvent(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
func (ptr *QGeoRoutingManagerEngine) CustomEventDefault(event core.QEvent_ITF) {
defer qt.Recovering("QGeoRoutingManagerEngine::customEvent")
if ptr.Pointer() != nil {
C.QGeoRoutingManagerEngine_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
type QGeoServiceProvider struct {
core.QObject
}
type QGeoServiceProvider_ITF interface {
core.QObject_ITF
QGeoServiceProvider_PTR() *QGeoServiceProvider
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoServiceProviderFromPointer(ptr unsafe.Pointer) *QGeoServiceProvider {
var n = NewQGeoServiceProviderFromPointer(ptr)
for len(n.ObjectName()) < len("QGeoServiceProvider_") {
n.SetObjectName("QGeoServiceProvider_" + qt.Identifier())
}
return n
}
func (ptr *QGeoServiceProvider) QGeoServiceProvider_PTR() *QGeoServiceProvider {
return ptr
}
//QGeoServiceProvider::Error
type QGeoServiceProvider__Error int64
const (
QGeoServiceProvider__NoError = QGeoServiceProvider__Error(0)
QGeoServiceProvider__NotSupportedError = QGeoServiceProvider__Error(1)
QGeoServiceProvider__UnknownParameterError = QGeoServiceProvider__Error(2)
QGeoServiceProvider__MissingRequiredParameterError = QGeoServiceProvider__Error(3)
QGeoServiceProvider__ConnectionError = QGeoServiceProvider__Error(4)
)
//QGeoServiceProvider::GeocodingFeature
type QGeoServiceProvider__GeocodingFeature int64
var (
QGeoServiceProvider__NoGeocodingFeatures = QGeoServiceProvider__GeocodingFeature(0)
QGeoServiceProvider__OnlineGeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_OnlineGeocodingFeature_Type())
QGeoServiceProvider__OfflineGeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_OfflineGeocodingFeature_Type())
QGeoServiceProvider__ReverseGeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_ReverseGeocodingFeature_Type())
QGeoServiceProvider__LocalizedGeocodingFeature = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_LocalizedGeocodingFeature_Type())
QGeoServiceProvider__AnyGeocodingFeatures = QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_AnyGeocodingFeatures_Type())
)
//QGeoServiceProvider::MappingFeature
type QGeoServiceProvider__MappingFeature int64
var (
QGeoServiceProvider__NoMappingFeatures = QGeoServiceProvider__MappingFeature(0)
QGeoServiceProvider__OnlineMappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_OnlineMappingFeature_Type())
QGeoServiceProvider__OfflineMappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_OfflineMappingFeature_Type())
QGeoServiceProvider__LocalizedMappingFeature = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_LocalizedMappingFeature_Type())
QGeoServiceProvider__AnyMappingFeatures = QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_AnyMappingFeatures_Type())
)
//QGeoServiceProvider::PlacesFeature
type QGeoServiceProvider__PlacesFeature int64
var (
QGeoServiceProvider__NoPlacesFeatures = QGeoServiceProvider__PlacesFeature(0)
QGeoServiceProvider__OnlinePlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_OnlinePlacesFeature_Type())
QGeoServiceProvider__OfflinePlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_OfflinePlacesFeature_Type())
QGeoServiceProvider__SavePlaceFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_SavePlaceFeature_Type())
QGeoServiceProvider__RemovePlaceFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_RemovePlaceFeature_Type())
QGeoServiceProvider__SaveCategoryFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_SaveCategoryFeature_Type())
QGeoServiceProvider__RemoveCategoryFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_RemoveCategoryFeature_Type())
QGeoServiceProvider__PlaceRecommendationsFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_PlaceRecommendationsFeature_Type())
QGeoServiceProvider__SearchSuggestionsFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_SearchSuggestionsFeature_Type())
QGeoServiceProvider__LocalizedPlacesFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_LocalizedPlacesFeature_Type())
QGeoServiceProvider__NotificationsFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_NotificationsFeature_Type())
QGeoServiceProvider__PlaceMatchingFeature = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_PlaceMatchingFeature_Type())
QGeoServiceProvider__AnyPlacesFeatures = QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_AnyPlacesFeatures_Type())
)
//QGeoServiceProvider::RoutingFeature
type QGeoServiceProvider__RoutingFeature int64
var (
QGeoServiceProvider__NoRoutingFeatures = QGeoServiceProvider__RoutingFeature(0)
QGeoServiceProvider__OnlineRoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_OnlineRoutingFeature_Type())
QGeoServiceProvider__OfflineRoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_OfflineRoutingFeature_Type())
QGeoServiceProvider__LocalizedRoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_LocalizedRoutingFeature_Type())
QGeoServiceProvider__RouteUpdatesFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_RouteUpdatesFeature_Type())
QGeoServiceProvider__AlternativeRoutesFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_AlternativeRoutesFeature_Type())
QGeoServiceProvider__ExcludeAreasRoutingFeature = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_ExcludeAreasRoutingFeature_Type())
QGeoServiceProvider__AnyRoutingFeatures = QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_AnyRoutingFeatures_Type())
)
func QGeoServiceProvider_AvailableServiceProviders() []string {
defer qt.Recovering("QGeoServiceProvider::availableServiceProviders")
return strings.Split(C.GoString(C.QGeoServiceProvider_QGeoServiceProvider_AvailableServiceProviders()), "|")
}
func (ptr *QGeoServiceProvider) Error() QGeoServiceProvider__Error {
defer qt.Recovering("QGeoServiceProvider::error")
if ptr.Pointer() != nil {
return QGeoServiceProvider__Error(C.QGeoServiceProvider_Error(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoServiceProvider) ErrorString() string {
defer qt.Recovering("QGeoServiceProvider::errorString")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoServiceProvider_ErrorString(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoServiceProvider) GeocodingFeatures() QGeoServiceProvider__GeocodingFeature {
defer qt.Recovering("QGeoServiceProvider::geocodingFeatures")
if ptr.Pointer() != nil {
return QGeoServiceProvider__GeocodingFeature(C.QGeoServiceProvider_GeocodingFeatures(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoServiceProvider) GeocodingManager() *QGeoCodingManager {
defer qt.Recovering("QGeoServiceProvider::geocodingManager")
if ptr.Pointer() != nil {
return NewQGeoCodingManagerFromPointer(C.QGeoServiceProvider_GeocodingManager(ptr.Pointer()))
}
return nil
}
func (ptr *QGeoServiceProvider) MappingFeatures() QGeoServiceProvider__MappingFeature {
defer qt.Recovering("QGeoServiceProvider::mappingFeatures")
if ptr.Pointer() != nil {
return QGeoServiceProvider__MappingFeature(C.QGeoServiceProvider_MappingFeatures(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoServiceProvider) PlaceManager() *QPlaceManager {
defer qt.Recovering("QGeoServiceProvider::placeManager")
if ptr.Pointer() != nil {
return NewQPlaceManagerFromPointer(C.QGeoServiceProvider_PlaceManager(ptr.Pointer()))
}
return nil
}
func (ptr *QGeoServiceProvider) PlacesFeatures() QGeoServiceProvider__PlacesFeature {
defer qt.Recovering("QGeoServiceProvider::placesFeatures")
if ptr.Pointer() != nil {
return QGeoServiceProvider__PlacesFeature(C.QGeoServiceProvider_PlacesFeatures(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoServiceProvider) RoutingFeatures() QGeoServiceProvider__RoutingFeature {
defer qt.Recovering("QGeoServiceProvider::routingFeatures")
if ptr.Pointer() != nil {
return QGeoServiceProvider__RoutingFeature(C.QGeoServiceProvider_RoutingFeatures(ptr.Pointer()))
}
return 0
}
func (ptr *QGeoServiceProvider) RoutingManager() *QGeoRoutingManager {
defer qt.Recovering("QGeoServiceProvider::routingManager")
if ptr.Pointer() != nil {
return NewQGeoRoutingManagerFromPointer(C.QGeoServiceProvider_RoutingManager(ptr.Pointer()))
}
return nil
}
func (ptr *QGeoServiceProvider) SetAllowExperimental(allow bool) {
defer qt.Recovering("QGeoServiceProvider::setAllowExperimental")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_SetAllowExperimental(ptr.Pointer(), C.int(qt.GoBoolToInt(allow)))
}
}
func (ptr *QGeoServiceProvider) SetLocale(locale core.QLocale_ITF) {
defer qt.Recovering("QGeoServiceProvider::setLocale")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_SetLocale(ptr.Pointer(), core.PointerFromQLocale(locale))
}
}
func (ptr *QGeoServiceProvider) DestroyQGeoServiceProvider() {
defer qt.Recovering("QGeoServiceProvider::~QGeoServiceProvider")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_DestroyQGeoServiceProvider(ptr.Pointer())
ptr.SetPointer(nil)
}
}
func (ptr *QGeoServiceProvider) ConnectTimerEvent(f func(event *core.QTimerEvent)) {
defer qt.Recovering("connect QGeoServiceProvider::timerEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "timerEvent", f)
}
}
func (ptr *QGeoServiceProvider) DisconnectTimerEvent() {
defer qt.Recovering("disconnect QGeoServiceProvider::timerEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "timerEvent")
}
}
//export callbackQGeoServiceProviderTimerEvent
func callbackQGeoServiceProviderTimerEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoServiceProvider::timerEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "timerEvent"); signal != nil {
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
} else {
NewQGeoServiceProviderFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
}
}
func (ptr *QGeoServiceProvider) TimerEvent(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoServiceProvider::timerEvent")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_TimerEvent(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoServiceProvider) TimerEventDefault(event core.QTimerEvent_ITF) {
defer qt.Recovering("QGeoServiceProvider::timerEvent")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_TimerEventDefault(ptr.Pointer(), core.PointerFromQTimerEvent(event))
}
}
func (ptr *QGeoServiceProvider) ConnectChildEvent(f func(event *core.QChildEvent)) {
defer qt.Recovering("connect QGeoServiceProvider::childEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "childEvent", f)
}
}
func (ptr *QGeoServiceProvider) DisconnectChildEvent() {
defer qt.Recovering("disconnect QGeoServiceProvider::childEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "childEvent")
}
}
//export callbackQGeoServiceProviderChildEvent
func callbackQGeoServiceProviderChildEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoServiceProvider::childEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "childEvent"); signal != nil {
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
} else {
NewQGeoServiceProviderFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
}
}
func (ptr *QGeoServiceProvider) ChildEvent(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoServiceProvider::childEvent")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_ChildEvent(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoServiceProvider) ChildEventDefault(event core.QChildEvent_ITF) {
defer qt.Recovering("QGeoServiceProvider::childEvent")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_ChildEventDefault(ptr.Pointer(), core.PointerFromQChildEvent(event))
}
}
func (ptr *QGeoServiceProvider) ConnectCustomEvent(f func(event *core.QEvent)) {
defer qt.Recovering("connect QGeoServiceProvider::customEvent")
if ptr.Pointer() != nil {
qt.ConnectSignal(ptr.ObjectName(), "customEvent", f)
}
}
func (ptr *QGeoServiceProvider) DisconnectCustomEvent() {
defer qt.Recovering("disconnect QGeoServiceProvider::customEvent")
if ptr.Pointer() != nil {
qt.DisconnectSignal(ptr.ObjectName(), "customEvent")
}
}
//export callbackQGeoServiceProviderCustomEvent
func callbackQGeoServiceProviderCustomEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QGeoServiceProvider::customEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "customEvent"); signal != nil {
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
} else {
NewQGeoServiceProviderFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
}
}
func (ptr *QGeoServiceProvider) CustomEvent(event core.QEvent_ITF) {
defer qt.Recovering("QGeoServiceProvider::customEvent")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_CustomEvent(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
func (ptr *QGeoServiceProvider) CustomEventDefault(event core.QEvent_ITF) {
defer qt.Recovering("QGeoServiceProvider::customEvent")
if ptr.Pointer() != nil {
C.QGeoServiceProvider_CustomEventDefault(ptr.Pointer(), core.PointerFromQEvent(event))
}
}
type QGeoServiceProviderFactory struct {
ptr unsafe.Pointer
}
type QGeoServiceProviderFactory_ITF interface {
QGeoServiceProviderFactory_PTR() *QGeoServiceProviderFactory
}
func (p *QGeoServiceProviderFactory) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QGeoServiceProviderFactory) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQGeoServiceProviderFactoryFromPointer(ptr unsafe.Pointer) *QGeoServiceProviderFactory {
var n = NewQGeoServiceProviderFactoryFromPointer(ptr)
for len(n.ObjectNameAbs()) < len("QGeoServiceProviderFactory_") {
n.SetObjectNameAbs("QGeoServiceProviderFactory_" + qt.Identifier())
}
return n
}
func (ptr *QGeoServiceProviderFactory) QGeoServiceProviderFactory_PTR() *QGeoServiceProviderFactory {
return ptr
}
func (ptr *QGeoServiceProviderFactory) DestroyQGeoServiceProviderFactory() {
defer qt.Recovering("QGeoServiceProviderFactory::~QGeoServiceProviderFactory")
if ptr.Pointer() != nil {
C.QGeoServiceProviderFactory_DestroyQGeoServiceProviderFactory(ptr.Pointer())
}
}
func (ptr *QGeoServiceProviderFactory) ObjectNameAbs() string {
defer qt.Recovering("QGeoServiceProviderFactory::objectNameAbs")
if ptr.Pointer() != nil {
return C.GoString(C.QGeoServiceProviderFactory_ObjectNameAbs(ptr.Pointer()))
}
return ""
}
func (ptr *QGeoServiceProviderFactory) SetObjectNameAbs(name string) {
defer qt.Recovering("QGeoServiceProviderFactory::setObjectNameAbs")
if ptr.Pointer() != nil {
C.QGeoServiceProviderFactory_SetObjectNameAbs(ptr.Pointer(), C.CString(name))
}
}
type QPlace struct {
ptr unsafe.Pointer
}
type QPlace_ITF interface {
QPlace_PTR() *QPlace
}
func (p *QPlace) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlace) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceFromPointer(ptr unsafe.Pointer) *QPlace {
var n = NewQPlaceFromPointer(ptr)
return n
}
func (ptr *QPlace) QPlace_PTR() *QPlace {
return ptr
}
type QPlaceAttribute struct {
ptr unsafe.Pointer
}
type QPlaceAttribute_ITF interface {
QPlaceAttribute_PTR() *QPlaceAttribute
}
func (p *QPlaceAttribute) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceAttribute) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceAttributeFromPointer(ptr unsafe.Pointer) *QPlaceAttribute {
var n = NewQPlaceAttributeFromPointer(ptr)
return n
}
func (ptr *QPlaceAttribute) QPlaceAttribute_PTR() *QPlaceAttribute {
return ptr
}
type QPlaceCategory struct {
ptr unsafe.Pointer
}
type QPlaceCategory_ITF interface {
QPlaceCategory_PTR() *QPlaceCategory
}
func (p *QPlaceCategory) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceCategory) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceCategoryFromPointer(ptr unsafe.Pointer) *QPlaceCategory {
var n = NewQPlaceCategoryFromPointer(ptr)
return n
}
func (ptr *QPlaceCategory) QPlaceCategory_PTR() *QPlaceCategory {
return ptr
}
type QPlaceContactDetail struct {
ptr unsafe.Pointer
}
type QPlaceContactDetail_ITF interface {
QPlaceContactDetail_PTR() *QPlaceContactDetail
}
func (p *QPlaceContactDetail) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceContactDetail) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceContactDetailFromPointer(ptr unsafe.Pointer) *QPlaceContactDetail {
var n = NewQPlaceContactDetailFromPointer(ptr)
return n
}
func (ptr *QPlaceContactDetail) QPlaceContactDetail_PTR() *QPlaceContactDetail {
return ptr
}
type QPlaceContent struct {
ptr unsafe.Pointer
}
type QPlaceContent_ITF interface {
QPlaceContent_PTR() *QPlaceContent
}
func (p *QPlaceContent) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceContent) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceContentFromPointer(ptr unsafe.Pointer) *QPlaceContent {
var n = NewQPlaceContentFromPointer(ptr)
return n
}
func (ptr *QPlaceContent) QPlaceContent_PTR() *QPlaceContent {
return ptr
}
//QPlaceContent::Type
type QPlaceContent__Type int64
const (
QPlaceContent__NoType = QPlaceContent__Type(0)
QPlaceContent__ImageType = QPlaceContent__Type(1)
QPlaceContent__ReviewType = QPlaceContent__Type(2)
QPlaceContent__EditorialType = QPlaceContent__Type(3)
)
type QPlaceContentReply struct {
QPlaceReply
}
type QPlaceContentReply_ITF interface {
QPlaceReply_ITF
QPlaceContentReply_PTR() *QPlaceContentReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceContentReplyFromPointer(ptr unsafe.Pointer) *QPlaceContentReply {
var n = NewQPlaceContentReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceContentReply_") {
n.SetObjectName("QPlaceContentReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceContentReply) QPlaceContentReply_PTR() *QPlaceContentReply {
return ptr
}
type QPlaceContentRequest struct {
ptr unsafe.Pointer
}
type QPlaceContentRequest_ITF interface {
QPlaceContentRequest_PTR() *QPlaceContentRequest
}
func (p *QPlaceContentRequest) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceContentRequest) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceContentRequestFromPointer(ptr unsafe.Pointer) *QPlaceContentRequest {
var n = NewQPlaceContentRequestFromPointer(ptr)
return n
}
func (ptr *QPlaceContentRequest) QPlaceContentRequest_PTR() *QPlaceContentRequest {
return ptr
}
type QPlaceDetailsReply struct {
QPlaceReply
}
type QPlaceDetailsReply_ITF interface {
QPlaceReply_ITF
QPlaceDetailsReply_PTR() *QPlaceDetailsReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceDetailsReplyFromPointer(ptr unsafe.Pointer) *QPlaceDetailsReply {
var n = NewQPlaceDetailsReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceDetailsReply_") {
n.SetObjectName("QPlaceDetailsReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceDetailsReply) QPlaceDetailsReply_PTR() *QPlaceDetailsReply {
return ptr
}
type QPlaceEditorial struct {
QPlaceContent
}
type QPlaceEditorial_ITF interface {
QPlaceContent_ITF
QPlaceEditorial_PTR() *QPlaceEditorial
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceEditorialFromPointer(ptr unsafe.Pointer) *QPlaceEditorial {
var n = NewQPlaceEditorialFromPointer(ptr)
return n
}
func (ptr *QPlaceEditorial) QPlaceEditorial_PTR() *QPlaceEditorial {
return ptr
}
type QPlaceIcon struct {
ptr unsafe.Pointer
}
type QPlaceIcon_ITF interface {
QPlaceIcon_PTR() *QPlaceIcon
}
func (p *QPlaceIcon) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceIcon) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceIconFromPointer(ptr unsafe.Pointer) *QPlaceIcon {
var n = NewQPlaceIconFromPointer(ptr)
return n
}
func (ptr *QPlaceIcon) QPlaceIcon_PTR() *QPlaceIcon {
return ptr
}
type QPlaceIdReply struct {
QPlaceReply
}
type QPlaceIdReply_ITF interface {
QPlaceReply_ITF
QPlaceIdReply_PTR() *QPlaceIdReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceIdReplyFromPointer(ptr unsafe.Pointer) *QPlaceIdReply {
var n = NewQPlaceIdReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceIdReply_") {
n.SetObjectName("QPlaceIdReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceIdReply) QPlaceIdReply_PTR() *QPlaceIdReply {
return ptr
}
//QPlaceIdReply::OperationType
type QPlaceIdReply__OperationType int64
const (
QPlaceIdReply__SavePlace = QPlaceIdReply__OperationType(0)
QPlaceIdReply__SaveCategory = QPlaceIdReply__OperationType(1)
QPlaceIdReply__RemovePlace = QPlaceIdReply__OperationType(2)
QPlaceIdReply__RemoveCategory = QPlaceIdReply__OperationType(3)
)
type QPlaceImage struct {
QPlaceContent
}
type QPlaceImage_ITF interface {
QPlaceContent_ITF
QPlaceImage_PTR() *QPlaceImage
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceImageFromPointer(ptr unsafe.Pointer) *QPlaceImage {
var n = NewQPlaceImageFromPointer(ptr)
return n
}
func (ptr *QPlaceImage) QPlaceImage_PTR() *QPlaceImage {
return ptr
}
type QPlaceManager struct {
core.QObject
}
type QPlaceManager_ITF interface {
core.QObject_ITF
QPlaceManager_PTR() *QPlaceManager
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceManagerFromPointer(ptr unsafe.Pointer) *QPlaceManager {
var n = NewQPlaceManagerFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceManager_") {
n.SetObjectName("QPlaceManager_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceManager) QPlaceManager_PTR() *QPlaceManager {
return ptr
}
type QPlaceManagerEngine struct {
core.QObject
}
type QPlaceManagerEngine_ITF interface {
core.QObject_ITF
QPlaceManagerEngine_PTR() *QPlaceManagerEngine
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceManagerEngineFromPointer(ptr unsafe.Pointer) *QPlaceManagerEngine {
var n = NewQPlaceManagerEngineFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceManagerEngine_") {
n.SetObjectName("QPlaceManagerEngine_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceManagerEngine) QPlaceManagerEngine_PTR() *QPlaceManagerEngine {
return ptr
}
type QPlaceMatchReply struct {
QPlaceReply
}
type QPlaceMatchReply_ITF interface {
QPlaceReply_ITF
QPlaceMatchReply_PTR() *QPlaceMatchReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceMatchReplyFromPointer(ptr unsafe.Pointer) *QPlaceMatchReply {
var n = NewQPlaceMatchReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceMatchReply_") {
n.SetObjectName("QPlaceMatchReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceMatchReply) QPlaceMatchReply_PTR() *QPlaceMatchReply {
return ptr
}
type QPlaceMatchRequest struct {
ptr unsafe.Pointer
}
type QPlaceMatchRequest_ITF interface {
QPlaceMatchRequest_PTR() *QPlaceMatchRequest
}
func (p *QPlaceMatchRequest) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceMatchRequest) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceMatchRequestFromPointer(ptr unsafe.Pointer) *QPlaceMatchRequest {
var n = NewQPlaceMatchRequestFromPointer(ptr)
return n
}
func (ptr *QPlaceMatchRequest) QPlaceMatchRequest_PTR() *QPlaceMatchRequest {
return ptr
}
type QPlaceProposedSearchResult struct {
QPlaceSearchResult
}
type QPlaceProposedSearchResult_ITF interface {
QPlaceSearchResult_ITF
QPlaceProposedSearchResult_PTR() *QPlaceProposedSearchResult
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceProposedSearchResultFromPointer(ptr unsafe.Pointer) *QPlaceProposedSearchResult {
var n = NewQPlaceProposedSearchResultFromPointer(ptr)
return n
}
func (ptr *QPlaceProposedSearchResult) QPlaceProposedSearchResult_PTR() *QPlaceProposedSearchResult {
return ptr
}
type QPlaceRatings struct {
ptr unsafe.Pointer
}
type QPlaceRatings_ITF interface {
QPlaceRatings_PTR() *QPlaceRatings
}
func (p *QPlaceRatings) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceRatings) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceRatingsFromPointer(ptr unsafe.Pointer) *QPlaceRatings {
var n = NewQPlaceRatingsFromPointer(ptr)
return n
}
func (ptr *QPlaceRatings) QPlaceRatings_PTR() *QPlaceRatings {
return ptr
}
type QPlaceReply struct {
core.QObject
}
type QPlaceReply_ITF interface {
core.QObject_ITF
QPlaceReply_PTR() *QPlaceReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceReplyFromPointer(ptr unsafe.Pointer) *QPlaceReply {
var n = NewQPlaceReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceReply_") {
n.SetObjectName("QPlaceReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceReply) QPlaceReply_PTR() *QPlaceReply {
return ptr
}
//QPlaceReply::Error
type QPlaceReply__Error int64
const (
QPlaceReply__NoError = QPlaceReply__Error(0)
QPlaceReply__PlaceDoesNotExistError = QPlaceReply__Error(1)
QPlaceReply__CategoryDoesNotExistError = QPlaceReply__Error(2)
QPlaceReply__CommunicationError = QPlaceReply__Error(3)
QPlaceReply__ParseError = QPlaceReply__Error(4)
QPlaceReply__PermissionsError = QPlaceReply__Error(5)
QPlaceReply__UnsupportedError = QPlaceReply__Error(6)
QPlaceReply__BadArgumentError = QPlaceReply__Error(7)
QPlaceReply__CancelError = QPlaceReply__Error(8)
QPlaceReply__UnknownError = QPlaceReply__Error(9)
)
//QPlaceReply::Type
type QPlaceReply__Type int64
const (
QPlaceReply__Reply = QPlaceReply__Type(0)
QPlaceReply__DetailsReply = QPlaceReply__Type(1)
QPlaceReply__SearchReply = QPlaceReply__Type(2)
QPlaceReply__SearchSuggestionReply = QPlaceReply__Type(3)
QPlaceReply__ContentReply = QPlaceReply__Type(4)
QPlaceReply__IdReply = QPlaceReply__Type(5)
QPlaceReply__MatchReply = QPlaceReply__Type(6)
)
type QPlaceResult struct {
QPlaceSearchResult
}
type QPlaceResult_ITF interface {
QPlaceSearchResult_ITF
QPlaceResult_PTR() *QPlaceResult
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceResultFromPointer(ptr unsafe.Pointer) *QPlaceResult {
var n = NewQPlaceResultFromPointer(ptr)
return n
}
func (ptr *QPlaceResult) QPlaceResult_PTR() *QPlaceResult {
return ptr
}
type QPlaceReview struct {
QPlaceContent
}
type QPlaceReview_ITF interface {
QPlaceContent_ITF
QPlaceReview_PTR() *QPlaceReview
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceReviewFromPointer(ptr unsafe.Pointer) *QPlaceReview {
var n = NewQPlaceReviewFromPointer(ptr)
return n
}
func (ptr *QPlaceReview) QPlaceReview_PTR() *QPlaceReview {
return ptr
}
type QPlaceSearchReply struct {
QPlaceReply
}
type QPlaceSearchReply_ITF interface {
QPlaceReply_ITF
QPlaceSearchReply_PTR() *QPlaceSearchReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceSearchReplyFromPointer(ptr unsafe.Pointer) *QPlaceSearchReply {
var n = NewQPlaceSearchReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceSearchReply_") {
n.SetObjectName("QPlaceSearchReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceSearchReply) QPlaceSearchReply_PTR() *QPlaceSearchReply {
return ptr
}
type QPlaceSearchRequest struct {
ptr unsafe.Pointer
}
type QPlaceSearchRequest_ITF interface {
QPlaceSearchRequest_PTR() *QPlaceSearchRequest
}
func (p *QPlaceSearchRequest) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceSearchRequest) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceSearchRequestFromPointer(ptr unsafe.Pointer) *QPlaceSearchRequest {
var n = NewQPlaceSearchRequestFromPointer(ptr)
return n
}
func (ptr *QPlaceSearchRequest) QPlaceSearchRequest_PTR() *QPlaceSearchRequest {
return ptr
}
//QPlaceSearchRequest::RelevanceHint
type QPlaceSearchRequest__RelevanceHint int64
const (
QPlaceSearchRequest__UnspecifiedHint = QPlaceSearchRequest__RelevanceHint(0)
QPlaceSearchRequest__DistanceHint = QPlaceSearchRequest__RelevanceHint(1)
QPlaceSearchRequest__LexicalPlaceNameHint = QPlaceSearchRequest__RelevanceHint(2)
)
type QPlaceSearchResult struct {
ptr unsafe.Pointer
}
type QPlaceSearchResult_ITF interface {
QPlaceSearchResult_PTR() *QPlaceSearchResult
}
func (p *QPlaceSearchResult) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceSearchResult) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceSearchResultFromPointer(ptr unsafe.Pointer) *QPlaceSearchResult {
var n = NewQPlaceSearchResultFromPointer(ptr)
return n
}
func (ptr *QPlaceSearchResult) QPlaceSearchResult_PTR() *QPlaceSearchResult {
return ptr
}
//QPlaceSearchResult::SearchResultType
type QPlaceSearchResult__SearchResultType int64
const (
QPlaceSearchResult__UnknownSearchResult = QPlaceSearchResult__SearchResultType(0)
QPlaceSearchResult__PlaceResult = QPlaceSearchResult__SearchResultType(1)
QPlaceSearchResult__ProposedSearchResult = QPlaceSearchResult__SearchResultType(2)
)
type QPlaceSearchSuggestionReply struct {
QPlaceReply
}
type QPlaceSearchSuggestionReply_ITF interface {
QPlaceReply_ITF
QPlaceSearchSuggestionReply_PTR() *QPlaceSearchSuggestionReply
}
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)
2016-01-26 19:58:25 +03:00
return n
}
func newQPlaceSearchSuggestionReplyFromPointer(ptr unsafe.Pointer) *QPlaceSearchSuggestionReply {
var n = NewQPlaceSearchSuggestionReplyFromPointer(ptr)
for len(n.ObjectName()) < len("QPlaceSearchSuggestionReply_") {
n.SetObjectName("QPlaceSearchSuggestionReply_" + qt.Identifier())
}
return n
}
func (ptr *QPlaceSearchSuggestionReply) QPlaceSearchSuggestionReply_PTR() *QPlaceSearchSuggestionReply {
return ptr
}
type QPlaceSupplier struct {
ptr unsafe.Pointer
}
type QPlaceSupplier_ITF interface {
QPlaceSupplier_PTR() *QPlaceSupplier
}
func (p *QPlaceSupplier) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceSupplier) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceSupplierFromPointer(ptr unsafe.Pointer) *QPlaceSupplier {
var n = NewQPlaceSupplierFromPointer(ptr)
return n
}
func (ptr *QPlaceSupplier) QPlaceSupplier_PTR() *QPlaceSupplier {
return ptr
}
type QPlaceUser struct {
ptr unsafe.Pointer
}
type QPlaceUser_ITF interface {
QPlaceUser_PTR() *QPlaceUser
}
func (p *QPlaceUser) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPlaceUser) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
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
}
2016-01-26 19:58:25 +03:00
func newQPlaceUserFromPointer(ptr unsafe.Pointer) *QPlaceUser {
var n = NewQPlaceUserFromPointer(ptr)
return n
}
func (ptr *QPlaceUser) QPlaceUser_PTR() *QPlaceUser {
return ptr
}