--- a/fontservices/fontstore/src/FNTSTD.H Mon Jul 12 14:38:26 2010 +0800
+++ b/fontservices/fontstore/src/FNTSTD.H Mon Jul 12 15:26:00 2010 +0800
@@ -52,7 +52,7 @@
// COpenFontSessionCacheList is placed here rather than openfont.cpp because it is used in fntstore.cpp as well.
-class COpenFontSessionCacheListItem;
+class COpenFontSessionCache;
class COpenFont;
class COpenFontSessionCacheList
@@ -62,20 +62,21 @@
{
public:
inline COpenFontSessionCacheList();
+ TInt AddCache(COpenFontSessionCache* aCache);
+ COpenFontSessionCache* FindCache(TInt aSessionHandle) const;
void Delete(RHeap* aHeap);
void DeleteCache(RHeap* aHeap,TInt aSessionHandle);
-
- COpenFontSessionCacheListItem* Start();
- void SetStart(COpenFontSessionCacheListItem* aItem);
-
void DeleteFontGlyphs(RHeap* aHeap,const COpenFont* aFont);
-
- TInt iStartOffset;
+private:
+ enum { EMaxNumCaches = 256 };
+private:
+ TInt iSessionHandleArray[EMaxNumCaches];
+ TInt iCacheOffsetArray[EMaxNumCaches];
};
-inline COpenFontSessionCacheList::COpenFontSessionCacheList():
- iStartOffset(0)
+inline COpenFontSessionCacheList::COpenFontSessionCacheList()
{
+ Mem::FillZ(this, sizeof(COpenFontSessionCacheList));
}
/**