diff -r 0d6db0a14001 -r 3256212fc81f persistentstorage/sqlite3api/OsLayer/os_symbian.h --- a/persistentstorage/sqlite3api/OsLayer/os_symbian.h Tue Jul 06 16:18:30 2010 +0300 +++ b/persistentstorage/sqlite3api/OsLayer/os_symbian.h Wed Aug 18 11:30:17 2010 +0300 @@ -1,5 +1,5 @@ /** -* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -30,45 +30,6 @@ #ifdef SQLITE_OS_SYMBIAN -/** -Multi-threaded Symbian OS porting layer panic category. - -@see TPanicCodes - -@internalComponent -*/ -_LIT(KPanicCategory, "SqliteMt"); - -/** -Panic codes - used by asserts in the multi-threaded OS porting layer. - -@see KPanicCategory - -@internalComponent -*/ -enum TPanicCodes - { - EPanicFsCreationError = 1, - EPanicMutexCreationError = 2, - EPanicInvalidFs = 3, - EPanicNullPls1 = 4, - EPanicNullPls2 = 5, - EPanicNullPls3 = 6, - EPanicNullPls4 = 7, - EPanicAssert = 8, - EPanicMaxKeysExceeded = 9, - EPanicBufferSizeExceeded =10, - EPanicNullKey =11, - EPanicWsdBufSize =12, - EPanicWsdEntryCount =13, - EPanicInternalError =19, - EPanicNullDbFilePtr =20, - EPanicInvalidLock =21, - EPanicInvalidMutexType =22, - EPanicMutexLockCounter =23, - EPanicMutexOwner =24 - }; - //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////// TStaticFs ///////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -341,6 +302,7 @@ static TInt DoGetDeviceCharacteristics(const TDriveInfo& aDriveInfo, const TVolumeIOParamInfo& aVolumeInfo); static TInt DoGetSectorSize(const TDriveInfo& aDriveInfo, const TVolumeIOParamInfo& aVolumeInfo); static TInt DoGetDeviceCharacteristicsAndSectorSize(TDbFile& aDbFile, TInt& aRecReadBufSize); + static TInt DoFileSizeCorruptionCheck(TDbFile& aDbFile, const TDesC& aFname, TInt aFmode); }; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////