qwebpreferences_p_p.h [plain text]
#ifndef qwebpreferences_p_p_h
#define qwebpreferences_p_p_h
#include "WKPreferences.h"
class QQuickWebViewPrivate;
class QWebPreferencesPrivate {
public:
enum WebAttribute {
AutoLoadImages,
FullScreenEnabled,
JavascriptEnabled,
PluginsEnabled,
OfflineWebApplicationCacheEnabled,
LocalStorageEnabled,
XSSAuditingEnabled,
FrameFlatteningEnabled,
PrivateBrowsingEnabled,
DnsPrefetchEnabled,
DeveloperExtrasEnabled
};
enum FontFamily {
StandardFont,
FixedFont,
SerifFont,
SansSerifFont,
CursiveFont,
FantasyFont
};
enum FontSizeType {
MinimumFontSize,
DefaultFontSize,
DefaultFixedFontSize
};
static QWebPreferences* createPreferences(QQuickWebViewPrivate*);
void setAttribute(WebAttribute attr, bool enable);
bool testAttribute(WebAttribute attr) const;
void initializeDefaultFontSettings();
void setFontFamily(FontFamily which, const QString& family);
QString fontFamily(FontFamily which) const;
void setFontSize(FontSizeType type, unsigned size);
unsigned fontSize(FontSizeType type) const;
WKPreferencesRef preferencesRef() const;
QQuickWebViewPrivate* webViewPrivate;
static QWebPreferencesPrivate* get(QWebPreferences*);
};
#endif // qwebpreferences_p_p_h