sl@0: // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // f32\inc\common.h sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #if !defined(__COMMON_H__) sl@0: #define __COMMON_H__ sl@0: #if !defined(__F32FILE_H__) sl@0: #include sl@0: #endif sl@0: #include sl@0: #include "u32std.h" sl@0: sl@0: // sl@0: // Common constants used by both EFSRV and the filesystems sl@0: // sl@0: sl@0: sl@0: sl@0: /** sl@0: A bit mask representing a volume and file attribute combination. sl@0: sl@0: It represents a set of attributes that must not be set, unset or used sl@0: in calls to RFile::Set() and CMountCB::MatchEntryAtt(). sl@0: sl@0: @see CMountCB::MatchEntryAtt() sl@0: @see RFile::Set() sl@0: */ sl@0: const TUint KEntryAttIllegal=(KEntryAttVolume|KEntryAttDir); sl@0: sl@0: sl@0: sl@0: /** sl@0: A file attribute that marks the file as having been modified. This is an indication sl@0: that the file is modified but the modifications are not yet committed. sl@0: sl@0: @see RFs::SetEntry() sl@0: */ sl@0: const TUint KEntryAttModified=0x20000000; sl@0: sl@0: sl@0: sl@0: /** sl@0: Defines a criteria that states that an entry must be a file. sl@0: sl@0: This can be used in calls to CMountCB::MatchEntryAtt(). sl@0: sl@0: @see CMountCB::MatchEntryAtt() sl@0: */ sl@0: const TUint KEntryAttMustBeFile=0x80000000; sl@0: sl@0: sl@0: sl@0: /** sl@0: Indicates that data is to be read from the current read position when sl@0: passed to any of the Read() overloaded functions of RFile. sl@0: sl@0: This is maintained for BC. File server and file server client library, internally, sl@0: use KCurrentPosition64 for indicating a read / write request from current file position. sl@0: sl@0: @see RFile::Read() sl@0: @see KCurrentPosition64 sl@0: */ sl@0: const TInt KCurrentPosition=KMinTInt; sl@0: sl@0: sl@0: /** sl@0: Indicates that data is to be read from the current read position when sl@0: passed to any of the Read() overloaded functions of RFile. sl@0: sl@0: @prototype sl@0: sl@0: @see RFile::Read() sl@0: */ sl@0: const TInt64 KCurrentPosition64=(TInt64)KMaxTUint64; sl@0: sl@0: sl@0: sl@0: #endif