com.trolltech.qt.webkit
Class QWebHistoryItem

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by 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.
userData() The user specific data that was stored with the history item.
Note:QWebHistoryItem objects are value based and explicitly shared.

See also:
QWebHistory, QWebPage::history(), and QWebHistoryInterface.


Nested Class Summary
 
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
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QWebHistoryItem(QWebHistoryItem other)
          Constructs a history item from other.
 
Method Summary
 QWebHistoryItem clone()
          This method is reimplemented for internal reasons
 QIcon icon()
          Returns the icon associated with the history item.
 boolean isValid()
          Returns whether this is a valid 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.
 void setUserData(java.lang.Object userData)
          Stores user specific data userData 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.
 java.lang.Object userData()
          Returns the user specific data that was stored with the history item.
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
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
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QWebHistoryItem

public QWebHistoryItem(QWebHistoryItem other)
Constructs a history item from other.

Method Detail

icon

public final QIcon icon()
Returns the icon associated with the history item.

See also:
title(), url(), and lastVisited().


isValid

public final boolean isValid()
Returns whether this is a valid history item.


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().


setUserData

public final void setUserData(java.lang.Object userData)
Stores user specific data userData with the history item.

See also:
userData().


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().


userData

public final java.lang.Object userData()
Returns the user specific data that was stored with the history item.

See also:
setUserData().


clone

public QWebHistoryItem clone()
This method is reimplemented for internal reasons

Overrides:
clone in class java.lang.Object