Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.qt.webengine.core.QWebEngineProfile Maven / Gradle / Ivy
Go to download
Provides public API shared by both modules {@code qtjambi.webenginequick} and {@code qtjambi.webenginewidgets}.
package io.qt.webengine.core;
/**
* Web engine profile shared by multiple pages
* Java wrapper for Qt class QWebEngineProfile
*/
public class QWebEngineProfile extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private java.util.Collection __rcUrlSchemeHandler;
@io.qt.QtPropertyMember(enabled=false)
private Object __rcUrlRequestInterceptor = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineProfile.class);
/**
* Java wrapper for Qt enum QWebEngineProfile::HttpCacheType
*/
public enum HttpCacheType implements io.qt.QtEnumerator {
MemoryHttpCache(0),
DiskHttpCache(1),
NoCache(2);
private HttpCacheType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static HttpCacheType resolve(int value) {
switch (value) {
case 0: return MemoryHttpCache;
case 1: return DiskHttpCache;
case 2: return NoCache;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QWebEngineProfile::PersistentCookiesPolicy
*/
public enum PersistentCookiesPolicy implements io.qt.QtEnumerator {
NoPersistentCookies(0),
AllowPersistentCookies(1),
ForcePersistentCookies(2);
private PersistentCookiesPolicy(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static PersistentCookiesPolicy resolve(int value) {
switch (value) {
case 0: return NoPersistentCookies;
case 1: return AllowPersistentCookies;
case 2: return ForcePersistentCookies;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineProfile::downloadRequested(QWebEngineDownloadRequest*)
*/
public final Signal1 downloadRequested = new Signal1<>();
/**
* Overloaded constructor for {@link #QWebEngineProfile(io.qt.core.QObject)}
* with parent = null
.
*/
public QWebEngineProfile() {
this((io.qt.core.QObject)null);
}
/**
* See QWebEngineProfile::QWebEngineProfile(QObject*)
*/
public QWebEngineProfile(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QWebEngineProfile instance, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QWebEngineProfile(java.lang.String, io.qt.core.QObject)}
* with parent = null
.
*/
public QWebEngineProfile(java.lang.String name) {
this(name, (io.qt.core.QObject)null);
}
/**
* See QWebEngineProfile::QWebEngineProfile(QString,QObject*)
*/
public QWebEngineProfile(java.lang.String name, io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, name, parent);
}
private native static void initialize_native(QWebEngineProfile instance, java.lang.String name, io.qt.core.QObject parent);
/**
* See QWebEngineProfile::cachePath()const
*/
@io.qt.QtUninvokable
public final java.lang.String cachePath(){
return cachePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String cachePath_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::clearAllVisitedLinks()
*/
@io.qt.QtUninvokable
public final void clearAllVisitedLinks(){
clearAllVisitedLinks_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clearAllVisitedLinks_native(long __this__nativeId);
/**
* See QWebEngineProfile::clearHttpCache()
*/
@io.qt.QtUninvokable
public final void clearHttpCache(){
clearHttpCache_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clearHttpCache_native(long __this__nativeId);
/**
* See QWebEngineProfile::clearVisitedLinks(QList<QUrl>)
*/
@io.qt.QtUninvokable
public final void clearVisitedLinks(java.util.Collection urls){
clearVisitedLinks_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), urls);
}
@io.qt.QtUninvokable
private native void clearVisitedLinks_native_cref_QList(long __this__nativeId, java.util.Collection urls);
/**
* See QWebEngineProfile::clientCertificateStore()
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineClientCertificateStore clientCertificateStore(){
return clientCertificateStore_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.webengine.core.QWebEngineClientCertificateStore clientCertificateStore_native(long __this__nativeId);
/**
* See QWebEngineProfile::cookieStore()
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineCookieStore cookieStore(){
return cookieStore_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.webengine.core.QWebEngineCookieStore cookieStore_native(long __this__nativeId);
/**
* See QWebEngineProfile::downloadPath()const
*/
@io.qt.QtUninvokable
public final java.lang.String downloadPath(){
return downloadPath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String downloadPath_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::httpAcceptLanguage()const
*/
@io.qt.QtUninvokable
public final java.lang.String httpAcceptLanguage(){
return httpAcceptLanguage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String httpAcceptLanguage_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::httpCacheMaximumSize()const
*/
@io.qt.QtUninvokable
public final int httpCacheMaximumSize(){
return httpCacheMaximumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int httpCacheMaximumSize_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::httpCacheType()const
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineProfile.HttpCacheType httpCacheType(){
return io.qt.webengine.core.QWebEngineProfile.HttpCacheType.resolve(httpCacheType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int httpCacheType_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::httpUserAgent()const
*/
@io.qt.QtUninvokable
public final java.lang.String httpUserAgent(){
return httpUserAgent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String httpUserAgent_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::installUrlSchemeHandler(QByteArray,QWebEngineUrlSchemeHandler*)
*/
@io.qt.QtUninvokable
public final void installUrlSchemeHandler(io.qt.core.QByteArray scheme, io.qt.webengine.core.QWebEngineUrlSchemeHandler arg__2){
installUrlSchemeHandler_native_cref_QByteArray_QWebEngineUrlSchemeHandler_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scheme), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2));
if (arg__2 != null) {
if(__rcUrlSchemeHandler==null)
__rcUrlSchemeHandler = QtJambi_LibraryUtilities.internal.newRCList();
__rcUrlSchemeHandler.add(arg__2);
}
}
@io.qt.QtUninvokable
private native void installUrlSchemeHandler_native_cref_QByteArray_QWebEngineUrlSchemeHandler_ptr(long __this__nativeId, long scheme, long arg__2);
/**
* See QWebEngineProfile::isOffTheRecord()const
*/
@io.qt.QtUninvokable
public final boolean isOffTheRecord(){
return isOffTheRecord_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isOffTheRecord_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::isSpellCheckEnabled()const
*/
@io.qt.QtUninvokable
public final boolean isSpellCheckEnabled(){
return isSpellCheckEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isSpellCheckEnabled_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::persistentCookiesPolicy()const
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineProfile.PersistentCookiesPolicy persistentCookiesPolicy(){
return io.qt.webengine.core.QWebEngineProfile.PersistentCookiesPolicy.resolve(persistentCookiesPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int persistentCookiesPolicy_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::persistentStoragePath()const
*/
@io.qt.QtUninvokable
public final java.lang.String persistentStoragePath(){
return persistentStoragePath_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String persistentStoragePath_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::removeAllUrlSchemeHandlers()
*/
@io.qt.QtUninvokable
public final void removeAllUrlSchemeHandlers(){
removeAllUrlSchemeHandlers_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void removeAllUrlSchemeHandlers_native(long __this__nativeId);
/**
* See QWebEngineProfile::removeUrlScheme(QByteArray)
*/
@io.qt.QtUninvokable
public final void removeUrlScheme(io.qt.core.QByteArray scheme){
removeUrlScheme_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scheme));
}
@io.qt.QtUninvokable
private native void removeUrlScheme_native_cref_QByteArray(long __this__nativeId, long scheme);
/**
* See QWebEngineProfile::removeUrlSchemeHandler(QWebEngineUrlSchemeHandler*)
*/
@io.qt.QtUninvokable
public final void removeUrlSchemeHandler(io.qt.webengine.core.QWebEngineUrlSchemeHandler arg__1){
removeUrlSchemeHandler_native_QWebEngineUrlSchemeHandler_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
if (arg__1 != null) {
while (__rcUrlSchemeHandler != null && __rcUrlSchemeHandler.remove(arg__1)) ;
}
}
@io.qt.QtUninvokable
private native void removeUrlSchemeHandler_native_QWebEngineUrlSchemeHandler_ptr(long __this__nativeId, long arg__1);
/**
* See QWebEngineProfile::scripts()const
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineScriptCollection scripts(){
return scripts_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.webengine.core.QWebEngineScriptCollection scripts_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::setCachePath(QString)
*/
@io.qt.QtUninvokable
public final void setCachePath(java.lang.String path){
setCachePath_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@io.qt.QtUninvokable
private native void setCachePath_native_cref_QString(long __this__nativeId, java.lang.String path);
/**
* See QWebEngineProfile::setDownloadPath(QString)
*/
@io.qt.QtUninvokable
public final void setDownloadPath(java.lang.String path){
setDownloadPath_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@io.qt.QtUninvokable
private native void setDownloadPath_native_cref_QString(long __this__nativeId, java.lang.String path);
/**
* See QWebEngineProfile::setHttpAcceptLanguage(QString)
*/
@io.qt.QtUninvokable
public final void setHttpAcceptLanguage(java.lang.String httpAcceptLanguage){
setHttpAcceptLanguage_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), httpAcceptLanguage);
}
@io.qt.QtUninvokable
private native void setHttpAcceptLanguage_native_cref_QString(long __this__nativeId, java.lang.String httpAcceptLanguage);
/**
* See QWebEngineProfile::setHttpCacheMaximumSize(int)
*/
@io.qt.QtUninvokable
public final void setHttpCacheMaximumSize(int maxSize){
setHttpCacheMaximumSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), maxSize);
}
@io.qt.QtUninvokable
private native void setHttpCacheMaximumSize_native_int(long __this__nativeId, int maxSize);
/**
* See QWebEngineProfile::setHttpCacheType(QWebEngineProfile::HttpCacheType)
*/
@io.qt.QtUninvokable
public final void setHttpCacheType(io.qt.webengine.core.QWebEngineProfile.HttpCacheType arg__1){
setHttpCacheType_native_QWebEngineProfile_HttpCacheType(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native void setHttpCacheType_native_QWebEngineProfile_HttpCacheType(long __this__nativeId, int arg__1);
/**
* See QWebEngineProfile::setHttpUserAgent(QString)
*/
@io.qt.QtUninvokable
public final void setHttpUserAgent(java.lang.String userAgent){
setHttpUserAgent_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), userAgent);
}
@io.qt.QtUninvokable
private native void setHttpUserAgent_native_cref_QString(long __this__nativeId, java.lang.String userAgent);
/**
* See QWebEngineProfile::setNotificationPresenter(std::function<void(std::unique_ptr<QWebEngineNotification>)>)
*/
@io.qt.QtUninvokable
public final void setNotificationPresenter(java.util.function.Consumer notificationPresenter){
setNotificationPresenter_native_QWebEngineProfile_NotificationPresenter(QtJambi_LibraryUtilities.internal.nativeId(this), notificationPresenter);
}
@io.qt.QtUninvokable
private native void setNotificationPresenter_native_QWebEngineProfile_NotificationPresenter(long __this__nativeId, java.util.function.Consumer notificationPresenter);
/**
* See QWebEngineProfile::setPersistentCookiesPolicy(QWebEngineProfile::PersistentCookiesPolicy)
*/
@io.qt.QtUninvokable
public final void setPersistentCookiesPolicy(io.qt.webengine.core.QWebEngineProfile.PersistentCookiesPolicy arg__1){
setPersistentCookiesPolicy_native_QWebEngineProfile_PersistentCookiesPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native void setPersistentCookiesPolicy_native_QWebEngineProfile_PersistentCookiesPolicy(long __this__nativeId, int arg__1);
/**
* See QWebEngineProfile::setPersistentStoragePath(QString)
*/
@io.qt.QtUninvokable
public final void setPersistentStoragePath(java.lang.String path){
setPersistentStoragePath_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), path);
}
@io.qt.QtUninvokable
private native void setPersistentStoragePath_native_cref_QString(long __this__nativeId, java.lang.String path);
/**
* See QWebEngineProfile::setSpellCheckEnabled(bool)
*/
@io.qt.QtUninvokable
public final void setSpellCheckEnabled(boolean enabled){
setSpellCheckEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setSpellCheckEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* See QWebEngineProfile::setSpellCheckLanguages(QStringList)
*/
@io.qt.QtUninvokable
public final void setSpellCheckLanguages(java.util.Collection languages){
setSpellCheckLanguages_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), languages);
}
@io.qt.QtUninvokable
private native void setSpellCheckLanguages_native_cref_QStringList(long __this__nativeId, java.util.Collection languages);
/**
* See QWebEngineProfile::setUrlRequestInterceptor(QWebEngineUrlRequestInterceptor*)
*/
@io.qt.QtUninvokable
public final void setUrlRequestInterceptor(io.qt.webengine.core.QWebEngineUrlRequestInterceptor interceptor){
setUrlRequestInterceptor_native_QWebEngineUrlRequestInterceptor_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(interceptor));
__rcUrlRequestInterceptor = interceptor;
}
@io.qt.QtUninvokable
private native void setUrlRequestInterceptor_native_QWebEngineUrlRequestInterceptor_ptr(long __this__nativeId, long interceptor);
/**
* See QWebEngineProfile::settings()const
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineSettings settings(){
return settings_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.webengine.core.QWebEngineSettings settings_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::spellCheckLanguages()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList spellCheckLanguages(){
return spellCheckLanguages_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList spellCheckLanguages_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::storageName()const
*/
@io.qt.QtUninvokable
public final java.lang.String storageName(){
return storageName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String storageName_native_constfct(long __this__nativeId);
/**
* See QWebEngineProfile::urlSchemeHandler(QByteArray)const
*/
@io.qt.QtUninvokable
public final io.qt.webengine.core.QWebEngineUrlSchemeHandler urlSchemeHandler(io.qt.core.QByteArray arg__1){
return urlSchemeHandler_native_cref_QByteArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native io.qt.webengine.core.QWebEngineUrlSchemeHandler urlSchemeHandler_native_cref_QByteArray_constfct(long __this__nativeId, long arg__1);
/**
* See QWebEngineProfile::visitedLinksContainsUrl(QUrl)const
*/
@io.qt.QtUninvokable
public final boolean visitedLinksContainsUrl(io.qt.core.QUrl url){
return visitedLinksContainsUrl_native_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url));
}
@io.qt.QtUninvokable
private native boolean visitedLinksContainsUrl_native_cref_QUrl_constfct(long __this__nativeId, long url);
/**
* See QWebEngineProfile::defaultProfile()
*/
public native static io.qt.webengine.core.QWebEngineProfile defaultProfile();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QWebEngineProfile(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QWebEngineProfile(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QWebEngineProfile instance, QDeclarativeConstructor constructor);
}