• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkonq

favicons.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef _FAVICONS_H_
00020 #define _FAVICONS_H_
00021 
00022 #include <kdedmodule.h>
00023 #include <kurl.h>
00024 
00025 class KJob;
00026 namespace KIO { class Job; }
00027 
00046 class FavIconsModule : public KDEDModule
00047 {
00048     Q_OBJECT
00049 public:
00050     FavIconsModule(QObject* parent, const QList<QVariant>&);
00051     virtual ~FavIconsModule();
00052 
00053 public Q_SLOTS: // dbus methods, called by the adaptor
00063     QString iconForUrl(const KUrl &url);
00064 
00074     void setIconForUrl(const KUrl &url, const KUrl &iconURL);
00082     void downloadHostIcon(const KUrl &url);
00083 
00084 signals: // DBUS signals
00088     void iconChanged(bool isHost, QString hostOrURL, QString iconName);
00092     void infoMessage(QString iconURL, QString msg);
00093 
00094 private:
00095     void startDownload(const QString &, bool, const KUrl &);
00096     QString simplifyURL(const KUrl &);
00097     QString iconNameFromURL(const KUrl &);
00098     bool isIconOld(const QString &);
00099 
00100 private Q_SLOTS:
00101     void slotData(KIO::Job *, const QByteArray &);
00102     void slotResult(KJob *);
00103     void slotInfoMessage(KJob *, const QString &);
00104     void slotKill();
00105 
00106 private:
00107     struct FavIconsModulePrivate *d;
00108 };
00109 
00110 #endif
00111 
00112 // vim: ts=4 sw=4 et

libkonq

Skip menu "libkonq"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal