20#include <dcopclient.h>
21#include <tdeapplication.h>
26#include "konq_faviconmgr.moc"
29 : TQObject(parent, name),
30 DCOPObject(
"KonqFavIconMgr")
32 connectDCOPSignal(
"kded",
"favicons",
33 "iconChanged(bool, TQString, TQString)",
34 "notifyChange(bool, TQString, TQString)",
false);
39 return KMimeType::favIconForURL( KURL(url) );
45 TQDataStream str(data, IO_WriteOnly);
46 str << url << iconURL;
47 tdeApp->dcopClient()->send(
"kded",
"favicons",
"setIconForURL(KURL, KURL)", data);
53 TQDataStream str(data, IO_WriteOnly);
55 tdeApp->dcopClient()->send(
"kded",
"favicons",
"downloadHostIcon(KURL)", data);
static void setIconForURL(const KURL &url, const KURL &iconURL)
Downloads an icon from iconURL and associates url with it.
KonqFavIconMgr(TQObject *parent=0, const char *name=0)
Constructor.
static void downloadHostIcon(const KURL &url)
Downloads /favicon.ico from the host of url and associates all URLs on that host with it (unless a mo...
static TQString iconForURL(const TQString &url)
Looks up an icon for url and returns its name if found or TQString::null otherwise.