diff -r 81f8547efd4f -r e8e3147d53eb predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1.h --- a/predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1.h Fri Mar 12 15:41:25 2010 +0200 +++ b/predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1.h Mon Mar 15 12:39:26 2010 +0200 @@ -160,7 +160,7 @@ /** * Returns the array index of cache (in iPcsCache) for a datastore */ - TInt GetCacheIndex(TDesC& aDataStore); + TInt GetCacheIndex(const TDesC& aDataStore); /** * Return the cache instance at a specific array index @@ -176,7 +176,7 @@ inline CPcsKeyMap* GetKeyMap() { return iKeyMap; - }; + } private: @@ -209,38 +209,38 @@ void DoSearchL ( const CPsSettings& aPcsSettings, CPsQuery& aCondition, RPointerArray& searchResults, - RPointerArray& searchSeqs ); - + RPointerArray& searchSeqs ); + /** * Search function helper */ void DoSearchInputL ( CPsQuery& aQuery, - TDesC& aData, - RPointerArray& searchSeqs, - RArray& aMatchLocation ); - + const TDesC& aData, + RPointerArray& aSearchSeqs, + RArray& aMatchLocation ); + /** * Returns the index corresponding a URI in iDataStoreUri */ - TInt FindStoreUri ( TDesC& aDataStoreUri ); + TInt FindStoreUri ( const TDesC& aDataStoreUri ); /** * Function to return all cached content */ - void GetAllContentsL ( const CPsSettings& aPcsSettings, - RPointerArray& searchResults ); + void GetAllContentsL ( const CPsSettings& aPcsSettings, + RPointerArray& aSearchResults ); /** * Checks if search is on groups - * Return ETrue if there is a valid group URI + * Return ETrue if there is a valid group URI */ TBool IsGroupSearchL ( CPsSettings& aSettings, - RArray& aGroupIdArray ); + RArray& aGroupIdArray ); /** * Utility function to replace groups uri with that of contacts uri */ - void ReplaceGroupsUriL ( CPsSettings& aSettings ); + void ReplaceGroupsUriL ( CPsSettings& aSettings ); /** * Filters the search results array for groups @@ -250,40 +250,40 @@ /** * Get the list of contact ids that belong to a group. - */ + */ void GetContactsInGroupL ( TInt aGroupId, RArray& aGroupContactIds ); - + /** * Read sort order for a data store from the central repository * @param aURI - The data store URI for which sort order is required * @param aSortOrder - The persisted sort order from the cenrep */ - void ReadSortOrderFromCenRepL ( TDesC& aURI, - RArray& aSortOrder ); + void ReadSortOrderFromCenRepL ( const TDesC& aURI, + RArray& aSortOrder ); /** Write sort order for a data store to the central repository * @param aURI - The data store URI for which sort order is to be persisted * @param aSortOrder - The sort order to be persisted */ - void WriteSortOrderToCenRepL ( TDesC& aURI, - RArray& aSortOrder ); + void WriteSortOrderToCenRepL ( const TDesC& aURI, + RArray& aSortOrder ); /** * Utility function that sets the caching error value - */ - void SetCachingError ( TDesC& aDataStore, - TInt aError ); + */ + void SetCachingError ( const TDesC& aDataStore, + TInt aError ); /** * Write the content required by client */ - CPsClientData* WriteClientDataL ( CPsData& aPsData ); + CPsClientData* WriteClientDataL ( CPsData& aPsData ); /** * Function to return data base URI for an internal identifier - */ - TDesC& GetUriForIdL( TUint8 aUriId ); + */ + const TDesC& GetUriForIdL( TUint8 aUriId ); /** * launch plugins by idle @@ -294,7 +294,7 @@ * launch plugins */ static TInt DoLaunchPluginsL(TAny* aPtr); - + private: /** @@ -317,7 +317,7 @@ /** * Data plugin interface. Owned */ - CPsDataPluginInterface *iPsDataPluginInterface; + CPsDataPluginInterface* iPsDataPluginInterface; /** * Instance of algorithm helper. Owned