FaviconsModule Class Reference
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. More...
#include <favicons.h>
DCOP Member Functions | |
QString | iconForURL (const KURL &url) |
ASYNC | setIconForURL (const KURL &url, const KURL &iconURL) |
ASYNC | downloadHostIcon (const KURL &url) |
void | infoMessage (KURL iconURL, QString msg) |
Public Member Functions | |
FaviconsModule (const QCString &obj) | |
Public Attributes | |
k_dcop_signals | __pad0__: void iconChanged(bool isHost |
k_dcop_signals QString | hostOrURL |
k_dcop_signals QString QString | iconName |
Detailed Description
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.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 iconForURL will from now on return for any matching URL.
- Author:
- Malte Starostik <malte@kde.org>
Definition at line 45 of file favicons.h.
Member Function Documentation
|
Looks up an icon name for a given URL. This function does not initiate any download. If no icon for the URL or its host has been downloaded yet, QString::null is returned.
Definition at line 92 of file favicons.cpp. |
|
Assiciates an icon with the given URL. 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.
Definition at line 156 of file favicons.cpp. |
|
Downloads the icon for a given host if it was not downloaded before or the download was too long ago. If the download finishes successfully, the iconChanged() DCOP signal is emitted.
Definition at line 173 of file favicons.cpp. |
The documentation for this class was generated from the following files: