1 /* |
|
2 * Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: inlines for file table data structure |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ---------------------------------------------------------------------------- |
|
20 // CRsfwFileTable::Volume |
|
21 // ---------------------------------------------------------------------------- |
|
22 // |
|
23 inline CRsfwVolume* CRsfwFileTable::Volume() |
|
24 { |
|
25 return iVolume; |
|
26 } |
|
27 |
|
28 // ---------------------------------------------------------------------------- |
|
29 // CRsfwFileTable::Root |
|
30 // ---------------------------------------------------------------------------- |
|
31 // |
|
32 inline CRsfwFileEntry* CRsfwFileTable::Root() |
|
33 { |
|
34 return iRootFep; |
|
35 } |
|
36 |
|
37 // ---------------------------------------------------------------------------- |
|
38 // CRsfwFileTable::Permanence |
|
39 // ---------------------------------------------------------------------------- |
|
40 // |
|
41 inline const TBool CRsfwFileTable::Permanence() const |
|
42 { |
|
43 return iPermanence; |
|
44 } |
|
45 |
|
46 // ---------------------------------------------------------------------------- |
|
47 // CRsfwFileTable::OpenFileCount |
|
48 // ---------------------------------------------------------------------------- |
|
49 // |
|
50 inline TInt CRsfwFileTable::OpenFileCount() |
|
51 { |
|
52 return iOpenFileCount; |
|
53 } |
|
54 |
|
55 // ---------------------------------------------------------------------------- |
|
56 // CRsfwFileTable::UpdateOpenFileCount |
|
57 // ---------------------------------------------------------------------------- |
|
58 // |
|
59 inline void CRsfwFileTable::UpdateOpenFileCount(TInt aDelta) |
|
60 { |
|
61 iOpenFileCount += aDelta; |
|
62 if (iOpenFileCount < 0) |
|
63 { |
|
64 iOpenFileCount = 0; |
|
65 } |
|
66 } |
|