phonebookengines/contactsmodel/cntplsql/inc/pplcontactitemmanager.h
changeset 25 76a2435edfd4
parent 24 0ba2181d7c28
child 31 2a11b5b00470
--- a/phonebookengines/contactsmodel/cntplsql/inc/pplcontactitemmanager.h	Fri Mar 19 09:27:18 2010 +0200
+++ b/phonebookengines/contactsmodel/cntplsql/inc/pplcontactitemmanager.h	Fri Apr 16 14:53:18 2010 +0300
@@ -37,6 +37,7 @@
 
 class CPplTableBase;
 class CPplPreferencesPersistor;
+class CPplPredictiveSearchTable;
 
 /**
 The CPplContactItemManager implements the MLplPersistenceBroker.
@@ -77,7 +78,8 @@
     TInt CardTemplatePrefIdL() const;
     void SetCardTemplatePrefIdL(TInt aCardTemplatePrefId);
 	void SynchronizePredSearchTableL();
-    
+	void RecreatePredSearchTablesL();
+
 private:
 	CPplContactItemManager(RSqlDatabase& aDatabase, MLplTransactionManager& aTransactionManager, CLplContactProperties&  aContactProperties, RPplIccContactStore& aIccContactStore);
 	void ConstructL();
@@ -90,7 +92,9 @@
 	void DeleteInLowDiskConditionL(CPplTableBase* aTable, CContactItem* aContactItem);
 
 	TBool DoesPredSearchTableExistL() const;
-	
+	void CreatePredSearchTablesL();
+	void DeletePredSearchTablesL();
+
 private:
 	RSqlDatabase&				iDatabase;				// CPplContactItemManager does not own the RSqlDatabase object
 	MLplTransactionManager& 	iTransactionManager;
@@ -100,7 +104,7 @@
 	CPplTableBase* 				iContactTable;
 	CPplTableBase* 				iGroupTable;	
 	CPplTableBase* 				iCommAddrTable;
-	CPplTableBase* 				iPredSearchTable;
+	CPplPredictiveSearchTable*   	iPredSearchTable;
 	CPplTableBase*              iPresenceTable;
 	CPplPreferencesPersistor*	iPreferencePersistor;
 	RPplIccContactStore&        iIccContactStore;