qtwebengine

package
v0.0.0-...-1f663c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2020 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteQQuickWebEngineProfile

func DeleteQQuickWebEngineProfile(this *QQuickWebEngineProfile)

func DeleteQQuickWebEngineScript

func DeleteQQuickWebEngineScript(this *QQuickWebEngineScript)

func Initialize

func Initialize()

func QQuickWebEngineProfile_HttpCacheTypeItemName

func QQuickWebEngineProfile_HttpCacheTypeItemName(val int) string

func QQuickWebEngineProfile_PersistentCookiesPolicyItemName

func QQuickWebEngineProfile_PersistentCookiesPolicyItemName(val int) string

func QQuickWebEngineScript_InjectionPointItemName

func QQuickWebEngineScript_InjectionPointItemName(val int) string

func QQuickWebEngineScript_ScriptWorldIdItemName

func QQuickWebEngineScript_ScriptWorldIdItemName(val int) string

Types

type QQuickWebEngineProfile

type QQuickWebEngineProfile struct {
	*qtcore.QObject
}

func NewQQuickWebEngineProfile

func NewQQuickWebEngineProfile(parent qtcore.QObject_ITF) *QQuickWebEngineProfile

func NewQQuickWebEngineProfileFromPointer

func NewQQuickWebEngineProfileFromPointer(cthis unsafe.Pointer) *QQuickWebEngineProfile

func NewQQuickWebEngineProfilep

func NewQQuickWebEngineProfilep() *QQuickWebEngineProfile

func QQuickWebEngineProfile_DefaultProfile

func QQuickWebEngineProfile_DefaultProfile() *QQuickWebEngineProfile

func (*QQuickWebEngineProfile) CachePath

func (this *QQuickWebEngineProfile) CachePath() string

func (*QQuickWebEngineProfile) CachePathChanged

func (this *QQuickWebEngineProfile) CachePathChanged()

func (*QQuickWebEngineProfile) ClearHttpCache

func (this *QQuickWebEngineProfile) ClearHttpCache()

Removes the profile's cache entries.

This function was introduced in Qt 5.7.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

See also WebEngineProfile::clearHttpCache.

func (*QQuickWebEngineProfile) CookieStore

Returns the cookie store for this profile.

func (*QQuickWebEngineProfile) DefaultProfile

func (this *QQuickWebEngineProfile) DefaultProfile() *QQuickWebEngineProfile

Returns the default profile.

The default profile uses the storage name "Default".

See also storageName().

func (*QQuickWebEngineProfile) GetCthis

func (this *QQuickWebEngineProfile) GetCthis() unsafe.Pointer

func (*QQuickWebEngineProfile) HttpAcceptLanguage

func (this *QQuickWebEngineProfile) HttpAcceptLanguage() string

func (*QQuickWebEngineProfile) HttpAcceptLanguageChanged

func (this *QQuickWebEngineProfile) HttpAcceptLanguageChanged()

func (*QQuickWebEngineProfile) HttpCacheMaximumSize

func (this *QQuickWebEngineProfile) HttpCacheMaximumSize() int

func (*QQuickWebEngineProfile) HttpCacheMaximumSizeChanged

func (this *QQuickWebEngineProfile) HttpCacheMaximumSizeChanged()

func (*QQuickWebEngineProfile) HttpCacheType

func (this *QQuickWebEngineProfile) HttpCacheType() int

func (*QQuickWebEngineProfile) HttpCacheTypeChanged

func (this *QQuickWebEngineProfile) HttpCacheTypeChanged()

func (*QQuickWebEngineProfile) HttpCacheTypeItemName

func (this *QQuickWebEngineProfile) HttpCacheTypeItemName(val int) string

func (*QQuickWebEngineProfile) HttpUserAgent

func (this *QQuickWebEngineProfile) HttpUserAgent() string

func (*QQuickWebEngineProfile) HttpUserAgentChanged

func (this *QQuickWebEngineProfile) HttpUserAgentChanged()

func (*QQuickWebEngineProfile) InstallUrlSchemeHandler

Registers a handler handler for custom URL scheme scheme in the profile.

It is necessary to first register the scheme with QWebEngineUrlScheme::registerScheme at application startup.

func (*QQuickWebEngineProfile) IsOffTheRecord

func (this *QQuickWebEngineProfile) IsOffTheRecord() bool

func (*QQuickWebEngineProfile) IsSpellCheckEnabled

func (this *QQuickWebEngineProfile) IsSpellCheckEnabled() bool

func (*QQuickWebEngineProfile) MetaObject

func (this *QQuickWebEngineProfile) MetaObject() *qtcore.QMetaObject

