|
1 /* |
|
2 * Copyright (c) 2005 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 CMMCScBkupIndexPublicDataFiles |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPINDEXPUBLICDATAFILES_H__ |
|
20 #define __CMMCSCBKUPINDEXPUBLICDATAFILES_H__ |
|
21 |
|
22 // System includes |
|
23 #include <f32file.h> |
|
24 |
|
25 // User includes |
|
26 #include "CMMCScBkupIndexBase.h" |
|
27 |
|
28 // Classes referenced |
|
29 class CMMCScBkupFileInfo; |
|
30 |
|
31 |
|
32 /** |
|
33 * |
|
34 * |
|
35 * @since 3.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS(CMMCScBkupIndexPublicDataFiles) : public CMMCScBkupIndexBase |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Static constructor |
|
43 */ |
|
44 static CMMCScBkupIndexPublicDataFiles* NewLC(); |
|
45 |
|
46 /** |
|
47 * C++ destructor |
|
48 */ |
|
49 ~CMMCScBkupIndexPublicDataFiles(); |
|
50 |
|
51 private: |
|
52 |
|
53 /** |
|
54 * C++ default constructor |
|
55 */ |
|
56 CMMCScBkupIndexPublicDataFiles(); |
|
57 |
|
58 public: // API |
|
59 |
|
60 /** |
|
61 * |
|
62 */ |
|
63 void AddIndexRecordL( const TMMCScBkupArchiveVector& aInfo, const CMMCScBkupFileInfo& aFile ); |
|
64 |
|
65 /** |
|
66 * |
|
67 */ |
|
68 inline TInt Count() const { return iEntries.Count(); } |
|
69 |
|
70 /** |
|
71 * |
|
72 */ |
|
73 const CMMCScBkupFileInfo& At( TInt aIndex, TMMCScBkupArchiveVector& aInfo ) const; |
|
74 |
|
75 public: // From CMMCScBkupIndexBase |
|
76 |
|
77 /** |
|
78 * |
|
79 */ |
|
80 void StoreL( MMMCScBkupDriver& aDriver ); |
|
81 |
|
82 /** |
|
83 * |
|
84 */ |
|
85 void RestoreL( MMMCScBkupDriver& aDriver ); |
|
86 |
|
87 private: // Internal classes |
|
88 |
|
89 /** |
|
90 * |
|
91 * @since 3.0 |
|
92 */ |
|
93 class TMMCScBkupPublicFileEntry |
|
94 { |
|
95 public: |
|
96 inline TMMCScBkupPublicFileEntry() { } |
|
97 inline TMMCScBkupPublicFileEntry(const TMMCScBkupArchiveVector& aInfo, const CMMCScBkupFileInfo& aFile) |
|
98 : iInfo(aInfo), iFile(&aFile) |
|
99 { |
|
100 } |
|
101 |
|
102 public: // Data members |
|
103 TMMCScBkupArchiveVector iInfo; |
|
104 const CMMCScBkupFileInfo* iFile; |
|
105 }; |
|
106 |
|
107 private: // Member data |
|
108 |
|
109 // |
|
110 RArray<TMMCScBkupPublicFileEntry> iEntries; |
|
111 |
|
112 }; |
|
113 |
|
114 |
|
115 #endif // __CMMCSCBKUPINDEXPUBLICDATAFILES_H__ |
|
116 |
|
117 //End of File |