miqt/qt/webengine/gen_qwebengineprofile.go

643 lines
23 KiB
Go
Raw Normal View History

2024-11-27 18:16:48 +13:00
package webengine
/*
#include "gen_qwebengineprofile.h"
#include <stdlib.h>
*/
import "C"
import (
"github.com/mappu/miqt/qt"
"runtime"
"runtime/cgo"
"unsafe"
)
type QWebEngineProfile__HttpCacheType int
const (
QWebEngineProfile__MemoryHttpCache QWebEngineProfile__HttpCacheType = 0
QWebEngineProfile__DiskHttpCache QWebEngineProfile__HttpCacheType = 1
QWebEngineProfile__NoCache QWebEngineProfile__HttpCacheType = 2
)
type QWebEngineProfile__PersistentCookiesPolicy int
const (
QWebEngineProfile__NoPersistentCookies QWebEngineProfile__PersistentCookiesPolicy = 0
QWebEngineProfile__AllowPersistentCookies QWebEngineProfile__PersistentCookiesPolicy = 1
QWebEngineProfile__ForcePersistentCookies QWebEngineProfile__PersistentCookiesPolicy = 2
)
type QWebEngineProfile struct {
h *C.QWebEngineProfile
2024-11-27 18:16:48 +13:00
*qt.QObject
}
func (this *QWebEngineProfile) cPointer() *C.QWebEngineProfile {
if this == nil {
return nil
}
return this.h
}
func (this *QWebEngineProfile) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
// newQWebEngineProfile constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQWebEngineProfile(h *C.QWebEngineProfile) *QWebEngineProfile {
2024-11-27 18:16:48 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QObject *C.QObject = nil
C.QWebEngineProfile_virtbase(h, &outptr_QObject)
2024-11-27 18:16:48 +13:00
return &QWebEngineProfile{h: h,
2024-12-07 17:15:57 +13:00
QObject: qt.UnsafeNewQObject(unsafe.Pointer(outptr_QObject))}
2024-11-27 18:16:48 +13:00
}
// UnsafeNewQWebEngineProfile constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQWebEngineProfile(h unsafe.Pointer) *QWebEngineProfile {
return newQWebEngineProfile((*C.QWebEngineProfile)(h))
2024-11-27 18:16:48 +13:00
}
// NewQWebEngineProfile constructs a new QWebEngineProfile object.
func NewQWebEngineProfile() *QWebEngineProfile {
return newQWebEngineProfile(C.QWebEngineProfile_new())
2024-11-27 18:16:48 +13:00
}
// NewQWebEngineProfile2 constructs a new QWebEngineProfile object.
func NewQWebEngineProfile2(name string) *QWebEngineProfile {
name_ms := C.struct_miqt_string{}
name_ms.data = C.CString(name)
name_ms.len = C.size_t(len(name))
defer C.free(unsafe.Pointer(name_ms.data))
return newQWebEngineProfile(C.QWebEngineProfile_new2(name_ms))
2024-11-27 18:16:48 +13:00
}
// NewQWebEngineProfile3 constructs a new QWebEngineProfile object.
func NewQWebEngineProfile3(parent *qt.QObject) *QWebEngineProfile {
return newQWebEngineProfile(C.QWebEngineProfile_new3((*C.QObject)(parent.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
// NewQWebEngineProfile4 constructs a new QWebEngineProfile object.
func NewQWebEngineProfile4(name string, parent *qt.QObject) *QWebEngineProfile {
name_ms := C.struct_miqt_string{}
name_ms.data = C.CString(name)
name_ms.len = C.size_t(len(name))
defer C.free(unsafe.Pointer(name_ms.data))
return newQWebEngineProfile(C.QWebEngineProfile_new4(name_ms, (*C.QObject)(parent.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) MetaObject() *qt.QMetaObject {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QWebEngineProfile_metaObject(this.h)))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
2025-02-01 13:45:16 +13:00
return (unsafe.Pointer)(C.QWebEngineProfile_metacast(this.h, param1_Cstring))
2024-11-27 18:16:48 +13:00
}
func QWebEngineProfile_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_tr(s_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineProfile_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_trUtf8(s_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) StorageName() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_storageName(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) IsOffTheRecord() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineProfile_isOffTheRecord(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) PersistentStoragePath() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_persistentStoragePath(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) SetPersistentStoragePath(path string) {
path_ms := C.struct_miqt_string{}
path_ms.data = C.CString(path)
path_ms.len = C.size_t(len(path))
defer C.free(unsafe.Pointer(path_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setPersistentStoragePath(this.h, path_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) CachePath() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_cachePath(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) SetCachePath(path string) {
path_ms := C.struct_miqt_string{}
path_ms.data = C.CString(path)
path_ms.len = C.size_t(len(path))
defer C.free(unsafe.Pointer(path_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setCachePath(this.h, path_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) HttpUserAgent() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_httpUserAgent(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) SetHttpUserAgent(userAgent string) {
userAgent_ms := C.struct_miqt_string{}
userAgent_ms.data = C.CString(userAgent)
userAgent_ms.len = C.size_t(len(userAgent))
defer C.free(unsafe.Pointer(userAgent_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setHttpUserAgent(this.h, userAgent_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) HttpCacheType() QWebEngineProfile__HttpCacheType {
2025-02-01 13:45:16 +13:00
return (QWebEngineProfile__HttpCacheType)(C.QWebEngineProfile_httpCacheType(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetHttpCacheType(httpCacheType QWebEngineProfile__HttpCacheType) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setHttpCacheType(this.h, (C.int)(httpCacheType))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetHttpAcceptLanguage(httpAcceptLanguage string) {
httpAcceptLanguage_ms := C.struct_miqt_string{}
httpAcceptLanguage_ms.data = C.CString(httpAcceptLanguage)
httpAcceptLanguage_ms.len = C.size_t(len(httpAcceptLanguage))
defer C.free(unsafe.Pointer(httpAcceptLanguage_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setHttpAcceptLanguage(this.h, httpAcceptLanguage_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) HttpAcceptLanguage() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_httpAcceptLanguage(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) PersistentCookiesPolicy() QWebEngineProfile__PersistentCookiesPolicy {
2025-02-01 13:45:16 +13:00
return (QWebEngineProfile__PersistentCookiesPolicy)(C.QWebEngineProfile_persistentCookiesPolicy(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetPersistentCookiesPolicy(persistentCookiesPolicy QWebEngineProfile__PersistentCookiesPolicy) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setPersistentCookiesPolicy(this.h, (C.int)(persistentCookiesPolicy))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) HttpCacheMaximumSize() int {
2025-02-01 13:45:16 +13:00
return (int)(C.QWebEngineProfile_httpCacheMaximumSize(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetHttpCacheMaximumSize(maxSize int) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setHttpCacheMaximumSize(this.h, (C.int)(maxSize))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) CookieStore() *QWebEngineCookieStore {
2025-02-01 13:45:16 +13:00
return newQWebEngineCookieStore(C.QWebEngineProfile_cookieStore(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetRequestInterceptor(interceptor *QWebEngineUrlRequestInterceptor) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setRequestInterceptor(this.h, interceptor.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetUrlRequestInterceptor(interceptor *QWebEngineUrlRequestInterceptor) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setUrlRequestInterceptor(this.h, interceptor.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) ClearAllVisitedLinks() {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_clearAllVisitedLinks(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) ClearVisitedLinks(urls []qt.QUrl) {
urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls))))
defer C.free(unsafe.Pointer(urls_CArray))
for i := range urls {
urls_CArray[i] = (*C.QUrl)(urls[i].UnsafePointer())
}
urls_ma := C.struct_miqt_array{len: C.size_t(len(urls)), data: unsafe.Pointer(urls_CArray)}
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_clearVisitedLinks(this.h, urls_ma)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) VisitedLinksContainsUrl(url *qt.QUrl) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineProfile_visitedLinksContainsUrl(this.h, (*C.QUrl)(url.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) Settings() *QWebEngineSettings {
2025-02-01 13:45:16 +13:00
return newQWebEngineSettings(C.QWebEngineProfile_settings(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) Scripts() *QWebEngineScriptCollection {
2025-02-01 13:45:16 +13:00
return newQWebEngineScriptCollection(C.QWebEngineProfile_scripts(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) UrlSchemeHandler(param1 []byte) *QWebEngineUrlSchemeHandler {
param1_alias := C.struct_miqt_string{}
if len(param1) > 0 {
param1_alias.data = (*C.char)(unsafe.Pointer(&param1[0]))
} else {
param1_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-27 18:16:48 +13:00
param1_alias.len = C.size_t(len(param1))
2025-02-01 13:45:16 +13:00
return newQWebEngineUrlSchemeHandler(C.QWebEngineProfile_urlSchemeHandler(this.h, param1_alias))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) InstallUrlSchemeHandler(scheme []byte, param2 *QWebEngineUrlSchemeHandler) {
scheme_alias := C.struct_miqt_string{}
if len(scheme) > 0 {
scheme_alias.data = (*C.char)(unsafe.Pointer(&scheme[0]))
} else {
scheme_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-27 18:16:48 +13:00
scheme_alias.len = C.size_t(len(scheme))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_installUrlSchemeHandler(this.h, scheme_alias, param2.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) RemoveUrlScheme(scheme []byte) {
scheme_alias := C.struct_miqt_string{}
if len(scheme) > 0 {
scheme_alias.data = (*C.char)(unsafe.Pointer(&scheme[0]))
} else {
scheme_alias.data = (*C.char)(unsafe.Pointer(nil))
}
2024-11-27 18:16:48 +13:00
scheme_alias.len = C.size_t(len(scheme))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_removeUrlScheme(this.h, scheme_alias)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) RemoveUrlSchemeHandler(param1 *QWebEngineUrlSchemeHandler) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_removeUrlSchemeHandler(this.h, param1.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) RemoveAllUrlSchemeHandlers() {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_removeAllUrlSchemeHandlers(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) ClearHttpCache() {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_clearHttpCache(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetSpellCheckLanguages(languages []string) {
languages_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(languages))))
defer C.free(unsafe.Pointer(languages_CArray))
for i := range languages {
languages_i_ms := C.struct_miqt_string{}
languages_i_ms.data = C.CString(languages[i])
languages_i_ms.len = C.size_t(len(languages[i]))
defer C.free(unsafe.Pointer(languages_i_ms.data))
languages_CArray[i] = languages_i_ms
}
languages_ma := C.struct_miqt_array{len: C.size_t(len(languages)), data: unsafe.Pointer(languages_CArray)}
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setSpellCheckLanguages(this.h, languages_ma)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SpellCheckLanguages() []string {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QWebEngineProfile_spellCheckLanguages(this.h)
2024-11-27 18:16:48 +13:00
_ret := make([]string, int(_ma.len))
_outCast := (*[0xffff]C.struct_miqt_string)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
var _lv_ms C.struct_miqt_string = _outCast[i]
_lv_ret := C.GoStringN(_lv_ms.data, C.int(int64(_lv_ms.len)))
C.free(unsafe.Pointer(_lv_ms.data))
_ret[i] = _lv_ret
}
return _ret
}
func (this *QWebEngineProfile) SetSpellCheckEnabled(enabled bool) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setSpellCheckEnabled(this.h, (C.bool)(enabled))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) IsSpellCheckEnabled() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineProfile_isSpellCheckEnabled(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) SetUseForGlobalCertificateVerification() {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setUseForGlobalCertificateVerification(this.h)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) IsUsedForGlobalCertificateVerification() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineProfile_isUsedForGlobalCertificateVerification(this.h))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) DownloadPath() string {
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_downloadPath(this.h)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) SetDownloadPath(path string) {
path_ms := C.struct_miqt_string{}
path_ms.data = C.CString(path)
path_ms.len = C.size_t(len(path))
defer C.free(unsafe.Pointer(path_ms.data))
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setDownloadPath(this.h, path_ms)
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) ClientCertificateStore() *QWebEngineClientCertificateStore {
2025-02-01 13:45:16 +13:00
return newQWebEngineClientCertificateStore(C.QWebEngineProfile_clientCertificateStore(this.h))
2024-11-27 18:16:48 +13:00
}
func QWebEngineProfile_DefaultProfile() *QWebEngineProfile {
2025-02-01 13:45:16 +13:00
return newQWebEngineProfile(C.QWebEngineProfile_defaultProfile())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) DownloadRequested(download *QWebEngineDownloadItem) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_downloadRequested(this.h, download.cPointer())
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) OnDownloadRequested(slot func(download *QWebEngineDownloadItem)) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_connect_downloadRequested(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_downloadRequested
func miqt_exec_callback_QWebEngineProfile_downloadRequested(cb C.intptr_t, download *C.QWebEngineDownloadItem) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(download *QWebEngineDownloadItem))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := newQWebEngineDownloadItem(download)
2024-11-27 18:16:48 +13:00
gofunc(slotval1)
}
func QWebEngineProfile_Tr2(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_tr2(s_Cstring, c_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineProfile_Tr3(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_tr3(s_Cstring, c_Cstring, (C.int)(n))
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineProfile_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_trUtf82(s_Cstring, c_Cstring)
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QWebEngineProfile_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QWebEngineProfile_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
2024-11-27 18:16:48 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QWebEngineProfile) SetUseForGlobalCertificateVerification1(enabled bool) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_setUseForGlobalCertificateVerification1(this.h, (C.bool)(enabled))
2024-11-27 18:16:48 +13:00
}
func (this *QWebEngineProfile) callVirtualBase_Event(event *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineProfile_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) Onevent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) {
ok := C.QWebEngineProfile_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_event
func miqt_exec_callback_QWebEngineProfile_event(self *C.QWebEngineProfile, cb C.intptr_t, event *C.QEvent) C.bool {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QWebEngineProfile{h: self}).callVirtualBase_Event, slotval1)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineProfile) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QWebEngineProfile_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
ok := C.QWebEngineProfile_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_eventFilter
func miqt_exec_callback_QWebEngineProfile_eventFilter(self *C.QWebEngineProfile, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQObject(unsafe.Pointer(watched))
2024-11-27 18:16:48 +13:00
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
virtualReturn := gofunc((&QWebEngineProfile{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
return (C.bool)(virtualReturn)
}
func (this *QWebEngineProfile) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
ok := C.QWebEngineProfile_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_timerEvent
func miqt_exec_callback_QWebEngineProfile_timerEvent(self *C.QWebEngineProfile, cb C.intptr_t, event *C.QTimerEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineProfile{h: self}).callVirtualBase_TimerEvent, slotval1)
}
func (this *QWebEngineProfile) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
ok := C.QWebEngineProfile_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_childEvent
func miqt_exec_callback_QWebEngineProfile_childEvent(self *C.QWebEngineProfile, cb C.intptr_t, event *C.QChildEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QChildEvent), event *qt.QChildEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
2024-12-07 17:15:57 +13:00
slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event))
2024-11-27 18:16:48 +13:00
gofunc((&QWebEngineProfile{h: self}).callVirtualBase_ChildEvent, slotval1)
}
func (this *QWebEngineProfile) callVirtualBase_CustomEvent(event *qt.QEvent) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
ok := C.QWebEngineProfile_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_customEvent
func miqt_exec_callback_QWebEngineProfile_customEvent(self *C.QWebEngineProfile, cb C.intptr_t, event *C.QEvent) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
gofunc((&QWebEngineProfile{h: self}).callVirtualBase_CustomEvent, slotval1)
}
func (this *QWebEngineProfile) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebEngineProfile_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_connectNotify
func miqt_exec_callback_QWebEngineProfile_connectNotify(self *C.QWebEngineProfile, cb C.intptr_t, signal *C.QMetaMethod) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
gofunc((&QWebEngineProfile{h: self}).callVirtualBase_ConnectNotify, slotval1)
}
func (this *QWebEngineProfile) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
func (this *QWebEngineProfile) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
ok := C.QWebEngineProfile_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
if !ok {
panic("miqt: can only override virtual methods for directly constructed types")
}
2024-11-27 18:16:48 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QWebEngineProfile_disconnectNotify
func miqt_exec_callback_QWebEngineProfile_disconnectNotify(self *C.QWebEngineProfile, cb C.intptr_t, signal *C.QMetaMethod) {
2024-11-27 18:16:48 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
gofunc((&QWebEngineProfile{h: self}).callVirtualBase_DisconnectNotify, slotval1)
}
// Delete this object from C++ memory.
func (this *QWebEngineProfile) Delete() {
2025-02-01 13:45:16 +13:00
C.QWebEngineProfile_delete(this.h)
2024-11-27 18:16:48 +13:00
}
// 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 *QWebEngineProfile) GoGC() {
runtime.SetFinalizer(this, func(this *QWebEngineProfile) {
this.Delete()
runtime.KeepAlive(this.h)
})
}