Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QWebHistoryInterface Class Reference

The QWebHistoryInterface class provides an interface to implement link history. More...

 #include <QWebHistoryInterface>

Inherits: QObject.

This class was introduced in Qt 4.4.

Public Functions

QWebHistoryInterface ( QObject * parent = 0 )
~QWebHistoryInterface ()
virtual void addHistoryEntry ( const QString & url ) = 0
virtual bool historyContains ( const QString & url ) const = 0
  • 29 public functions inherited from QObject

Static Public Members

QWebHistoryInterface * defaultInterface ()
void setDefaultInterface ( QWebHistoryInterface * defaultInterface )
  • 7 static public members inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 8 protected functions inherited from QObject

Detailed Description

The QWebHistoryInterface class provides an interface to implement link history.

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.

Member Function Documentation

QWebHistoryInterface::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.

void QWebHistoryInterface::addHistoryEntry ( const QString & url ) [pure virtual]

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

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

bool QWebHistoryInterface::historyContains ( 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.

void QWebHistoryInterface::setDefaultInterface ( 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.

See also defaultInterface().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.8
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web