predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsPoolElement.h
branchRCL_3
changeset 6 e8e3147d53eb
parent 0 e686773b3f54
equal deleted inserted replaced
5:81f8547efd4f 6:e8e3147d53eb
    42 		virtual ~CPcsPoolElement();
    42 		virtual ~CPcsPoolElement();
    43 		
    43 		
    44 		/**
    44 		/**
    45 		 * Clears the data match element attribute
    45 		 * Clears the data match element attribute
    46 		 */	
    46 		 */	
    47 		void ClearDataMatchAttribute();				
    47 		void ClearDataMatchAttribute();
    48 				
    48 				
    49 		/**
    49 		/**
    50 		 * Checks if data matched
    50 		 * Checks if data matched
    51 		 */
    51 		 */
    52 		TBool IsDataMatch(TInt aIndex);
    52 		TBool IsDataMatch(TInt aIndex);
    58 	
    58 	
    59 		/**
    59 		/**
    60 		 * Return the CPsData object of this pool element
    60 		 * Return the CPsData object of this pool element
    61 		 */
    61 		 */
    62 		CPsData* GetPsData();
    62 		CPsData* GetPsData();
       
    63 		
    63 		/**
    64 		/**
    64 		  * Compares the two Pool Elements and returms the comparison value.
    65 		 * Compares the two Pool Elements and returms the comparison value.
    65 		  * It takes care of language variance too.
    66 		 * It takes care of language variance too.
    66 		 */
    67 		 */
    67 		 static TInt CompareByData ( const CPcsPoolElement& aObject1, 
    68 		 static TInt CompareByData ( const CPcsPoolElement& aObject1, 
    68 					     const CPcsPoolElement& aObject2 );
    69 					     const CPcsPoolElement& aObject2 );
    69 
    70 
    70     private:
    71     private:
    83      
    84      
    84         /*
    85         /*
    85          * Pointer to contact data
    86          * Pointer to contact data
    86          * Not owned.
    87          * Not owned.
    87          */
    88          */
    88          CPsData* psData;
    89          CPsData* iPsData;
    89          
    90          
    90 		/*
    91 		/*
    91 		 * This attribute indicates due to which
    92 		 * This attribute indicates due to which
    92 		 * the data element this item entered the pool
    93 		 * the data element this item entered the pool
    93 		 *
    94 		 *
    98 		 * Bit 4 = Not used
    99 		 * Bit 4 = Not used
    99 		 * Bit 5 = Not used
   100 		 * Bit 5 = Not used
   100 		 * Bit 6 = Not used
   101 		 * Bit 6 = Not used
   101 		 * Bit 7 = Not used
   102 		 * Bit 7 = Not used
   102 		 */
   103 		 */
   103 		TInt8     iDataMatchAttribute;		
   104 		TUint8 iDataMatchAttribute;
   104 };
   105 };
   105 
   106 
   106 #endif // __CPCS_POOL_ELEMENT_H__
   107 #endif // __CPCS_POOL_ELEMENT_H__
   107 
   108 
   108 // End of file
   109 // End of file