os/kernelhwsrv/userlibandfileserver/fileserver/inc/common.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/inc/common.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,97 @@
     1.4 +// Copyright (c) 1996-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 the License "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 +// f32\inc\common.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @publishedPartner
    1.24 + @released
    1.25 +*/
    1.26 +
    1.27 +#if !defined(__COMMON_H__)
    1.28 +#define __COMMON_H__
    1.29 +#if !defined(__F32FILE_H__)
    1.30 +#include <f32file.h>
    1.31 +#endif
    1.32 +#include <d32locd.h>
    1.33 +#include "u32std.h"
    1.34 +
    1.35 +//
    1.36 +// Common constants used by both EFSRV and the filesystems
    1.37 +//
    1.38 +
    1.39 +
    1.40 +
    1.41 +/**
    1.42 +A bit mask representing a volume and file attribute combination.
    1.43 +
    1.44 +It represents a set of attributes that must not be set, unset or used
    1.45 +in calls to RFile::Set() and CMountCB::MatchEntryAtt().
    1.46 +
    1.47 +@see CMountCB::MatchEntryAtt()
    1.48 +@see RFile::Set()
    1.49 +*/
    1.50 +const TUint KEntryAttIllegal=(KEntryAttVolume|KEntryAttDir);
    1.51 +
    1.52 +
    1.53 +
    1.54 +/**
    1.55 +A file attribute that marks the file as having been modified. This is an indication
    1.56 +that the file is modified but the modifications are not yet committed.
    1.57 +
    1.58 +@see RFs::SetEntry()
    1.59 +*/
    1.60 +const TUint KEntryAttModified=0x20000000;
    1.61 +
    1.62 +
    1.63 +
    1.64 +/**
    1.65 +Defines a criteria that states that an entry must be a file.
    1.66 +
    1.67 +This can be used in calls to CMountCB::MatchEntryAtt().
    1.68 +
    1.69 +@see CMountCB::MatchEntryAtt()
    1.70 +*/
    1.71 +const TUint KEntryAttMustBeFile=0x80000000;
    1.72 +
    1.73 +
    1.74 +
    1.75 +/**
    1.76 +Indicates that data is to be read from the current read position when
    1.77 +passed to any of the Read() overloaded functions of RFile.
    1.78 +
    1.79 +This is maintained for BC. File server and file server client library, internally, 
    1.80 +use KCurrentPosition64 for indicating a read / write request from current file position. 
    1.81 +
    1.82 +@see RFile::Read()
    1.83 +@see KCurrentPosition64
    1.84 +*/
    1.85 +const TInt KCurrentPosition=KMinTInt;
    1.86 +
    1.87 +
    1.88 +/**
    1.89 +Indicates that data is to be read from the current read position when
    1.90 +passed to any of the Read() overloaded functions of RFile.
    1.91 +
    1.92 +@prototype
    1.93 +
    1.94 +@see RFile::Read()
    1.95 +*/
    1.96 +const TInt64 KCurrentPosition64=(TInt64)KMaxTUint64;
    1.97 +
    1.98 +
    1.99 +
   1.100 +#endif