os/persistentdata/persistentstorage/store/UFILE/UF_STD.H
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/store/UFILE/UF_STD.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,62 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#include <s32file.h>
    1.20 +#include "U32STD.H"
    1.21 +#include "U32PERM.H"
    1.22 +
    1.23 +#ifndef MAX_READ_AHEAD_VALUE
    1.24 +	#define MAX_READ_AHEAD_VALUE 2048
    1.25 +#else
    1.26 +	#if MAX_READ_AHEAD_VALUE < 512
    1.27 +		#error "MAX_READ_AHEAD_VALUE macro value can't be less than 512"
    1.28 +	#endif
    1.29 +#endif
    1.30 +
    1.31 +const TInt KMaxFileBufReadAhead=MAX_READ_AHEAD_VALUE;
    1.32 +
    1.33 +#ifndef FILE_BLOCK_SIZE
    1.34 +	#define FILE_BLOCK_SIZE 1024
    1.35 +#else
    1.36 +	#if FILE_BLOCK_SIZE < 512
    1.37 +		#error "FILE_BLOCK_SIZE macro value can't be less than 512"
    1.38 +	#endif
    1.39 +	#if ((FILE_BLOCK_SIZE) & ((FILE_BLOCK_SIZE) - 1)) != 0
    1.40 +		#error "FILE_BLOCK_SIZE macro value must be power of 2"
    1.41 +	#endif
    1.42 +#endif
    1.43 +
    1.44 +const TInt KFileBufBlockSize=FILE_BLOCK_SIZE;
    1.45 +
    1.46 +//
    1.47 +enum TFilePanic
    1.48 +	{
    1.49 +	EFileReadLengthNegative,
    1.50 +	EFileReadBeyondEnd,
    1.51 +	EFileReadNoTransfer,
    1.52 +	EFileWriteLengthNegative,
    1.53 +	EFileWriteBeyondEnd,
    1.54 +	EFileWriteNoTransfer,
    1.55 +	EFileWriteOutstanding,
    1.56 +	EFileMarkInvalid,
    1.57 +	EFileLocationInvalid,
    1.58 +	EFileStoreBadType,
    1.59 +	EStoreUid3MustNotBeNull
    1.60 +	};
    1.61 +
    1.62 +GLREF_C void Panic(TFilePanic aPanic);
    1.63 +
    1.64 +#include "UF_STD.INL"
    1.65 +