func (*QQuickWebEngineProfile) NewForInherit

Constructs a new profile with the parent parent.

func (*QQuickWebEngineProfile) NewForInheritp

Constructs a new profile with the parent parent.

func (*QQuickWebEngineProfile) NewFromPointer

func (*QQuickWebEngineProfile) OffTheRecordChanged

func (this *QQuickWebEngineProfile) OffTheRecordChanged()

func (*QQuickWebEngineProfile) PersistentCookiesPolicy

func (this *QQuickWebEngineProfile) PersistentCookiesPolicy() int

func (*QQuickWebEngineProfile) PersistentCookiesPolicyChanged

func (this *QQuickWebEngineProfile) PersistentCookiesPolicyChanged()

func (*QQuickWebEngineProfile) PersistentCookiesPolicyItemName

func (this *QQuickWebEngineProfile) PersistentCookiesPolicyItemName(val int) string

func (*QQuickWebEngineProfile) PersistentStoragePath

func (this *QQuickWebEngineProfile) PersistentStoragePath() string

func (*QQuickWebEngineProfile) PersistentStoragePathChanged

func (this *QQuickWebEngineProfile) PersistentStoragePathChanged()

func (*QQuickWebEngineProfile) QQuickWebEngineProfile_PTR

func (ptr *QQuickWebEngineProfile) QQuickWebEngineProfile_PTR() *QQuickWebEngineProfile

func (*QQuickWebEngineProfile) RemoveAllUrlSchemeHandlers

func (this *QQuickWebEngineProfile) RemoveAllUrlSchemeHandlers()

Removes all custom URL scheme handlers installed in the profile.

func (*QQuickWebEngineProfile) RemoveUrlScheme

func (this *QQuickWebEngineProfile) RemoveUrlScheme(scheme qtcore.QByteArray_ITF)

Removes the custom URL scheme scheme from the profile.

See also removeUrlSchemeHandler().

func (*QQuickWebEngineProfile) RemoveUrlSchemeHandler

func (this *QQuickWebEngineProfile) RemoveUrlSchemeHandler(arg0 qtwebenginecore.QWebEngineUrlSchemeHandler_ITF)

Removes the custom URL scheme handler handler from the profile.

See also removeUrlScheme().

func (*QQuickWebEngineProfile) SetCachePath

func (this *QQuickWebEngineProfile) SetCachePath(path string)

func (*QQuickWebEngineProfile) SetCthis

func (this *QQuickWebEngineProfile) SetCthis(cthis unsafe.Pointer)

func (*QQuickWebEngineProfile) SetHttpAcceptLanguage

func (this *QQuickWebEngineProfile) SetHttpAcceptLanguage(httpAcceptLanguage string)

func (*QQuickWebEngineProfile) SetHttpCacheMaximumSize

func (this *QQuickWebEngineProfile) SetHttpCacheMaximumSize(maxSize int)

func (*QQuickWebEngineProfile) SetHttpCacheType

func (this *QQuickWebEngineProfile) SetHttpCacheType(arg0 int)

func (*QQuickWebEngineProfile) SetHttpUserAgent

func (this *QQuickWebEngineProfile) SetHttpUserAgent(userAgent string)

func (*QQuickWebEngineProfile) SetOffTheRecord

func (this *QQuickWebEngineProfile) SetOffTheRecord(offTheRecord bool)

func (*QQuickWebEngineProfile) SetPersistentCookiesPolicy

func (this *QQuickWebEngineProfile) SetPersistentCookiesPolicy(arg0 int)

func (*QQuickWebEngineProfile) SetPersistentStoragePath

func (this *QQuickWebEngineProfile) SetPersistentStoragePath(path string)

func (*QQuickWebEngineProfile) SetRequestInterceptor

func (this *QQuickWebEngineProfile) SetRequestInterceptor(interceptor qtwebenginecore.QWebEngineUrlRequestInterceptor_ITF)

Registers a request interceptor singleton interceptor to intercept URL requests.

The profile does not take ownership of the pointer.

See also QWebEngineUrlRequestInterceptor.

func (*QQuickWebEngineProfile) SetSpellCheckEnabled

func (this *QQuickWebEngineProfile) SetSpellCheckEnabled(enabled bool)

func (*QQuickWebEngineProfile) SetSpellCheckLanguages

func (this *QQuickWebEngineProfile) SetSpellCheckLanguages(languages qtcore.QStringList_ITF)

func (*QQuickWebEngineProfile) SetStorageName

func (this *QQuickWebEngineProfile) SetStorageName(name string)

func (*QQuickWebEngineProfile) SpellCheckEnabledChanged

