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: CMMCScBkupIndexPassiveData implementation |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "CMMCScBkupIndexPassiveData.h" |
|
20 |
|
21 // User includes |
|
22 #include "MMMCScBkupArchiveDataInterface.h" |
|
23 |
|
24 |
|
25 /** |
|
26 * Passive Data |
|
27 * =========== |
|
28 * |
|
29 * |
|
30 * |
|
31 * Passive Data Index |
|
32 * ================= |
|
33 * |
|
34 * This is the format of the data written by this object. |
|
35 * The format allows the possibility of a future partial |
|
36 * restore (hopefully). |
|
37 * |
|
38 * |
|
39 * 4 bytes = count of passive data entries |
|
40 * |
|
41 * FOR EACH DATA OWNER |
|
42 * { |
|
43 * 4 bytes = secure id associated with a passive data owner |
|
44 * 4 bytes = the number of different data entries for this |
|
45 * particular passive data owner (one for each |
|
46 * drive that was backed up) |
|
47 * ENTRY |
|
48 * { |
|
49 * 1 byte = Associated TDriveNumber of the system data |
|
50 * 8 bytes = offset and size to passive data |
|
51 * } |
|
52 * } |
|
53 * |
|
54 * |
|
55 **/ |
|
56 |
|
57 |
|
58 |
|
59 // ========================= MEMBER FUNCTIONS ================================ |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // CMMCScBkupIndexPassiveData::CMMCScBkupIndexPassiveData() |
|
63 // |
|
64 // C++ constructor. |
|
65 // --------------------------------------------------------------------------- |
|
66 CMMCScBkupIndexPassiveData::CMMCScBkupIndexPassiveData() |
|
67 : CMMCScBkupIndexWithIdentifier< TSecureId >( EMMCScBkupOwnerDataTypePassiveData ) |
|
68 { |
|
69 } |
|
70 |
|
71 |
|
72 // --------------------------------------------------------------------------- |
|
73 // CMMCScBkupIndexPassiveData::NewLC() |
|
74 // |
|
75 // |
|
76 // --------------------------------------------------------------------------- |
|
77 CMMCScBkupIndexPassiveData* CMMCScBkupIndexPassiveData::NewLC() |
|
78 { |
|
79 CMMCScBkupIndexPassiveData* self = new(ELeave) CMMCScBkupIndexPassiveData(); |
|
80 CleanupStack::PushL( self ); |
|
81 self->ConstructL(); |
|
82 return self; |
|
83 } |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|