[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/icons
From: Dmitry Suzdalev <dimsuz () gmail ! com>
Date: 2007-07-20 10:11:06
Message-ID: 1184926266.867089.12056.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 690197 by dimsuz:
Some reshuffling: moved most 'interesting' methods (find & insert)
to the top of the class and clean unneeded whitespace
M +11 -20 kpixmapcache.h
--- trunk/KDE/kdelibs/kdeui/icons/kpixmapcache.h #690196:690197
@@ -46,8 +46,16 @@
**/
explicit KPixmapCache(const QString& name);
virtual ~KPixmapCache();
-
/**
+ * Tries to load the specified pixmap from cache.
+ * @return true when pixmap was found and loaded from cache, false otherwise
+ **/
+ virtual bool find(const QString& key, QPixmap& pix);
+ /**
+ * Insert specified pixmap into the cache.
+ **/
+ virtual void insert(const QString& key, const QPixmap& pix);
+ /**
* @return timestamp of the cache, set using the @p setTimestamp method.
* It can be used by the application to check whether app-specific cache
* has outdated.
@@ -58,10 +66,10 @@
* and can later be retrieved using @p timestamp() method.
**/
void setTimestamp(unsigned int time);
-
/**
* Sets whether QPixmapCache (memory cacheing) should be used in addition
- * to disk cache
+ * to disk cache.
+ * QPixmapCache is used by default
**/
void setUseQPixmapCache(bool use);
/**
@@ -69,12 +77,10 @@
* addition to caching them on the disk.
**/
bool useQPixmapCache() const;
-
/**
* @return approximate size of the cache, in bytes.
**/
int size() const;
-
/**
* @return true when the cache is enabled.
* Cache will be disabled when e.g.it's data file cannot be created or
@@ -87,7 +93,6 @@
* the cache can be used.
**/
bool isValid() const;
-
/**
* Deletes a pixmap cache.
* @param name unique name of the cache to be deleted
@@ -109,20 +114,6 @@
* will temporarily use extra disk space.
**/
void removeEntries(int newsize, RemoveStrategy strategy = RemoveLeastRecentlyUsed);
-
-
- /**
- * Tries to load the specified pixmap from cache.
- * @return true when pixmap was found and loaded from cache, false otherwise
- **/
- virtual bool find(const QString& key, QPixmap& pix);
- /**
- * Insert specified pixmap into the cache.
- **/
- virtual void insert(const QString& key, const QPixmap& pix);
-
-
-
protected:
void init();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic