|
1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // f32\inc\common.h |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedPartner |
|
21 @released |
|
22 */ |
|
23 |
|
24 #if !defined(__COMMON_H__) |
|
25 #define __COMMON_H__ |
|
26 #if !defined(__F32FILE_H__) |
|
27 #include <f32file.h> |
|
28 #endif |
|
29 #include "u32std.h" |
|
30 |
|
31 // |
|
32 // Common constants used by both EFSRV and the filesystems |
|
33 // |
|
34 |
|
35 |
|
36 |
|
37 /** |
|
38 A bit mask representing a volume and file attribute combination. |
|
39 |
|
40 It represents a set of attributes that must not be set, unset or used |
|
41 in calls to RFile::Set() and CMountCB::MatchEntryAtt(). |
|
42 |
|
43 @see CMountCB::MatchEntryAtt() |
|
44 @see RFile::Set() |
|
45 */ |
|
46 const TUint KEntryAttIllegal=(KEntryAttVolume|KEntryAttDir); |
|
47 |
|
48 |
|
49 |
|
50 /** |
|
51 A file attribute that marks the file as having been modified. This is an indication |
|
52 that the file is modified but the modifications are not yet committed. |
|
53 |
|
54 @see RFs::SetEntry() |
|
55 */ |
|
56 const TUint KEntryAttModified=0x20000000; |
|
57 |
|
58 |
|
59 |
|
60 /** |
|
61 Defines a criteria that states that an entry must be a file. |
|
62 |
|
63 This can be used in calls to CMountCB::MatchEntryAtt(). |
|
64 |
|
65 @see CMountCB::MatchEntryAtt() |
|
66 */ |
|
67 const TUint KEntryAttMustBeFile=0x80000000; |
|
68 |
|
69 |
|
70 |
|
71 /** |
|
72 Indicates that data is to be read from the current read position when |
|
73 passed to any of the Read() overloaded functions of RFile. |
|
74 |
|
75 This is maintained for BC. File server and file server client library, internally, |
|
76 use KCurrentPosition64 for indicating a read / write request from current file position. |
|
77 |
|
78 @see RFile::Read() |
|
79 @see KCurrentPosition64 |
|
80 */ |
|
81 const TInt KCurrentPosition=KMinTInt; |
|
82 |
|
83 |
|
84 /** |
|
85 Indicates that data is to be read from the current read position when |
|
86 passed to any of the Read() overloaded functions of RFile. |
|
87 |
|
88 @prototype |
|
89 |
|
90 @see RFile::Read() |
|
91 */ |
|
92 const TInt64 KCurrentPosition64=(TInt64)KMaxTUint64; |
|
93 |
|
94 |
|
95 |
|
96 #endif |