com.trolltech.qt.webkit
Class QWebHistoryInterface
java.lang.Object
com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QObject
com.trolltech.qt.webkit.QWebHistoryInterface
- All Implemented Interfaces:
- QtJambiInterface
public abstract class QWebHistoryInterface
- extends QObject
The QWebHistoryInterface class provides an interface to implement link history. The QWebHistoryInterface is an interface that can be used to implement link history. It contains two pure virtual methods that are called by the WebKit engine. addHistoryEntry()
is used to add pages that have been visited to the interface, while historyContains()
is used to query whether this page has been visited by the user.
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
currentSender |
Method Summary |
abstract void |
addHistoryEntry(java.lang.String url)
Called by WebKit to add another url to the list of visited pages. |
static QWebHistoryInterface |
defaultInterface()
Returns the default interface that will be used by WebKit. |
abstract boolean |
historyContains(java.lang.String url)
Called by the WebKit engine to query whether a certain url has been visited by the user already. |
static void |
setDefaultInterface(QWebHistoryInterface defaultInterface)
Sets a new default interface, defaultInterface, that will be used by all of WebKit for managing history. |
Methods inherited from class com.trolltech.qt.core.QObject |
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QWebHistoryInterface
public QWebHistoryInterface()
- Constructs a new QWebHistoryInterface with parent parent.
QWebHistoryInterface
public QWebHistoryInterface(QObject parent)
- Constructs a new QWebHistoryInterface with parent parent.
addHistoryEntry
public abstract void addHistoryEntry(java.lang.String url)
- Called by WebKit to add another url to the list of visited pages.
historyContains
public abstract boolean historyContains(java.lang.String url)
- Called by the WebKit engine to query whether a certain url has been visited by the user already. Returns true if the url is part of the history of visited links; otherwise returns false.
defaultInterface
public static QWebHistoryInterface defaultInterface()
- Returns the default interface that will be used by WebKit. If no default interface has been set, QtWebkit will not track history.
- See also:
setDefaultInterface()
.
setDefaultInterface
public static void setDefaultInterface(QWebHistoryInterface defaultInterface)
- Sets a new default interface, defaultInterface, that will be used by all of WebKit for managing history.
If an interface without a parent has already been set, the old interface will be deleted. When the application exists QWebHistoryInterface will automatically delete the defaultInterface if it does not have a parent.
- See also:
defaultInterface()
.