func (this *QQuickWebEngineProfile) SpellCheckEnabledChanged()

func (*QQuickWebEngineProfile) SpellCheckLanguages

func (this *QQuickWebEngineProfile) SpellCheckLanguages() *qtcore.QStringList

Returns the list of languages used by the spell checker.

This function was introduced in Qt 5.8.

Note: Getter function for property spellCheckLanguages.

See also setSpellCheckLanguages().

func (*QQuickWebEngineProfile) SpellCheckLanguagesChanged

func (this *QQuickWebEngineProfile) SpellCheckLanguagesChanged()

func (*QQuickWebEngineProfile) StorageName

func (this *QQuickWebEngineProfile) StorageName() string

func (*QQuickWebEngineProfile) StorageNameChanged

func (this *QQuickWebEngineProfile) StorageNameChanged()

func (*QQuickWebEngineProfile) UrlSchemeHandler

Returns the custom URL scheme handler register for the URL scheme scheme.

type QQuickWebEngineProfile_ITF

type QQuickWebEngineProfile_ITF interface {
	qtcore.QObject_ITF
	QQuickWebEngineProfile_PTR() *QQuickWebEngineProfile
}

type QQuickWebEngineProfile__HttpCacheType

type QQuickWebEngineProfile__HttpCacheType = int

This enum describes the HTTP cache type:

const QQuickWebEngineProfile__DiskHttpCache QQuickWebEngineProfile__HttpCacheType = 1

Use a disk cache. This is the default if off-the-record is not set. Falls back to MemoryHttpCache if off-the-record is set.

const QQuickWebEngineProfile__MemoryHttpCache QQuickWebEngineProfile__HttpCacheType = 0

Use an in-memory cache. This is the default if off-the-record is set.

const QQuickWebEngineProfile__NoCache QQuickWebEngineProfile__HttpCacheType = 2

type QQuickWebEngineProfile__PersistentCookiesPolicy

type QQuickWebEngineProfile__PersistentCookiesPolicy = int

This enum describes policy for cookie persistency:

const QQuickWebEngineProfile__AllowPersistentCookies QQuickWebEngineProfile__PersistentCookiesPolicy = 1

Cookies marked persistent are saved to and restored from disk, whereas session cookies are only stored to disk for crash recovery. This is the default setting.

const QQuickWebEngineProfile__ForcePersistentCookies QQuickWebEngineProfile__PersistentCookiesPolicy = 2

Both session and persistent cookies are saved to and restored from disk.

const QQuickWebEngineProfile__NoPersistentCookies QQuickWebEngineProfile__PersistentCookiesPolicy = 0

Both session and persistent cookies are stored in memory. This is the only setting possible if off-the-record is set or no persistent data path is available.

type QQuickWebEngineScript

type QQuickWebEngineScript struct {
	*qtcore.QObject
}

func NewQQuickWebEngineScript

func NewQQuickWebEngineScript(parent qtcore.QObject_ITF) *QQuickWebEngineScript

func NewQQuickWebEngineScriptFromPointer

func NewQQuickWebEngineScriptFromPointer(cthis unsafe.Pointer) *QQuickWebEngineScript

func NewQQuickWebEngineScriptp

func NewQQuickWebEngineScriptp() *QQuickWebEngineScript

func (*QQuickWebEngineScript) GetCthis

func (this *QQuickWebEngineScript) GetCthis() unsafe.Pointer

func (*QQuickWebEngineScript) InheritTimerEvent

func (this *QQuickWebEngineScript) InheritTimerEvent(f func(e *qtcore.QTimerEvent))

void timerEvent(QTimerEvent *)

func (*QQuickWebEngineScript) InjectionPoint

func (this *QQuickWebEngineScript) InjectionPoint() int

func (*QQuickWebEngineScript) InjectionPointChanged

func (this *QQuickWebEngineScript) InjectionPointChanged(injectionPoint int)

func (*QQuickWebEngineScript) InjectionPointItemName

func (this *QQuickWebEngineScript) InjectionPointItemName(val int) string

func (*QQuickWebEngineScript) MetaObject

func (this *QQuickWebEngineScript) MetaObject() *qtcore.QMetaObject

func (*QQuickWebEngineScript) Name

func (this *QQuickWebEngineScript) Name() string

func (*QQuickWebEngineScript) NameChanged

func (this *QQuickWebEngineScript) NameChanged(name string)

func (*QQuickWebEngineScript) NewForInherit

Constructs a new QQuickWebEngineScript with the parent parent.

func (*QQuickWebEngineScript) NewForInheritp

func (*QQuickWebEngineScript) NewForInheritp() *QQuickWebEngineScript

