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: CMMCScBkupIndexSystemData implementation |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "CMMCScBkupIndexSystemData.h" |
|
20 |
|
21 // User includes |
|
22 #include "MMMCScBkupArchiveDataInterface.h" |
|
23 |
|
24 |
|
25 /** |
|
26 * System Data |
|
27 * =========== |
|
28 * |
|
29 * This is the format of the data written by the |
|
30 * CMMCScBkupStateArchiveOpSystemData object |
|
31 * |
|
32 * |
|
33 * SYSTEM DATA for DO 0 |
|
34 * { |
|
35 * SD for DO 0, 1st drive |
|
36 * SD for DO 0, 2nd drive |
|
37 * SD for DO 0, 'n'th drive |
|
38 * }, |
|
39 * SYSTEM DATA for DO 1 |
|
40 * { |
|
41 * SD for DO 0, 1st drive - (System data is only on |
|
42 * SD for DO 0, 2nd drive two drives) |
|
43 * }, |
|
44 * SYSTEM DATA for DO n |
|
45 * { |
|
46 * SD for DO 0, 1st drive - (System Data is only on one drive) |
|
47 * } |
|
48 * |
|
49 * System Data Index |
|
50 * ================= |
|
51 * |
|
52 * This is the format of the data written by this object. |
|
53 * The format allows the possibility of a future partial |
|
54 * restore (hopefully). |
|
55 * |
|
56 * |
|
57 * 4 bytes = count of system data entries |
|
58 * |
|
59 * FOR EACH DATA OWNER |
|
60 * { |
|
61 * 4 bytes = package id associated with a system data owner |
|
62 * 4 bytes = the number of different system data packages |
|
63 * for this particular system data owner (one for each |
|
64 * drive that was backed up) |
|
65 * ENTRY |
|
66 * { |
|
67 * 1 byte = Associated TDriveNumber of the system data |
|
68 * 8 bytes = offset & length of actual registration data |
|
69 * } |
|
70 * } |
|
71 * |
|
72 * |
|
73 **/ |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 // ========================= MEMBER FUNCTIONS ================================ |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // CMMCScBkupIndexSystemData::CMMCScBkupIndexSystemData() |
|
82 // |
|
83 // C++ constructor. |
|
84 // --------------------------------------------------------------------------- |
|
85 CMMCScBkupIndexSystemData::CMMCScBkupIndexSystemData() |
|
86 : CMMCScBkupIndexWithIdentifier< TInt32 >( EMMCScBkupOwnerDataTypeSystemData ) |
|
87 { |
|
88 } |
|
89 |
|
90 |
|
91 // --------------------------------------------------------------------------- |
|
92 // CMMCScBkupIndexSystemData::NewLC() |
|
93 // |
|
94 // |
|
95 // --------------------------------------------------------------------------- |
|
96 CMMCScBkupIndexSystemData* CMMCScBkupIndexSystemData::NewLC() |
|
97 { |
|
98 CMMCScBkupIndexSystemData* self = new(ELeave) CMMCScBkupIndexSystemData(); |
|
99 CleanupStack::PushL( self ); |
|
100 self->ConstructL(); |
|
101 return self; |
|
102 } |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|