favicons.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _FAVICONS_H_
00022 #define _FAVICONS_H_
00023
00024 #include <kdedmodule.h>
00025 #include <kurl.h>
00026
00027 namespace KIO { class Job; }
00028
00048 class FaviconsModule : public KDEDModule
00049 {
00050 Q_OBJECT
00051 K_DCOP
00052 public:
00053 FaviconsModule(const QCString &obj);
00054 virtual ~FaviconsModule();
00055
00056 k_dcop:
00066 QString iconForURL(const KURL &url);
00076 ASYNC setIconForURL(const KURL &url, const KURL &iconURL);
00084 ASYNC downloadHostIcon(const KURL &url);
00085
00086 k_dcop_signals:
00087 void iconChanged(bool isHost, QString hostOrURL, QString iconName);
00088 void infoMessage(KURL iconURL, QString msg);
00089
00090 private:
00091 void startDownload(const QString &, bool, const KURL &);
00092 QString simplifyURL(const KURL &);
00093 QString iconNameFromURL(const KURL &);
00094 bool isIconOld(const QString &);
00095
00096 private slots:
00097 void slotData(KIO::Job *, const QByteArray &);
00098 void slotResult(KIO::Job *);
00099 void slotInfoMessage(KIO::Job *, const QString &);
00100 void slotKill();
00101
00102 private:
00103 struct FaviconsModulePrivate *d;
00104 };
00105
00106 #endif
00107
00108
This file is part of the documentation for libkonq Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Apr 11 13:44:46 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003