Constructs a new QQuickWebEngineScript with the parent parent.

func (*QQuickWebEngineScript) NewFromPointer

func (*QQuickWebEngineScript) QQuickWebEngineScript_PTR

func (ptr *QQuickWebEngineScript) QQuickWebEngineScript_PTR() *QQuickWebEngineScript

func (*QQuickWebEngineScript) RunOnSubframes

func (this *QQuickWebEngineScript) RunOnSubframes() bool

func (*QQuickWebEngineScript) RunOnSubframesChanged

func (this *QQuickWebEngineScript) RunOnSubframesChanged(on bool)

func (*QQuickWebEngineScript) ScriptWorldIdItemName

func (this *QQuickWebEngineScript) ScriptWorldIdItemName(val int) string

func (*QQuickWebEngineScript) SetCthis

func (this *QQuickWebEngineScript) SetCthis(cthis unsafe.Pointer)

func (*QQuickWebEngineScript) SetInjectionPoint

func (this *QQuickWebEngineScript) SetInjectionPoint(injectionPoint int)

func (*QQuickWebEngineScript) SetName

func (this *QQuickWebEngineScript) SetName(name string)

func (*QQuickWebEngineScript) SetRunOnSubframes

func (this *QQuickWebEngineScript) SetRunOnSubframes(on bool)

func (*QQuickWebEngineScript) SetSourceCode

func (this *QQuickWebEngineScript) SetSourceCode(code string)

func (*QQuickWebEngineScript) SetSourceUrl

func (this *QQuickWebEngineScript) SetSourceUrl(url qtcore.QUrl_ITF)

func (*QQuickWebEngineScript) SetWorldId

func (this *QQuickWebEngineScript) SetWorldId(scriptWorldId int)

func (*QQuickWebEngineScript) SourceCode

func (this *QQuickWebEngineScript) SourceCode() string

func (*QQuickWebEngineScript) SourceCodeChanged

func (this *QQuickWebEngineScript) SourceCodeChanged(code string)

func (*QQuickWebEngineScript) SourceUrl

func (this *QQuickWebEngineScript) SourceUrl() *qtcore.QUrl

func (*QQuickWebEngineScript) SourceUrlChanged

func (this *QQuickWebEngineScript) SourceUrlChanged(url qtcore.QUrl_ITF)

func (*QQuickWebEngineScript) TimerEvent

func (this *QQuickWebEngineScript) TimerEvent(e qtcore.QTimerEvent_ITF)

func (*QQuickWebEngineScript) ToString

func (this *QQuickWebEngineScript) ToString() string

Returns the script object as string.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QQuickWebEngineScript) WorldId

func (this *QQuickWebEngineScript) WorldId() int

func (*QQuickWebEngineScript) WorldIdChanged

func (this *QQuickWebEngineScript) WorldIdChanged(scriptWorldId int)

type QQuickWebEngineScript_ITF

type QQuickWebEngineScript_ITF interface {
	qtcore.QObject_ITF
	QQuickWebEngineScript_PTR() *QQuickWebEngineScript
}

type QQuickWebEngineScript__InjectionPoint

type QQuickWebEngineScript__InjectionPoint = int

The point in the loading process at which the script will be executed.

const QQuickWebEngineScript__Deferred QQuickWebEngineScript__InjectionPoint = 0
const QQuickWebEngineScript__DocumentCreation QQuickWebEngineScript__InjectionPoint = 2

The script will be executed as soon as the document is created. This is not suitable for any DOM operation.

const QQuickWebEngineScript__DocumentReady QQuickWebEngineScript__InjectionPoint = 1

The script will run as soon as the DOM is ready. This is equivalent to the DOMContentLoaded event firing in JavaScript.

type QQuickWebEngineScript__ScriptWorldId

type QQuickWebEngineScript__ScriptWorldId = int

The world ID defining which isolated world the script is executed in. Besides these predefined IDs custom IDs can be used, but must be integers between 0 and 256.

const QQuickWebEngineScript__ApplicationWorld QQuickWebEngineScript__ScriptWorldId = 1

The default isolated world used for application level functionality implemented in JavaScript.

const QQuickWebEngineScript__MainWorld QQuickWebEngineScript__ScriptWorldId = 0

The world used by the page's web contents. It can be useful in order to expose custom functionality to web contents in certain scenarios.

const QQuickWebEngineScript__UserWorld QQuickWebEngineScript__ScriptWorldId = 2

The first isolated world to be used by scripts set by users if the application is not making use of more worlds. As a rule of thumb, if that functionality is exposed to the application users, each individual script should probably get its own isolated world.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL