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 CMMCScBkupArchiveInfo |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPARCHIVEINFO_H__ |
|
20 #define __CMMCSCBKUPARCHIVEINFO_H__ |
|
21 |
|
22 // System includes |
|
23 #include <f32file.h> |
|
24 #include <babitflags.h> |
|
25 #include <barsread.h> |
|
26 |
|
27 #include "CMMCScBkupFileInfo.h" |
|
28 |
|
29 /** |
|
30 * Class for encapsulating category specific information |
|
31 * |
|
32 * @since 3.2 |
|
33 */ |
|
34 NONSHARABLE_CLASS(CMMCScBkupArchiveInfo) : public CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Static constructor |
|
40 */ |
|
41 static CMMCScBkupArchiveInfo* NewL( TResourceReader& aReader ); |
|
42 |
|
43 /** |
|
44 * Static constructor |
|
45 */ |
|
46 static CMMCScBkupArchiveInfo* NewL( const TEntry& aEntry ); |
|
47 |
|
48 /** |
|
49 * Static constructor |
|
50 */ |
|
51 static CMMCScBkupArchiveInfo* NewLC( const TEntry& aEntry ); |
|
52 |
|
53 /** |
|
54 * C++ destructor |
|
55 */ |
|
56 ~CMMCScBkupArchiveInfo(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * C++ default constructor |
|
62 */ |
|
63 CMMCScBkupArchiveInfo(); |
|
64 |
|
65 /** |
|
66 * C++ default constructor |
|
67 */ |
|
68 //CMMCScBkupArchiveInfo( const TEntry& aEntry ); |
|
69 |
|
70 /** |
|
71 * |
|
72 */ |
|
73 void ConstructL( const TEntry& aEntry ); |
|
74 |
|
75 public: // API - Setters |
|
76 |
|
77 /** |
|
78 * |
|
79 */ |
|
80 void SetTargetDrive( TDriveUnit aDrive ) { iTargetDrive = aDrive; } |
|
81 |
|
82 /** |
|
83 * |
|
84 */ |
|
85 void SetCategory(TBitFlags aCategories) { iCategory = aCategories; } |
|
86 |
|
87 /** |
|
88 * |
|
89 */ |
|
90 void SetSpecialFlags(TBitFlags aFlags) { iSpecialFlags = aFlags; } |
|
91 |
|
92 /** |
|
93 * |
|
94 */ |
|
95 void SetExcludedSpecialFlags(TBitFlags aFlags) { iExcludedSpecialFlags = aFlags; } |
|
96 |
|
97 /** |
|
98 * |
|
99 */ |
|
100 void SetSIDs( RArray<TSecureId>& aSIDs ); |
|
101 |
|
102 /** |
|
103 * |
|
104 */ |
|
105 void SetExcludedSIDs( RArray<TSecureId>& aExcludedSIDs ); |
|
106 |
|
107 public: // API - Getters |
|
108 |
|
109 /** |
|
110 * |
|
111 */ |
|
112 IMPORT_C TBitFlags Category() const; |
|
113 |
|
114 /** |
|
115 * |
|
116 */ |
|
117 IMPORT_C const TDesC& FileName() const; |
|
118 |
|
119 /** |
|
120 * |
|
121 */ |
|
122 IMPORT_C const TTime& DateTime() const; |
|
123 |
|
124 /** |
|
125 * |
|
126 */ |
|
127 IMPORT_C TDriveNumber Drive() const; |
|
128 |
|
129 /** |
|
130 * |
|
131 */ |
|
132 TBitFlags SpecialFlags() const { return iSpecialFlags; } |
|
133 |
|
134 /** |
|
135 * |
|
136 */ |
|
137 TBitFlags ExcludedSpecialFlags() const { return iExcludedSpecialFlags; } |
|
138 |
|
139 /** |
|
140 * |
|
141 */ |
|
142 const RArray<TSecureId>& SIDs( TBitFlags aCategory ) const; |
|
143 |
|
144 /** |
|
145 * |
|
146 */ |
|
147 const RArray<TSecureId>& ExcludedSIDs( TBitFlags aCategory ) const; |
|
148 |
|
149 private: // Member data |
|
150 |
|
151 // |
|
152 TDriveUnit iTargetDrive; |
|
153 // |
|
154 TBitFlags iCategory; |
|
155 // |
|
156 TBitFlags iSpecialFlags; |
|
157 // |
|
158 TBitFlags iExcludedSpecialFlags; |
|
159 // |
|
160 CMMCScBkupFileInfo* iFileInfo; |
|
161 // |
|
162 RArray<TSecureId> iSecureIds; |
|
163 // |
|
164 RArray<TSecureId> iExcludedSecureIds; |
|
165 }; |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 #endif // __CMMCSCBKUPARCHIVEINFO_H__ |
|
171 |
|
172 //End of File |
|