Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > d0c58635c3fcc548e9b6ce88c8980028 > files > 2022

lib64kdebase4-devel-3.4.2-55.5.20060mdk.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <title>libkonq Library: FaviconsModule Class Reference (libkonq Library)</title>
  <link href="../../common/doxygen.css" rel="stylesheet" type="text/css">
</head>
<div class="header">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" width="92">
<a href="../../index.html" title="The API documentation main page"><img src="../../common/docheadergears.png" style="border:0px;" alt=""></a>
</td>
<td width="95%">
<h1>libkonq Library API Documentation</h1>
</td>
</tr>
<tr>
<td valign="bottom">
<table class="links" border=0 cellspacing=0>
<tr>
<td><a href="index.html">Overview</a></td>
<td><a href="hierarchy.html" title="Inheritance list, sorted roughly  alphabetically">Class&nbsp;Hierarchy</a></td>
<td><a href="classes.html" title="Alphabetical list of classes">Classes</a></td>
<td><a href="annotated.html" title="Classes, structs, unions and interfaces with brief descriptions">Classes&nbsp;(annotated)</a></td>
<td><a href="functions.html" title="Documented class members with links to the classes they belong to">Members</a></td>
<td><a href="namespaces.html" title="All documented namespaces with brief descriptions">Namespaces</a></td>
<td><a href="files.html" title="A list of all documented files with brief descriptions">Source&nbsp;Files</a></td>
</tr>
</table>
</td></tr></table>
</div>
<div id="hgrad"></div>
<div class="text">
<!-- Generated by Doxygen 1.4.4 -->
<h1>FaviconsModule Class Reference</h1><!-- doxytag: class="FaviconsModule" --><!-- doxytag: inherits="KDEDModule" -->KDED Module to handle shortcut icons ("favicons") FaviconsModule implements a KDED Module that handles the association of URLs and hosts with shortcut icons and the icons' downloads in a central place.KDED Module for favicons.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="favicons_8h-source.html">favicons.h</a>&gt;</code>
<p>
<a href="classFaviconsModule-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>DCOP Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#z0">iconForURL</a> (const KURL &amp;url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">ASYNC&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#z1">setIconForURL</a> (const KURL &amp;url, const KURL &amp;iconURL)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">ASYNC&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#z2">downloadHostIcon</a> (const KURL &amp;url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="z3"></a><!-- doxytag: member="FaviconsModule::infoMessage" ref="z3" args="(KURL iconURL, QString msg)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#z3">infoMessage</a> (KURL iconURL, QString msg)</td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0"></a><!-- doxytag: member="FaviconsModule::FaviconsModule" ref="a0" args="(const QCString &amp;obj)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#a0">FaviconsModule</a> (const QCString &amp;obj)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member="FaviconsModule::~FaviconsModule" ref="a1" args="()" -->
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#a1">~FaviconsModule</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o0"></a><!-- doxytag: member="FaviconsModule::__pad0__" ref="o0" args="" -->
k_dcop_signals&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#o0">__pad0__</a>: void iconChanged(bool isHost</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o1"></a><!-- doxytag: member="FaviconsModule::hostOrURL" ref="o1" args="" -->
k_dcop_signals QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#o1">hostOrURL</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o2"></a><!-- doxytag: member="FaviconsModule::iconName" ref="o2" args="" -->
k_dcop_signals QString QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFaviconsModule.html#o2">iconName</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
KDED Module to handle shortcut icons ("favicons") FaviconsModule implements a KDED Module that handles the association of URLs and hosts with shortcut icons and the icons' downloads in a central place.KDED Module for favicons. 
<p>
After a successful download, the DCOP signal iconChanged() is emitted. It has the signature void iconChanged(bool, QString, QString); The first parameter is true if the icon is a "host" icon, that is it is the default icon for all URLs on the given host. In this case, the second parameter is a host name, otherwise the second parameter is the URL which is associated with the icon. The third parameter is the KIconLoader friendly name of the downloaded icon, the same as <a class="el" href="classFaviconsModule.html#z0">iconForURL</a> will from now on return for any matching URL.<p>
<dl compact><dt><b>Author:</b></dt><dd>Malte Starostik &lt;<a href="mailto:malte@kde.org">malte@kde.org</a>&gt;</dd></dl>

<p>

<p>
Definition at line <a class="el" href="favicons_8h-source.html#l00045">45</a> of file <a class="el" href="favicons_8h-source.html">favicons.h</a>.<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z0"></a><!-- doxytag: member="FaviconsModule::iconForURL" ref="z0" args="(const KURL &amp;url)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">QString FaviconsModule::iconForURL           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const KURL &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>url</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Looks up an icon name for a given URL. 
<p>
This function does not initiate any download. If no icon for the URL or its host has been downloaded yet, QString::null is returned.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>the URL for which the icon is queried </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the icon name suitable to pass to KIconLoader or QString::null if no icon for this URL was found.</dd></dl>

<p>
Definition at line <a class="el" href="favicons_8cpp-source.html#l00092">92</a> of file <a class="el" href="favicons_8cpp-source.html">favicons.cpp</a>.    </td>
  </tr>
</table>
<a class="anchor" name="z1"></a><!-- doxytag: member="FaviconsModule::setIconForURL" ref="z1" args="(const KURL &amp;url, const KURL &amp;iconURL)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void FaviconsModule::setIconForURL           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const KURL &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>const KURL &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>iconURL</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Assiciates an icon with the given URL. 
<p>
If the icon was not downloaded before or the downloaded was too long ago, a download attempt will be started and the iconChanged() DCOP signal is emitted after the download finished successfully.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>the URL which will be associated with the icon </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>iconURL</em>&nbsp;</td><td>the URL of the icon to be downloaded</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="favicons_8cpp-source.html#l00156">156</a> of file <a class="el" href="favicons_8cpp-source.html">favicons.cpp</a>.    </td>
  </tr>
</table>
<a class="anchor" name="z2"></a><!-- doxytag: member="FaviconsModule::downloadHostIcon" ref="z2" args="(const KURL &amp;url)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void FaviconsModule::downloadHostIcon           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const KURL &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>url</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Downloads the icon for a given host if it was not downloaded before or the download was too long ago. 
<p>
If the download finishes successfully, the iconChanged() DCOP signal is emitted.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>any URL on the host for which the icon is to be downloaded</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="favicons_8cpp-source.html#l00173">173</a> of file <a class="el" href="favicons_8cpp-source.html">favicons.cpp</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="favicons_8h-source.html">favicons.h</a><li><a class="el" href="favicons_8cpp-source.html">favicons.cpp</a><li><a class="el" href="favicons__skel_8cpp-source.html">favicons_skel.cpp</a></ul>
</div>
<div id="bottom-nav">
<img src="../../common/bottom2.png" align="right" height="59" width="227" alt="KDE Logo">
</div>
<div class="bottom">
This file is part of the documentation for libkonq Library Version 3.4.2.
</div>
<div class="bottom" style="color:#cccccc">
Documentation copyright &copy; 1996-2004 the KDE developers.<br>
Generated on Wed Jun 14 19:05:22 2006 by
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.4.4 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2003
</div>
</body>
</html>