libkonq Library API Documentation

KonqPixmapProvider Class Reference

Inheritance diagram for KonqPixmapProvider:

Inheritance graph
[legend]
Collaboration diagram for KonqPixmapProvider:

Collaboration graph
[legend]
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.

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.

void KonqPixmapProvider::clear  ) 
 

Clears the pixmap cache.

Definition at line 153 of file konq_pixmapprovider.cc.

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.

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.


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.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jun 14 19:05:26 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003