persistentstorage/sqlite3api/OsLayer/os_symbian.h
branchRCL_3
changeset 23 26645d81f48d
parent 9 667e88a979d7
child 24 cc28652e0254
equal deleted inserted replaced
21:28839de615b4 23:26645d81f48d
     1 /**
     1 /**
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    27 
    27 
    28 #include <sqlite3.h>
    28 #include <sqlite3.h>
    29 #include "FileBuf64.h"
    29 #include "FileBuf64.h"
    30 
    30 
    31 #ifdef SQLITE_OS_SYMBIAN
    31 #ifdef SQLITE_OS_SYMBIAN
    32 
       
    33 /**
       
    34 Multi-threaded Symbian OS porting layer panic category.
       
    35 
       
    36 @see TPanicCodes
       
    37 
       
    38 @internalComponent
       
    39 */
       
    40 _LIT(KPanicCategory, "SqliteMt");
       
    41 
       
    42 /**
       
    43 Panic codes - used by asserts in the multi-threaded OS porting layer.
       
    44 
       
    45 @see KPanicCategory
       
    46 
       
    47 @internalComponent
       
    48 */
       
    49 enum TPanicCodes
       
    50 	{
       
    51 	EPanicFsCreationError		= 1,
       
    52 	EPanicMutexCreationError	= 2,
       
    53 	EPanicInvalidFs				= 3,
       
    54 	EPanicNullPls1				= 4,
       
    55 	EPanicNullPls2				= 5,
       
    56 	EPanicNullPls3				= 6,
       
    57 	EPanicNullPls4				= 7,
       
    58 	EPanicAssert				= 8,
       
    59 	EPanicMaxKeysExceeded		= 9,
       
    60 	EPanicBufferSizeExceeded	=10,
       
    61 	EPanicNullKey				=11,
       
    62 	EPanicWsdBufSize			=12,
       
    63 	EPanicWsdEntryCount			=13,
       
    64 	EPanicInternalError			=19,
       
    65 	EPanicNullDbFilePtr			=20,
       
    66 	EPanicInvalidLock			=21,
       
    67 	EPanicInvalidMutexType		=22,
       
    68 	EPanicMutexLockCounter		=23,
       
    69 	EPanicMutexOwner			=24
       
    70 	};
       
    71 
    32 
    72 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    33 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    73 //////////////////////////  TStaticFs  /////////////////////////////////////////////////////////////////////////////////////////
    34 //////////////////////////  TStaticFs  /////////////////////////////////////////////////////////////////////////////////////////
    74 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    35 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    75 
    36 
   339 private:
   300 private:
   340 	static inline TInt DoGetVolumeIoParamInfo(RFs& aFs, TInt aDriveNo, TVolumeIOParamInfo& aVolumeInfo);
   301 	static inline TInt DoGetVolumeIoParamInfo(RFs& aFs, TInt aDriveNo, TVolumeIOParamInfo& aVolumeInfo);
   341 	static TInt DoGetDeviceCharacteristics(const TDriveInfo& aDriveInfo, const TVolumeIOParamInfo& aVolumeInfo);
   302 	static TInt DoGetDeviceCharacteristics(const TDriveInfo& aDriveInfo, const TVolumeIOParamInfo& aVolumeInfo);
   342 	static TInt DoGetSectorSize(const TDriveInfo& aDriveInfo, const TVolumeIOParamInfo& aVolumeInfo);
   303 	static TInt DoGetSectorSize(const TDriveInfo& aDriveInfo, const TVolumeIOParamInfo& aVolumeInfo);
   343 	static TInt DoGetDeviceCharacteristicsAndSectorSize(TDbFile& aDbFile, TInt& aRecReadBufSize);
   304 	static TInt DoGetDeviceCharacteristicsAndSectorSize(TDbFile& aDbFile, TInt& aRecReadBufSize);
       
   305 	static TInt DoFileSizeCorruptionCheck(TDbFile& aDbFile, const TDesC& aFname, TInt aFmode);
   344 	};
   306 	};
   345 	
   307 	
   346 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
   308 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
   347 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
   309 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
   348 
   310