mirror of
https://github.com/mappu/miqt.git
synced 2025-04-22 13:20:22 +00:00
65 lines
1.7 KiB
Go
65 lines
1.7 KiB
Go
package qml
|
|
|
|
/*
|
|
|
|
#include "gen_qqmlnetworkaccessmanagerfactory.h"
|
|
#include <stdlib.h>
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
type QQmlNetworkAccessManagerFactory struct {
|
|
h *C.QQmlNetworkAccessManagerFactory
|
|
}
|
|
|
|
func (this *QQmlNetworkAccessManagerFactory) cPointer() *C.QQmlNetworkAccessManagerFactory {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func (this *QQmlNetworkAccessManagerFactory) UnsafePointer() unsafe.Pointer {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return unsafe.Pointer(this.h)
|
|
}
|
|
|
|
// newQQmlNetworkAccessManagerFactory constructs the type using only CGO pointers.
|
|
func newQQmlNetworkAccessManagerFactory(h *C.QQmlNetworkAccessManagerFactory) *QQmlNetworkAccessManagerFactory {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
|
|
return &QQmlNetworkAccessManagerFactory{h: h}
|
|
}
|
|
|
|
// UnsafeNewQQmlNetworkAccessManagerFactory constructs the type using only unsafe pointers.
|
|
func UnsafeNewQQmlNetworkAccessManagerFactory(h unsafe.Pointer) *QQmlNetworkAccessManagerFactory {
|
|
return newQQmlNetworkAccessManagerFactory((*C.QQmlNetworkAccessManagerFactory)(h))
|
|
}
|
|
|
|
func (this *QQmlNetworkAccessManagerFactory) OperatorAssign(param1 *QQmlNetworkAccessManagerFactory) {
|
|
C.QQmlNetworkAccessManagerFactory_operatorAssign(this.h, param1.cPointer())
|
|
}
|
|
|
|
// Delete this object from C++ memory.
|
|
func (this *QQmlNetworkAccessManagerFactory) Delete() {
|
|
C.QQmlNetworkAccessManagerFactory_delete(this.h)
|
|
}
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
func (this *QQmlNetworkAccessManagerFactory) GoGC() {
|
|
runtime.SetFinalizer(this, func(this *QQmlNetworkAccessManagerFactory) {
|
|
this.Delete()
|
|
runtime.KeepAlive(this.h)
|
|
})
|
|
}
|