predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsCache.h
branchRCL_3
changeset 21 b3431bff8c19
parent 15 e8e3147d53eb
child 35 4ae315f230bc
equal deleted inserted replaced
15:e8e3147d53eb 21:b3431bff8c19
    97 		/**
    97 		/**
    98 		* Returns the UriId
    98 		* Returns the UriId
    99 		*/
    99 		*/
   100 		TUint8 GetUriId();
   100 		TUint8 GetUriId();
   101 
   101 
   102 		/**
       
   103 		* Returns the URI for this cache
       
   104 		*/
       
   105 		HBufC* GetUri();
       
   106 	    /**
   102 	    /**
   107 	    * Sets sort order for data fields
   103 	    * Sets sort order for data fields
   108 	    */
   104 	    */
   109 	    void SetSortOrder(RArray<TInt>& aSortOrder);
   105 	    void SetSortOrder(RArray<TInt>& aSortOrder);
   110 	    
   106 	    
   189 		HBufC* iURI;
   185 		HBufC* iURI;
   190 
   186 
   191 		/**
   187 		/**
   192 		* Internal URI id for this cache
   188 		* Internal URI id for this cache
   193 		*/
   189 		*/
   194 		TInt8 iUriId;
   190 		TUint8 iUriId;
   195 
   191 
   196 		/**
   192 		/**
   197 		* Current status of this cache
   193 		* Current status of this cache
   198 		*/
   194 		*/
   199 		TInt iCacheStatus;
   195 		TInt iCacheStatus;
   200 
   196 
   201 		/**
   197 		/**
   202 		* List of data fields (mapped to VPbk ids) supported by this cache
   198 		* List of data fields (mapped to VPbk ids) supported by this cache
   203 		*/
   199 		*/
   204 		RArray<TInt> 	iDataFields;
   200 		RArray<TInt> iDataFields;
   205 		/**
   201 		/**
   206 		* Sort order of data fields expected by the clients
   202 		* Sort order of data fields expected by the clients
   207 		*/
   203 		*/
   208 		RArray<TInt>    iSortOrder;
   204 		RArray<TInt> iSortOrder;
   209 		
   205 		
   210 		/**
   206 		/**
   211 		* Order of indexes determined by correlating iDataFields and iSortOrder
   207 		* Order of indexes determined by correlating iDataFields and iSortOrder
   212 		* Each CPsData data element fields need to be compared in this order
   208 		* Each CPsData data element fields need to be compared in this order
   213 		* to get the client expected sort order for this cache.
   209 		* to get the client expected sort order for this cache.
   214 		*/
   210 		*/
   215 		RArray<TInt>    iIndexOrder;
   211 		RArray<TInt> iIndexOrder;
   216 		
   212 		
   217 };
   213 };
   218 
   214 
   219 
   215 
   220 #endif // __CPCS_CACHE_H__
   216 #endif // __CPCS_CACHE_H__