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 // $Id: favicons.h,v 1.5 2002/03/13 21:35:06 malte Exp $
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 // vim: ts=4 sw=4 et
KDE Logo
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