Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SkinCache Class Reference

Inheritance diagram for SkinCache:

Inheritance graph
[legend]
Collaboration diagram for SkinCache:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SkinCache ()
SkinDatalookupAndTake (const QString &skinPath, const QString &fileNameInfix)
void store (const QString &skinPath, const QString &fileNameInfix, SkinData *data)

Private Types

typedef QCache< SkinDataDataCache
typedef QCache< QPixmap > BackgroundPixmapCache

Private Member Functions

template<class CacheType>
void store (const QCache< CacheType > &cache, const QString &key, CacheType *data)

Private Attributes

DataCache m_cache
BackgroundPixmapCache m_backgroundPixmapCache

Member Typedef Documentation

typedef QCache<QPixmap> SkinCache::BackgroundPixmapCache [private]
 

Definition at line 62 of file skin.cpp.

typedef QCache<SkinData> SkinCache::DataCache [private]
 

Definition at line 61 of file skin.cpp.


Constructor & Destructor Documentation

SkinCache::SkinCache  ) 
 

Definition at line 172 of file skin.cpp.

References m_backgroundPixmapCache, m_cache, and QCache< type >::setMaxCost().


Member Function Documentation

SkinData * SkinCache::lookupAndTake const QString skinPath,
const QString fileNameInfix
 

Definition at line 180 of file skin.cpp.

References SkinData::backgroundPixmap, data, QCache< type >::find(), m_backgroundPixmapCache, m_cache, odebug, oendl, and QCache< type >::take().

template<class CacheType>
void SkinCache::store const QCache< CacheType > &  cache,
const QString key,
CacheType *  data
[private]
 

void SkinCache::store const QString skinPath,
const QString fileNameInfix,
SkinData data
 

Definition at line 201 of file skin.cpp.

References SkinData::backgroundPixmap, QCache< type >::find(), QCache< type >::insert(), m_backgroundPixmapCache, and m_cache.


Member Data Documentation

BackgroundPixmapCache SkinCache::m_backgroundPixmapCache [private]
 

Definition at line 68 of file skin.cpp.

Referenced by lookupAndTake(), SkinCache(), and store().

DataCache SkinCache::m_cache [private]
 

Definition at line 67 of file skin.cpp.

Referenced by lookupAndTake(), SkinCache(), and store().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:51:59 2005 for OPIE by  doxygen 1.4.2