From 28d5a16ffb85550a7dc19e7fe8b945dc35d8cb77 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 9 Sep 2018 12:56:36 +0200 Subject: WebProfile: save httpCacheType and persistentCookiesPolicy --- lib/web/webprofile.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/web/webprofile.h') diff --git a/lib/web/webprofile.h b/lib/web/webprofile.h index 2282afe..32b5112 100644 --- a/lib/web/webprofile.h +++ b/lib/web/webprofile.h @@ -30,9 +30,11 @@ class WebProfile : public QWebEngineProfile // QWebEngineProfile should-be properties Q_PROPERTY(QString cachePath READ cachePath WRITE setCachePath NOTIFY propertyChanged) Q_PROPERTY(QString persistentStoragePath READ persistentStoragePath WRITE setPersistentStoragePath NOTIFY propertyChanged) + Q_PROPERTY(int persistentCookiesPolicy READ persistentCookiesPolicy WRITE setPersistentCookiesPolicy NOTIFY propertyChanged) Q_PROPERTY(QString httpAcceptLanguage READ httpAcceptLanguage WRITE setHttpAcceptLanguage NOTIFY propertyChanged) Q_PROPERTY(int httpCacheMaximumSize READ httpCacheMaximumSize WRITE setHttpCacheMaximumSize NOTIFY propertyChanged) + Q_PROPERTY(int httpCacheType READ httpCacheType WRITE setHttpCacheType NOTIFY propertyChanged) Q_PROPERTY(QString httpUserAgent READ httpUserAgent WRITE setHttpUserAgent NOTIFY propertyChanged) Q_PROPERTY(bool spellCheckEnabled READ isSpellCheckEnabled WRITE setSpellCheckEnabled NOTIFY propertyChanged) @@ -78,9 +80,11 @@ public: void setCachePath(const QString &path); void setPersistentStoragePath(const QString &path); + void setPersistentCookiesPolicy(int policy); void setHttpAcceptLanguage(const QString &httpAcceptLanguage); void setHttpCacheMaximumSize(int maxSize); + void setHttpCacheType(int type); void setHttpUserAgent(const QString &userAgent); void setSpellCheckEnabled(bool enable); -- cgit v1.2.1