1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QWebHistoryInterface Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QWebHistoryInterface Class Reference<br /><sup><sup>[<a href="qtwebkit.html">QtWebKit</a> module]</sup></sup></h1><p>The QWebHistoryInterface class provides an interface to implement link history. <a href="#details">More...</a></p>
<p>Inherits <a href="qobject.html">QObject</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qwebhistoryinterface.html#QWebHistoryInterface">__init__</a></b> (<i>self</i>, QObject <i>parent</i> = None)</li><li><div class="fn" /><b><a href="qwebhistoryinterface.html#addHistoryEntry">addHistoryEntry</a></b> (<i>self</i>, QString)</li><li><div class="fn" />bool <b><a href="qwebhistoryinterface.html#historyContains">historyContains</a></b> (<i>self</i>, QString)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />QWebHistoryInterface <b><a href="qwebhistoryinterface.html#defaultInterface">defaultInterface</a></b> ()</li><li><div class="fn" /><b><a href="qwebhistoryinterface.html#setDefaultInterface">setDefaultInterface</a></b> (QWebHistoryInterface)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QWebHistoryInterface class provides an interface to implement link history.</p>
<p>The QWebHistoryInterface is an interface that can be used to implement link history. It contains two pure virtual methods that are called by the <a href="examples.html#webkit">WebKit</a> engine. <a href="qwebhistoryinterface.html#addHistoryEntry">addHistoryEntry</a>() is used to add pages that have been visited to the interface, while <a href="qwebhistoryinterface.html#historyContains">historyContains</a>() is used to query whether this page has been visited by the user.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QWebHistoryInterface" />QWebHistoryInterface.__init__ (<i>self</i>, <a href="qobject.html">QObject</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a new <a href="qwebhistoryinterface.html">QWebHistoryInterface</a> with parent <i>parent</i>.</p>
<a name="//apple_ref/cpp/instm/QWebHistoryInterface/~QWebHistoryInterface" />
<h3 class="fn"><a name="addHistoryEntry" />QWebHistoryInterface.addHistoryEntry (<i>self</i>, QString)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><p>Called by <a href="examples.html#webkit">WebKit</a> to add another <i>url</i> to the list of visited pages.</p>
<a name="//apple_ref/cpp/clm/QWebHistoryInterface/defaultInterface" />
<h3 class="fn"><a name="defaultInterface" /><a href="qwebhistoryinterface.html">QWebHistoryInterface</a> QWebHistoryInterface.defaultInterface ()</h3><p>Returns the default interface that will be used by <a href="examples.html#webkit">WebKit</a>. If no default interface has been set, <a href="demos.html#qtwebkit">QtWebkit</a> will not track history.</p>
<p>See also <a href="qwebhistoryinterface.html#setDefaultInterface">setDefaultInterface</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryInterface/historyContains" />
<h3 class="fn"><a name="historyContains" />bool QWebHistoryInterface.historyContains (<i>self</i>, QString)</h3><p>This method is abstract and should be reimplemented in any sub-class.</p><p>Called by the <a href="examples.html#webkit">WebKit</a> engine to query whether a certain <i>url</i> has been visited by the user already. Returns true if the <i>url</i> is part of the history of visited links; otherwise returns false.</p>
<a name="//apple_ref/cpp/clm/QWebHistoryInterface/setDefaultInterface" />
<h3 class="fn"><a name="setDefaultInterface" />QWebHistoryInterface.setDefaultInterface (<a href="qwebhistoryinterface.html">QWebHistoryInterface</a>)</h3><p>Sets a new default interface, <i>defaultInterface</i>, that will be used by all of <a href="examples.html#webkit">WebKit</a> for managing history.</p>
<p>If an interface without a parent has already been set, the old interface will be deleted. When the application exists <a href="qwebhistoryinterface.html">QWebHistoryInterface</a> will automatically delete the <i>defaultInterface</i> if it does not have a parent.</p>
<p>See also <a href="qwebhistoryinterface.html#defaultInterface">defaultInterface</a>().</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|