predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1.h
branchRCL_3
changeset 12 4ae315f230bc
parent 7 b3431bff8c19
child 13 a6539d1e8e43
--- a/predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1.h	Tue May 11 16:00:21 2010 +0300
+++ b/predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1.h	Tue May 25 12:26:45 2010 +0300
@@ -73,8 +73,8 @@
 		void PerformSearchL(const CPsSettings& aPcsSettings,
 					   	    CPsQuery& aCondition,
 					   	    RPointerArray<CPsClientData>& aData,
-					   	    RPointerArray<CPsPattern>& aPattern);							
-									
+					   	    RPointerArray<CPsPattern>& aPattern);
+		
 		/**
 		* Search Function for input string
 		*/
@@ -89,20 +89,20 @@
         void  SearchMatchStringL( CPsQuery& aSearchQuery,
                                     TDesC& aSearchData,
                                     TDes& aMatch ); 
-								       
+		
 		/**
 		* Returns ETrue if this language is supported
 		*/
 		TBool IsLanguageSupportedL(const TUint32 aLanguage);
-		      
+		
 		/**
 		* Returns supported data fields for a cache
-		*/		                     
+		*/
 		void GetDataOrderL( TDesC& aURI, RArray<TInt>& aDataOrder );
 
 		/**
 		* Returns supported sort order for a cache
-		*/		                     
+		*/
 		void GetSortOrderL( TDesC& aURI, RArray<TInt>& aDataOrder );
 
 		/**
@@ -123,7 +123,7 @@
 		void AddData ( TDesC& aDataStore, CPsData* aData);
 
 		/** 
-		* Remove a contact from the cache based on contact id		
+		* Remove a contact from the cache based on contact id
 		*/
 		void RemoveData ( TDesC& aDataStore, TInt aItemId );
 
@@ -140,7 +140,7 @@
 		// --------------------------------------------------------------------
 		
 	public:
-				
+		
 		// ----------------- From base class MStoreListObserver ---------------
 
 		/**
@@ -191,15 +191,23 @@
 		*/
 		void ConstructL();
 			
-    private:		
+    private:
 
         /**
+        * Define a P&S property with given key under the internal category 
+        * UID of PCS. Leave if definition fails for any other reason than
+        * key already existing.
+        */
+        void DefinePropertyL( TPcsInternalKeyCacheStatus aPsKey );
+    
+        /**
         * Remove leading and trailing spaces of search query
         */
         void RemoveSpacesL ( CPsQuery& aQuery );
 
 		/**
-		* Replace occurance of "0" in ITU-T mode with space
+		* Replace occurances of "0" in predictive mode with space
+		* if those are on the same button
 		*/
 		TBool ReplaceZeroWithSpaceL ( CPsQuery& aQuery );
 			
@@ -208,8 +216,8 @@
 		*/
 		void DoSearchL ( const CPsSettings& aPcsSettings,
 						 CPsQuery& aCondition,
-						 RPointerArray<CPsData>& searchResults,
-	                     RPointerArray<CPsPattern>& searchSeqs );
+						 RPointerArray<CPsData>& aSearchResults,
+	                     RPointerArray<CPsPattern>& aSearchSeqs );
 		
 		/**                
 		* Search function helper
@@ -286,6 +294,11 @@
 		const TDesC& GetUriForIdL( TUint8 aUriId );
 		
         /**
+        * Inform clients about update happened on the cache
+        */
+        void HandleCacheUpdated( TCachingStatus aStatus );
+        
+        /**
         * launch plugins by idle
         */
          void DoLaunchPluginsL();