diff -r 81f8547efd4f -r e8e3147d53eb phonebookengines/contactsmodel/cntplsql/inc/persistencelayerimpl.h --- a/phonebookengines/contactsmodel/cntplsql/inc/persistencelayerimpl.h Fri Mar 12 15:41:25 2010 +0200 +++ b/phonebookengines/contactsmodel/cntplsql/inc/persistencelayerimpl.h Mon Mar 15 12:39:26 2010 +0200 @@ -178,6 +178,7 @@ void FindAsyncInitL(const TDesC& aText,CContactItemFieldDef* aFieldDef); void FindAsyncTextDefInitL(const CDesCArray& aWords,CContactTextDef* aTextDef); CContactIdArray* FindAsyncL(TBool& aMoreToGo, TUint aSessionId); + void Reset(); TBool UsesIdentityFieldsOnly(TInt aFindFlags); void ConstructBitwiseFlagsFromTextDef(TInt& aFindFlags,TInt& aIdentityColumnsCount,const CContactTextDef* aTextDef); @@ -194,7 +195,7 @@ TBool PerformIdFindIterationL(CContactIdArray *aIdsFound, RSqlStatement aStatement); TBool FindL(CContactIdArray *aIdsFound, const TDesC& aText,const CContactItemFieldDef *aFieldDef, RSqlStatement aStatement, TUint aSessionId); CContactIdArray* FilterDatabaseL(CCntFilter& aFilter); - void Reset(); + TInt MaximumSizeOfIdentitySearchSyntax(); TInt ApproximateSizeOfSearchString(); void doAppendFieldsToSearchString(HBufC* aOrderFields) const; @@ -233,6 +234,9 @@ RSqlStatement selectEmailStatement; RSqlStatement selectSIPStatement; RSqlStatement selectIdFromIdentityStatement; + + //The flag for RSqlstatements + TBool iRSqlstatementsWorking; }; // Forward class reference.