/** Open the database tables (a state change, no action on file necessary). */ void CPplContactsFile::OpenTablesL(TBool aNotify) { // Do nothing but notify #if defined(__PROFILE_DEBUG__) _LIT(KMessage, "[CNTMODEL] MTD: CPplContactsFile::OpenTablesL"); RDebug::Print(KMessage); #endif iFileIsOpen = ETrue; GenerateNotificationEventL(aNotify); }
/** Open the given database file. */ void CPplContactsFile::OpenL(const TDesC& aFileName, TBool aNotify) { // Contact databases are in the Contact model private directory. TFileName fileName; GetPhysicalFileNameL(fileName, aFileName); iDatabase.Close(); iDatabase.OpenL(fileName, iConfigureStr); iItemManager->SynchronizePredSearchTableL(); iFileIsOpen = ETrue; GenerateNotificationEventL(aNotify); }
/** Open the given database file. */ void CPplContactsFile::OpenL(const TDesC& aFileName, TBool aNotify) { // Contact databases are in the Contact model private directory. TFileName fileName; GetPhysicalFileNameL(fileName, aFileName); iDatabase.Close(); iDatabase.OpenL(fileName, iConfigureStr); iFileIsOpen = ETrue; //check compatibility iItemManager->MakeDatabaseCompatibleL(); GenerateNotificationEventL(aNotify); }