com.trolltech.qt.webkit
Class QWebHistoryItem
java.lang.Object
com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.webkit.QWebHistoryItem
- All Implemented Interfaces:
- QtJambiInterface, java.lang.Cloneable
public class QWebHistoryItem
- extends QtJambiObject
- implements java.lang.Cloneable
The QWebHistoryItem
class represents one item in the history of a QWebPage
Each QWebHistoryItem
instance represents an entry in the history stack of a Web page, containing information about the page, its location, and when it was last visited.
The following table shows the properties of the page held by the history item, and the functions used to access them.
Function | Description |
---|
title() | The page title. |
url() | The location of the page. |
originalUrl() | The URL used to access the page. |
lastVisited() | The date and time of the user's last visit to the page. |
icon() | The icon associated with the page that was provided by the server. |
Note:QWebHistoryItem
objects are value based and explicitly shared. See also:
QWebHistory
, QWebPage::history()
, and QWebHistoryInterface
.
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
QSignalEmitter.AbstractSignal, 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 |
QWebHistoryItem |
clone()
This method is reimplemented for internal reasons |
QIcon |
icon()
Returns the icon associated with the history item. |
QDateTime |
lastVisited()
Returns the date and time that the page associated with the item was last visited. |
QUrl |
originalUrl()
Returns the original URL associated with the history item. |
java.lang.String |
title()
Returns the title of the page associated with the history item. |
QUrl |
url()
Returns the URL associated with the history item. |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QWebHistoryItem
public QWebHistoryItem(QWebHistoryItem other)
- Constructs a history item from other.
icon
public final QIcon icon()
- Returns the icon associated with the history item.
- See also:
title()
, url()
, and lastVisited()
.
lastVisited
public final QDateTime lastVisited()
- Returns the date and time that the page associated with the item was last visited.
- See also:
title()
, icon()
, and url()
.
originalUrl
public final QUrl originalUrl()
- Returns the original URL associated with the history item.
- See also:
url()
.
title
public final java.lang.String title()
- Returns the title of the page associated with the history item.
- See also:
icon()
, url()
, and lastVisited()
.
url
public final QUrl url()
- Returns the URL associated with the history item.
- See also:
originalUrl()
, title()
, and lastVisited()
.
clone
public QWebHistoryItem clone()
- This method is reimplemented for internal reasons
- Overrides:
clone
in class java.lang.Object