QtWebKit/qwebsettings.h Source File
Go to the documentation of this file.
20 #ifndef QWEBSETTINGS_H
21 #define QWEBSETTINGS_H
35 class QWebPluginDatabase;
36 class QWebSettingsPrivate;
66 #if defined(QT_DEPRECATED) || defined(qdoc)
67 LocalStorageDatabaseEnabled = LocalStorageEnabled,
80 HyperlinkAuditingEnabled
90 SearchCancelButtonPressedGraphic
101 void setFontFamily(FontFamily which,
const QString &family);
102 QString fontFamily(FontFamily which)
const;
103 void resetFontFamily(FontFamily which);
105 void setFontSize(FontSize
type,
int size);
106 int fontSize(FontSize
type)
const;
107 void resetFontSize(FontSize
type);
109 void setAttribute(WebAttribute attr,
bool on);
110 bool testAttribute(WebAttribute attr)
const;
111 void resetAttribute(WebAttribute attr);
114 QUrl userStyleSheetUrl()
const;
116 void setDefaultTextEncoding(
const QString &encoding);
117 QString defaultTextEncoding()
const;
120 static QString iconDatabasePath();
121 static void clearIconDatabase();
122 static QIcon iconForUrl(
const QUrl &url);
126 static void setWebGraphic(WebGraphic
type,
const QPixmap &graphic);
129 static void setMaximumPagesInCache(
int pages);
130 static int maximumPagesInCache();
131 static void setObjectCacheCapacities(
int cacheMinDeadCapacity,
int cacheMaxDead,
int totalCapacity);
133 static void setOfflineStoragePath(
const QString& path);
134 static QString offlineStoragePath();
135 static void setOfflineStorageDefaultQuota(
qint64 maximumSize);
136 static qint64 offlineStorageDefaultQuota();
138 static void setOfflineWebApplicationCachePath(
const QString& path);
139 static QString offlineWebApplicationCachePath();
140 static void setOfflineWebApplicationCacheQuota(
qint64 maximumSize);
141 static qint64 offlineWebApplicationCacheQuota();
143 void setLocalStoragePath(
const QString& path);
144 QString localStoragePath()
const;
146 static void clearMemoryCaches();
148 static void enablePersistentStorage(
const QString& path =
QString());
150 inline QWebSettingsPrivate*
handle()
const {
return d; }
153 friend class QWebPagePrivate;
154 friend class QWebSettingsPrivate;
159 QWebSettings(
WebCore::Settings *settings);
162 QWebSettingsPrivate *d;
GLuint GLuint GLsizei GLenum type
#define QT_BEGIN_NAMESPACE
QWebSettingsPrivate * handle() const