KDEUI
Go to the documentation of this file.
21 #ifndef KPIXMAPCACHE_H
22 #define KPIXMAPCACHE_H
26 #include <QtCore/QList>
27 #include <QtCore/QSet>
28 #include <QtCore/QSize>
101 virtual bool find(
const QString& key, QPixmap& pix);
108 virtual void insert(
const QString& key,
const QPixmap& pix);
128 QPixmap loadFromFile(
const QString& filename);
144 QPixmap loadFromSvg(
const QString& filename,
const QSize& size = QSize());
151 unsigned int timestamp()
const;
158 void setTimestamp(
unsigned int time);
174 void setUseQPixmapCache(
bool use);
186 bool useQPixmapCache()
const;
197 int cacheLimit()
const;
210 void setCacheLimit(
int kbytes);
221 RemoveLeastRecentlyUsed
227 RemoveStrategy removeEntryStrategy()
const;
232 void setRemoveEntryStrategy(RemoveStrategy strategy);
240 bool isEnabled()
const;
247 bool isValid()
const;
255 static void deleteCache(
const QString&
name);
279 void removeEntries(
int newsize = 0);
293 void ensureInited()
const;
308 virtual bool loadCustomData(QDataStream& stream);
320 virtual bool writeCustomData(QDataStream& stream);
335 virtual bool loadCustomIndexHeader(QDataStream& stream);
347 virtual void writeCustomIndexHeader(QDataStream& stream);
361 void setValid(
bool valid);
375 bool recreateCacheFiles();
380 friend class Private;
384 #endif // KPIXMAPCACHE_H
RemoveStrategy
Describes which entries will be removed first during cache cleanup.
@ RemoveOldest
oldest entries are removed first.
const char * name(StandardAction id)
This will return the internal name of a given standard action.
@ RemoveSeldomUsed
least used entries are removed first.
const KShortcut & insert()
Toggle insert/overwrite (with visual feedback, e.g.
General-purpose pixmap cache for KDE.
KAction * find(const QObject *recvr, const char *slot, QObject *parent)
Initiate a 'find' request in the current document.
KGuiItem discard()
Returns the 'Discard' gui item.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.