|
1 /* |
|
2 * Copyright (c) 2002 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: Inline definition for CMsengInfoArray |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 inline CArrayFix<TInt64>* CMsengInfoArray::UidResults() const |
|
21 { |
|
22 return iUidResultArray; |
|
23 } |
|
24 |
|
25 inline CArrayFix<TInt64>* CMsengInfoArray::ExtResults() const |
|
26 { |
|
27 return iExtResultArray; |
|
28 } |
|
29 |
|
30 inline CArrayFix<TInt64>* CMsengInfoArray::GroupResults() const |
|
31 { |
|
32 return iGroupResultArray; |
|
33 } |
|
34 |
|
35 inline const CArrayFix<TUid>& CMsengInfoArray::Uids() const |
|
36 { |
|
37 return *iUidArray; |
|
38 } |
|
39 |
|
40 inline const CDesCArray& CMsengInfoArray::Exts() const |
|
41 { |
|
42 return *iExtArray; |
|
43 } |
|
44 |
|
45 inline const CDesCArray& CMsengInfoArray::Dirs() const |
|
46 { |
|
47 return *iDirArray; |
|
48 } |
|
49 |
|
50 inline const CDesCArray& CMsengInfoArray::DataDirs() const |
|
51 { |
|
52 return *iDataDirArray; |
|
53 } |
|
54 |
|
55 inline const CArrayFix<TInt>& CMsengInfoArray::DataDirGroups() const |
|
56 { |
|
57 return *iDataDirGroupArray; |
|
58 } |
|
59 |
|
60 inline const CArrayPtrFlat<CDesCArray>& CMsengInfoArray::DataDirExcludedFiles() const |
|
61 { |
|
62 return *iDataDirExclArray; |
|
63 } |
|
64 |
|
65 inline const TDriveNumber CMsengInfoArray::CurrentDrive() const |
|
66 { |
|
67 return iCurrentScannedDrive; |
|
68 } |
|
69 |
|
70 inline void CMsengInfoArray::AddSizeByUidL(TInt aUid, TInt aSize) |
|
71 { |
|
72 // The array must have been initialized to contain zeros! |
|
73 (*iUidResultArray)[aUid] += aSize; |
|
74 } |
|
75 |
|
76 inline void CMsengInfoArray::AddSizeByExtL(TInt aExt, TInt aSize) |
|
77 { |
|
78 // The array must have been initialized to contain zeros! |
|
79 (*iExtResultArray)[aExt] += aSize; |
|
80 } |
|
81 |
|
82 inline void CMsengInfoArray::AddSizeByGroupL(TInt aGroupIndex, TInt aSize) |
|
83 { |
|
84 // The array must have been initialized to contain zeros! |
|
85 (*iGroupResultArray)[aGroupIndex] += aSize; |
|
86 } |
|
87 |
|
88 // End of File |