|
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 CMMCScBkupIndexBase |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPINDEXBASE_H__ |
|
20 #define __CMMCSCBKUPINDEXBASE_H__ |
|
21 |
|
22 // System includes |
|
23 #include <e32base.h> |
|
24 |
|
25 // User includes |
|
26 #include "MMMCScBkupDriver.h" |
|
27 #include "TMMCScBkupOwnerDataType.h" |
|
28 #include "RMMCScBkupPointerArray.h" |
|
29 #include "TMMCScBkupArchiveVector.h" |
|
30 |
|
31 |
|
32 /** |
|
33 * |
|
34 * |
|
35 * @since 3.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS(CMMCScBkupIndexBase) : public CBase |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * C++ destructor |
|
43 */ |
|
44 ~CMMCScBkupIndexBase(); |
|
45 |
|
46 protected: |
|
47 |
|
48 /** |
|
49 * C++ default constructor |
|
50 */ |
|
51 CMMCScBkupIndexBase(TMMCScBkupOwnerDataType aType); |
|
52 |
|
53 /** |
|
54 * |
|
55 */ |
|
56 virtual void ConstructL(); |
|
57 |
|
58 public: // API |
|
59 |
|
60 /** |
|
61 * |
|
62 */ |
|
63 inline TMMCScBkupOwnerDataType Type() const { return iType; } |
|
64 |
|
65 /** |
|
66 * |
|
67 */ |
|
68 inline const TMMCScBkupArchiveVector& Vector() const { return iVector; } |
|
69 |
|
70 /** |
|
71 * |
|
72 */ |
|
73 inline void SetVector( const TMMCScBkupArchiveVector& aVector ) { iVector = aVector; } |
|
74 |
|
75 public: // Store/Restore |
|
76 |
|
77 /** |
|
78 * |
|
79 */ |
|
80 virtual void StoreL(MMMCScBkupDriver& aDriver) = 0; |
|
81 |
|
82 /** |
|
83 * |
|
84 */ |
|
85 virtual void RestoreL(MMMCScBkupDriver& aDriver) = 0; |
|
86 |
|
87 private: // Member data |
|
88 |
|
89 // |
|
90 TMMCScBkupOwnerDataType iType; |
|
91 // |
|
92 TMMCScBkupArchiveVector iVector; |
|
93 }; |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 #endif // __CMMCSCBKUPINDEXBASE_H__ |
|
99 |
|
100 //End of File |