KVIrc
4.9.2
DeveloperAPIs
|
Class for holding a cached pixmap. More...
#include <KviIconManager.h>
Public Member Functions | |
KviCachedPixmap (QPixmap *pPix, const QString &szPath) | |
Constructs the KviCachedPixmap object. More... | |
kvi_time_t | lastAccessTime () |
Returns the time the image was last accessed. More... | |
const QString & | path () |
Returns the path of the image. More... | |
QPixmap * | pixmap () |
Returns the image. More... | |
unsigned int | size () |
Returns the size of the image. More... | |
void | updateLastAccessTime () |
Updates the time the image was last accessed. More... | |
~KviCachedPixmap () | |
Destroys the KviCachedPixmap object. More... | |
Private Attributes | |
QPixmap * | m_pPixmap |
QString | m_szPath |
kvi_time_t | m_tLastAccess |
unsigned int | m_uSize |
Class for holding a cached pixmap.
KviCachedPixmap::KviCachedPixmap | ( | QPixmap * | pPix, |
const QString & | szPath | ||
) |
Constructs the KviCachedPixmap object.
pPix | The image object |
szPath | The path of the image |
References kvi_unixTime, m_pPixmap, m_szPath, m_tLastAccess, and m_uSize.
KviCachedPixmap::~KviCachedPixmap | ( | ) |
Destroys the KviCachedPixmap object.
References m_pPixmap.
|
inline |
Returns the time the image was last accessed.
|
inline |
Returns the path of the image.
Referenced by KviIconManager::getImage(), and KviTheme::save().
|
inline |
Returns the image.
References m_pPixmap.
Referenced by KviIconManager::getBigIcon(), KviIconManager::getImage(), and KviIconManager::getPixmap().
|
inline |
void KviCachedPixmap::updateLastAccessTime | ( | ) |
Updates the time the image was last accessed.
References kvi_unixTime, and m_tLastAccess.
Referenced by KviIconManager::getPixmapWithCache(), and KviIconManager::getPixmapWithCacheScaleOnLoad().
|
private |
Referenced by KviCachedPixmap(), and ~KviCachedPixmap().
|
private |
Referenced by KviCachedPixmap().
|
private |
Referenced by KviCachedPixmap(), and updateLastAccessTime().
|
private |
Referenced by KviCachedPixmap().