libkonq Library API Documentation

konq_pixmapprovider.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef KONQ_PIXMAPPROVIDER_H
00021 #define KONQ_PIXMAPPROVIDER_H
00022 
00023 #include <qmap.h>
00024 
00025 #include <kpixmapprovider.h>
00026 #include "konq_faviconmgr.h"
00027 
00028 class KConfig;
00029 
00030 class KonqPixmapProvider : public KonqFavIconMgr, virtual public KPixmapProvider
00031 {
00032 public:
00033     static KonqPixmapProvider * self();
00034 
00035     virtual ~KonqPixmapProvider();
00036 
00040     virtual QPixmap pixmapFor( const QString& url, int size = 0 );
00041 
00045     void load( KConfig * kc, const QString& key );
00050     void save( KConfig *, const QString& key, const QStringList& items );
00051 
00055     void clear();
00056 
00057 protected:
00058     KonqPixmapProvider( QObject *parent=0, const char *name=0 );
00059 
00063     virtual void notifyChange( bool isHost, QString hostOrURL, QString iconName );
00064     
00065     QPixmap loadIcon( const QString& url, const QString& icon, int size );
00066 
00067 private:
00068     QMap<QString,QString> iconMap;
00069     static KonqPixmapProvider * s_self;
00070 };
00071 
00072 
00073 #endif // KONQ_PIXMAPPROVIDER_H
KDE Logo
This file is part of the documentation for libkonq Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Aug 20 13:39:03 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003