QWebHistoryInterface Class Reference

#include <mw/QtWebKit/qwebhistoryinterface.h>

class QWebHistoryInterface : public QObject, public QObject

The QWebHistoryInterface class provides an interface to implement link history.

Inherits from

  • QWebHistoryInterface
    Public Member Functions
    QWebHistoryInterface(QObject *)
    ~QWebHistoryInterface()
    pure virtual voidaddHistoryEntry(const QString &)
    QWebHistoryInterface *defaultInterface()
    pure virtual boolhistoryContains(const QString &)
    voidsetDefaultInterface(QWebHistoryInterface *)
    Inherited Attributes
    QObject::d_ptr
    QObject::objectName
    QObject::staticQtMetaObject
    Inherited Functions
    QObject::QObject(QObjectPrivate &,QObject *)
    QObject::blockSignals(bool)
    QObject::childEvent(QChildEvent *)
    QObject::children()const
    QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const
    QObject::connectNotify(const char *)
    QObject::customEvent(QEvent *)
    QObject::deleteLater
    QObject::destroyed
    QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &)
    QObject::disconnect(const QObject *,const char *)
    QObject::disconnect(const QObject *,const char *,const QObject *,const char *)
    QObject::disconnect(const char *,const QObject *,const char *)
    QObject::disconnectNotify(const char *)
    QObject::dumpObjectInfo()
    QObject::dumpObjectTree()
    QObject::dynamicPropertyNames()const
    QObject::event(QEvent *)
    QObject::eventFilter(QObject *,QEvent *)
    QObject::findChild(const QString &)const
    QObject::findChildren(const QRegExp &)const
    QObject::findChildren(const QString &)const
    QObject::inherits(const char *)const
    QObject::installEventFilter(QObject *)
    QObject::isWidgetType()const
    QObject::killTimer(int)
    QObject::moveToThread(QThread *)
    QObject::objectName()const
    QObject::parent()const
    QObject::property(const char *)const
    QObject::receivers(const char *)const
    QObject::registerUserData()
    QObject::removeEventFilter(QObject *)
    QObject::sender()const
    QObject::senderSignalIndex()const
    QObject::setObjectName(const QString &)
    QObject::setParent(QObject *)
    QObject::setProperty(const char *,const QVariant &)
    QObject::setUserData(uint,QObjectUserData *)
    QObject::signalsBlocked()const
    QObject::startTimer(int)
    QObject::thread()const
    QObject::timerEvent(QTimerEvent *)
    QObject::userData(uint)const
    QObject::~QObject()

    Detailed Description

    Since
    4.4 QtWebKit
    The QWebHistoryInterface is an interface that can be used to keep track of visited links. It contains two pure virtual methods that are called by the WebKit engine: addHistoryEntry() is used to add urls that have been visited to the interface, while historyContains() is used to query whether the given url has been visited by the user. By default the QWebHistoryInterface is not set, so WebKit does not keep track of visited links.
    Note:

    The history tracked by QWebHistoryInterface is not specific to an instance of QWebPage but applies to all pages.

    Constructor & Destructor Documentation

    QWebHistoryInterface ( QObject * )

    QWebHistoryInterface(QObject *parent = 0)

    Constructs a new QWebHistoryInterface with parent parent.

    ~QWebHistoryInterface ( )

    ~QWebHistoryInterface()

    Destroys the interface. If this is currently the default interface it will be unset.

    Member Function Documentation

    addHistoryEntry ( const QString & )

    voidaddHistoryEntry(const QString &url)[pure virtual]

    Called by WebKit to add another url to the list of visited pages.

    defaultInterface ( )

    QWebHistoryInterface *defaultInterface()[static]

    Returns the default interface that will be used by WebKit. If no default interface has been set, Webkit will not keep track of visited links and a null pointer will be returned.

    See also: setDefaultInterface

    historyContains ( const QString & )

    boolhistoryContains(const QString &url)const [pure virtual]

    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.

    setDefaultInterface ( QWebHistoryInterface * )

    voidsetDefaultInterface(QWebHistoryInterface *defaultInterface)[static]

    Sets a new default interface, defaultInterface, that will be used by all of WebKit to keep track of visited links.

    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.