1 /* |
|
2 * Copyright (c) 2005-2008 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: Declaration for CMMCScBkupFileListCollection |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPFILELISTCOLLECTION_H__ |
|
20 #define __CMMCSCBKUPFILELISTCOLLECTION_H__ |
|
21 |
|
22 // System includes |
|
23 #include <f32file.h> |
|
24 |
|
25 // User includes |
|
26 #include "RMMCScBkupPointerArray.h" |
|
27 #include "CMMCScBkupFileInfo.h" |
|
28 #include <babitflags.h> |
|
29 |
|
30 |
|
31 /** |
|
32 * |
|
33 * |
|
34 * @since 3.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS(CMMCScBkupFileListCollection) : public CBase |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Static constructor |
|
42 */ |
|
43 static CMMCScBkupFileListCollection* NewL( TBitFlags aCategory, RFs& aFsSession ); |
|
44 |
|
45 /** |
|
46 * C++ destructor |
|
47 */ |
|
48 ~CMMCScBkupFileListCollection(); |
|
49 |
|
50 private: |
|
51 |
|
52 /** |
|
53 * C++ default constructor |
|
54 */ |
|
55 CMMCScBkupFileListCollection( TBitFlags aCategory, RFs& aFsSession ); |
|
56 |
|
57 /** |
|
58 * |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 public: // API |
|
63 |
|
64 /** |
|
65 * |
|
66 */ |
|
67 void AppendL( const RArray<TEntry>& aArray, RArray< const CMMCScBkupFileInfo* >& aAddedItems, TSecureId aAssociatedSID ); |
|
68 |
|
69 /** |
|
70 * |
|
71 */ |
|
72 void AppendL( CMMCScBkupFileInfo* aFileInfo ); |
|
73 |
|
74 /** |
|
75 * |
|
76 */ |
|
77 TInt Count() const; |
|
78 |
|
79 /** |
|
80 * |
|
81 */ |
|
82 const CMMCScBkupFileInfo& Entry(TInt aIndex) const; |
|
83 |
|
84 /** |
|
85 * |
|
86 */ |
|
87 void Remove( TInt aIndex ); |
|
88 |
|
89 /** |
|
90 * |
|
91 */ |
|
92 void Reset(); |
|
93 |
|
94 /** |
|
95 * |
|
96 */ |
|
97 TBitFlags Category() const { return iCategory; } |
|
98 |
|
99 private: // Member data |
|
100 |
|
101 // Array of data owners |
|
102 RMMCScBkupPointerArray<CMMCScBkupFileInfo> iEntries; |
|
103 // |
|
104 TBitFlags iCategory; |
|
105 // |
|
106 RFs& iFsSession; |
|
107 }; |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 #endif // __CMMCSCBKUPFILELISTCOLLECTION_H__ |
|
113 |
|
114 //End of File |
|