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 of CMMCScBkupArchiveFooter |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPARCHIVEFOOTER_H__ |
|
20 #define __CMMCSCBKUPARCHIVEFOOTER_H__ |
|
21 |
|
22 // System includes |
|
23 #include <e32base.h> |
|
24 |
|
25 // User includes |
|
26 #include "CMMCScBkupIndexBase.h" |
|
27 #include "RMMCScBkupPointerArray.h" |
|
28 #include "TMMCScBkupDriveAndSize.h" |
|
29 |
|
30 // Classes referenced |
|
31 class MMMCScBkupDriver; |
|
32 class MMMCScBkupArchiveDataInterface; |
|
33 class CMMCScBkupIndexRegistrationData; |
|
34 |
|
35 |
|
36 |
|
37 /** |
|
38 * |
|
39 * |
|
40 * @since 3.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS(CMMCScBkupArchiveFooter) : public CBase |
|
43 { |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Static constructor |
|
48 */ |
|
49 static CMMCScBkupArchiveFooter* NewL( MMMCScBkupArchiveDataInterface& aDataInterface, MMMCScBkupDriver& aDriver ); |
|
50 |
|
51 /** |
|
52 * C++ destructor |
|
53 */ |
|
54 ~CMMCScBkupArchiveFooter(); |
|
55 |
|
56 private: |
|
57 |
|
58 /** |
|
59 * C++ default constructor |
|
60 */ |
|
61 CMMCScBkupArchiveFooter( MMMCScBkupArchiveDataInterface& aDataInterface, MMMCScBkupDriver& aDriver ); |
|
62 |
|
63 /** |
|
64 * |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 public: // API |
|
69 |
|
70 /** |
|
71 * |
|
72 */ |
|
73 CMMCScBkupIndexBase& IndexByType( TMMCScBkupOwnerDataType aType ); |
|
74 |
|
75 /** |
|
76 * |
|
77 */ |
|
78 CMMCScBkupIndexBase* IndexByTypeOrNull( TMMCScBkupOwnerDataType aType ); |
|
79 |
|
80 public: // Store/Restore |
|
81 |
|
82 /** |
|
83 * |
|
84 */ |
|
85 void StoreL(); |
|
86 |
|
87 /** |
|
88 * |
|
89 */ |
|
90 void RestoreL( TInt aCalculatedFooterOffsetWithinArchive ); |
|
91 |
|
92 private: // Internal enumerations |
|
93 enum |
|
94 { |
|
95 EStreamFormatVersion1 = 1 |
|
96 }; |
|
97 |
|
98 private: // Member data |
|
99 |
|
100 // |
|
101 MMMCScBkupArchiveDataInterface& iDataInterface; |
|
102 // |
|
103 MMMCScBkupDriver& iDriver; |
|
104 // |
|
105 RMMCScBkupPointerArray< CMMCScBkupIndexBase > iIndicies; |
|
106 }; |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 #endif // __CMMCSCBKUPARCHIVEFOOTER_H__ |
|
112 |
|
113 //End of File |
|