KonqPixmapProvider Class Reference

Inheritance diagram for KonqPixmapProvider:

KonqFavIconMgr List of all members.

Detailed Description

Definition at line 32 of file konq_pixmapprovider.h.


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)

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 91 of file konq_pixmapprovider.cc.

void KonqPixmapProvider::load ( KConfig *  kc,
const QString &  key 
)

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

Definition at line 96 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 116 of file konq_pixmapprovider.cc.

void KonqPixmapProvider::clear (  ) 

Clears the pixmap cache.

Definition at line 157 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 55 of file konq_pixmapprovider.cc.

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

Overridden from KonqFavIconMgr to update the cache.

Implements KonqFavIconMgr.

Definition at line 134 of file konq_pixmapprovider.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys