summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginesettings_p.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2014-05-15 16:51:50 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-12 16:53:18 +0200
commit955a8d8a05d494f74238565d1a60fa6bd29c4f2b (patch)
treef8f49f95fe5ac2d80d90cdb4bd84a80bf7bf597b /src/webenginewidgets/api/qwebenginesettings_p.h
parentd1ddc17b0fcb9ce809a81ddd71d0bc864b2738c9 (diff)
Widgets settings implementation
Implementing what is already available, namely the WebAttributes, font preferences and default text encoding, as well as a slightly different take on privateBrowsing. Change-Id: I128f060a4661d19aa1c9c4d6daae1f80fb33204b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginesettings_p.h')
-rw-r--r--src/webenginewidgets/api/qwebenginesettings_p.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginesettings_p.h b/src/webenginewidgets/api/qwebenginesettings_p.h
new file mode 100644
index 000000000..96fa9e27b
--- /dev/null
+++ b/src/webenginewidgets/api/qwebenginesettings_p.h
@@ -0,0 +1,70 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the QtWebEngine module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QWEBENGINESETTINGS_P_H
+#define QWEBENGINESETTINGS_P_H
+
+#include "web_engine_settings.h"
+#include <QtCore/qcompilerdetection.h>
+#include <QtCore/QScopedPointer>
+
+QT_BEGIN_NAMESPACE
+
+class QWebEngineSettingsPrivate : public WebEngineSettingsDelegate {
+
+public:
+ QWebEngineSettingsPrivate();
+ QWebEngineSettingsPrivate(WebContentsAdapter *adapter);
+
+ void initDefaults();
+ void apply() Q_DECL_OVERRIDE;
+ WebEngineSettings *fallbackSettings() const Q_DECL_OVERRIDE;
+
+ QScopedPointer<WebEngineSettings> coreSettings;
+
+ // This should only contain things specific to WebEngineWidgets which we don't want exposed to the core layer.
+ // For instance, the icon database would most likely be implemented at that level.
+
+};
+
+QT_END_NAMESPACE
+
+#endif // QWEBENGINESETTINGS_P_H