libkonq Library API Documentation

KonqPixmapProvider Class Reference

Inheritance diagram for KonqPixmapProvider:

KonqFavIconMgr QObject List of all members.

Public Member Functions

virtual ~KonqPixmapProvider ()
virtual QPixmap pixmapFor (const QString &url, int size=0)
void load (KConfig *kc, const QString &key)
void save (KConfig *, const QString &key, const QStringList &items)
void clear ()
QString iconNameFor (const QString &url)

Static Public Member Functions

static KonqPixmapProviderself ()

Protected Member Functions

 KonqPixmapProvider (QObject *parent=0, const char *name=0)
virtual void notifyChange (bool isHost, QString hostOrURL, QString iconName)
QPixmap loadIcon (const QString &url, const QString &icon, int size)

Detailed Description

Definition at line 32 of file konq_pixmapprovider.h.


Member Function Documentation

QPixmap KonqPixmapProvider::pixmapFor const QString url,
int  size = 0
[virtual]
 

Looks up a pixmap for url.

Uses a cache for the iconname of url.

Definition at line 87 of file konq_pixmapprovider.cc.

References iconNameFor(), and loadIcon().

void KonqPixmapProvider::load KConfig *  kc,
const QString key
 

Loads the cache to kc from the current KConfig-group from key key.

Definition at line 92 of file konq_pixmapprovider.cc.

References QMap::clear(), and QMap::insert().

void KonqPixmapProvider::save KConfig *  ,
const QString key,
const QStringList items
 

Saves the cache to kc into the current KConfig-group as key key.

Only those items are saved, otherwise the cache would grow forever.

Definition at line 112 of file konq_pixmapprovider.cc.

References QMapConstIterator::data(), QMap::end(), QMap::find(), and QMapConstIterator::key().

void KonqPixmapProvider::clear  ) 
 

Clears the pixmap cache.

Definition at line 153 of file konq_pixmapprovider.cc.

References QMap::clear().

QString KonqPixmapProvider::iconNameFor const QString url  ) 
 

Looks up an iconname for url.

Uses a cache for the iconname of url.

Since:
3.4.1

Definition at line 54 of file konq_pixmapprovider.cc.

References QString::at(), QMapIterator::data(), QMap::end(), QMap::find(), QMap::insert(), and QString::isEmpty().

Referenced by pixmapFor().

void KonqPixmapProvider::notifyChange bool  isHost,
QString  hostOrURL,
QString  iconName
[protected, virtual]
 

Overridden from KonqFavIconMgr to update the cache.

Implements KonqFavIconMgr.

Definition at line 130 of file konq_pixmapprovider.cc.

References QMap::begin(), QMap::end(), and QString::isEmpty().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkonq Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Sep 30 18:40:27 2005 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003