libkonq Library API Documentation

favicons.h

00001 /* This file is part of the KDE Project 00002 Copyright (c) 2001 Malte Starostik <malte@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, USA. 00017 */ 00018 00019 #ifndef _FAVICONS_H_ 00020 #define _FAVICONS_H_ 00021 00022 #include <kdedmodule.h> 00023 #include <kurl.h> 00024 00025 namespace KIO { class Job; } 00026 00045 class FaviconsModule : public KDEDModule 00046 { 00047 Q_OBJECT 00048 K_DCOP 00049 public: 00050 FaviconsModule(const QCString &obj); 00051 virtual ~FaviconsModule(); 00052 00053 k_dcop: 00063 QString iconForURL(const KURL &url); 00073 ASYNC setIconForURL(const KURL &url, const KURL &iconURL); 00081 ASYNC downloadHostIcon(const KURL &url); 00082 00083 k_dcop_signals: 00084 void iconChanged(bool isHost, QString hostOrURL, QString iconName); 00085 void infoMessage(KURL iconURL, QString msg); 00086 00087 private: 00088 void startDownload(const QString &, bool, const KURL &); 00089 QString simplifyURL(const KURL &); 00090 QString iconNameFromURL(const KURL &); 00091 bool isIconOld(const QString &); 00092 00093 private slots: 00094 void slotData(KIO::Job *, const QByteArray &); 00095 void slotResult(KIO::Job *); 00096 void slotInfoMessage(KIO::Job *, const QString &); 00097 void slotKill(); 00098 00099 private: 00100 struct FaviconsModulePrivate *d; 00101 }; 00102 00103 #endif 00104 00105 // vim: ts=4 sw=4 et
KDE Logo
This file is part of the documentation for libkonq Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 13 21:46:59 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003