diff -r 81f8547efd4f -r e8e3147d53eb predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsCache.h --- a/predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsCache.h Fri Mar 12 15:41:25 2010 +0200 +++ b/predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsCache.h Mon Mar 15 12:39:26 2010 +0200 @@ -37,7 +37,7 @@ /** * Two phase construction */ - static CPcsCache* NewL(TDesC& aURI, CPcsKeyMap& aKeyMap, TUint8 aUriId); + static CPcsCache* NewL(const TDesC& aURI, CPcsKeyMap& aKeyMap, TUint8 aUriId); /** * Virtual destructor @@ -72,7 +72,7 @@ /** * Removes all data elements from the cache */ - void RemoveAllFromCacheL(); + void RemoveAllFromCache(); /** * Sets data fields to the cache @@ -133,60 +133,60 @@ /** * Second phase constructor */ - void ConstructL(TDesC& aURI, CPcsKeyMap& aKeyMap, TUint8 aUriId); + void ConstructL(const TDesC& aURI, CPcsKeyMap& aKeyMap, TUint8 aUriId); /** * Utility function to add a contact to the pool */ - void AddToPoolL(TInt& aInfo, CPsData& data); + void AddToPoolL(TUint64& aPoolMap, CPsData& aData); /** * Utility function */ - void SetPoolMap(TInt& aPoolMap, TInt aPoolId); + void SetPoolMap(TUint64& aPoolMap, TInt aArrayIndex); /** * Utility function */ - TBool GetPoolMap(TInt& aPoolMap, TInt arrayIndex); + TBool GetPoolMap(TUint64& aPoolMap, TInt aArrayIndex); /** * Utility function */ void ComputeIndexOrder(); + private: - /* * Array of key maps */ typedef RPointerArray R_PTR_ARRAY; - RPointerArray keyArr; + RPointerArray iKeyArr; /* * Hashmaps to remember the location of a contact in the pools */ - RHashMap cacheInfo; + RHashMap iCacheInfo; /* * Master pool of all contacts in this cache */ - RPointerArray masterPool; + RPointerArray iMasterPool; /* * Master pool backup of all contacts in this cache when sortorder changed */ - RPointerArray masterPoolBackup; + RPointerArray iMasterPoolBackup; /* * Not owned */ - CPcsKeyMap* keyMap; + CPcsKeyMap* iKeyMap; /** * Owned. Refer to the database URI this cache is for. */ - HBufC* iURI; + HBufC* iURI; /** * Internal URI id for this cache