Changeset View
Changeset View
Standalone View
Standalone View
webenginepart/src/settings/webenginesettings.cpp
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
98 | bool m_allowTabulation : 1; | 98 | bool m_allowTabulation : 1; | ||
99 | bool m_autoSpellCheck : 1; | 99 | bool m_autoSpellCheck : 1; | ||
100 | bool m_adFilterEnabled : 1; | 100 | bool m_adFilterEnabled : 1; | ||
101 | bool m_hideAdsEnabled : 1; | 101 | bool m_hideAdsEnabled : 1; | ||
102 | bool m_jsPopupBlockerPassivePopup : 1; | 102 | bool m_jsPopupBlockerPassivePopup : 1; | ||
103 | bool m_accessKeysEnabled : 1; | 103 | bool m_accessKeysEnabled : 1; | ||
104 | bool m_zoomTextOnly : 1; | 104 | bool m_zoomTextOnly : 1; | ||
105 | bool m_useCookieJar : 1; | 105 | bool m_useCookieJar : 1; | ||
106 | bool m_acceptCrossDomainCookies : 1; | ||||
106 | bool m_bAutoRefreshPage: 1; | 107 | bool m_bAutoRefreshPage: 1; | ||
107 | bool m_bEnableFavicon:1; | 108 | bool m_bEnableFavicon:1; | ||
108 | bool m_disableInternalPluginHandling:1; | 109 | bool m_disableInternalPluginHandling:1; | ||
109 | bool m_offerToSaveWebSitePassword:1; | 110 | bool m_offerToSaveWebSitePassword:1; | ||
110 | bool m_loadPluginsOnDemand:1; | 111 | bool m_loadPluginsOnDemand:1; | ||
111 | bool m_enableLocalStorage:1; | 112 | bool m_enableLocalStorage:1; | ||
112 | bool m_enableOfflineStorageDb:1; | 113 | bool m_enableOfflineStorageDb:1; | ||
113 | bool m_enableOfflineWebAppCache:1; | 114 | bool m_enableOfflineWebAppCache:1; | ||
▲ Show 20 Lines • Show All 1056 Lines • ▼ Show 20 Line(s) | 1170 | { | |||
1170 | return d->m_jsPopupBlockerPassivePopup; | 1171 | return d->m_jsPopupBlockerPassivePopup; | ||
1171 | } | 1172 | } | ||
1172 | 1173 | | |||
1173 | bool WebEngineSettings::isCookieJarEnabled() const | 1174 | bool WebEngineSettings::isCookieJarEnabled() const | ||
1174 | { | 1175 | { | ||
1175 | return d->m_useCookieJar; | 1176 | return d->m_useCookieJar; | ||
1176 | } | 1177 | } | ||
1177 | 1178 | | |||
1179 | bool WebEngineSettings::acceptCrossDomainCookies() const | ||||
1180 | { | ||||
1181 | return d->m_acceptCrossDomainCookies; | ||||
1182 | } | ||||
1183 | | ||||
1184 | | ||||
1178 | // Password storage... | 1185 | // Password storage... | ||
1179 | static KConfigGroup nonPasswordStorableSitesCg(KSharedConfig::Ptr& configPtr) | 1186 | static KConfigGroup nonPasswordStorableSitesCg(KSharedConfig::Ptr& configPtr) | ||
1180 | { | 1187 | { | ||
1181 | if (!configPtr) { | 1188 | if (!configPtr) { | ||
1182 | configPtr = KSharedConfig::openConfig(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("khtml/formcompletions")), KConfig::NoGlobals); | 1189 | configPtr = KSharedConfig::openConfig(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("khtml/formcompletions")), KConfig::NoGlobals); | ||
1183 | } | 1190 | } | ||
1184 | 1191 | | |||
1185 | return KConfigGroup(configPtr, "NonPasswordStorableSites"); | 1192 | return KConfigGroup(configPtr, "NonPasswordStorableSites"); | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 1247 | { | |||
1252 | d->nonPasswordStorableSites.reset(); | 1259 | d->nonPasswordStorableSites.reset(); | ||
1253 | } | 1260 | } | ||
1254 | 1261 | | |||
1255 | void WebEngineSettings::initCookieJarSettings() | 1262 | void WebEngineSettings::initCookieJarSettings() | ||
1256 | { | 1263 | { | ||
1257 | KSharedConfig::Ptr cookieCfgPtr = KSharedConfig::openConfig(QStringLiteral("kcookiejarrc"), KConfig::NoGlobals); | 1264 | KSharedConfig::Ptr cookieCfgPtr = KSharedConfig::openConfig(QStringLiteral("kcookiejarrc"), KConfig::NoGlobals); | ||
1258 | KConfigGroup cookieCfg ( cookieCfgPtr, "Cookie Policy"); | 1265 | KConfigGroup cookieCfg ( cookieCfgPtr, "Cookie Policy"); | ||
1259 | d->m_useCookieJar = cookieCfg.readEntry("Cookies", false); | 1266 | d->m_useCookieJar = cookieCfg.readEntry("Cookies", false); | ||
1267 | d->m_acceptCrossDomainCookies = !cookieCfg.readEntry("RejectCrossDomainCookies", true); | ||||
1260 | } | 1268 | } | ||
1261 | 1269 | | |||
1262 | void WebEngineSettings::initNSPluginSettings() | 1270 | void WebEngineSettings::initNSPluginSettings() | ||
1263 | { | 1271 | { | ||
1264 | KSharedConfig::Ptr cookieCfgPtr = KSharedConfig::openConfig(QStringLiteral("kcmnspluginrc"), KConfig::NoGlobals); | 1272 | KSharedConfig::Ptr cookieCfgPtr = KSharedConfig::openConfig(QStringLiteral("kcmnspluginrc"), KConfig::NoGlobals); | ||
1265 | KConfigGroup cookieCfg ( cookieCfgPtr, "Misc"); | 1273 | KConfigGroup cookieCfg ( cookieCfgPtr, "Misc"); | ||
1266 | d->m_loadPluginsOnDemand = cookieCfg.readEntry("demandLoad", false); | 1274 | d->m_loadPluginsOnDemand = cookieCfg.readEntry("demandLoad", false); | ||
1267 | } | 1275 | } | ||
Show All 9 Lines |