equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
86 |
86 |
87 void CCreGenerator::ExternalizeCre(TUint8 aPersistVersion,const CHeapRepository& aRep, RWriteStream& aStream) |
87 void CCreGenerator::ExternalizeCre(TUint8 aPersistVersion,const CHeapRepository& aRep, RWriteStream& aStream) |
88 { |
88 { |
89 aStream << aPersistVersion; |
89 aStream << aPersistVersion; |
90 aStream << aRep.iUid ; |
90 aStream << aRep.iUid ; |
|
91 #ifdef SYMBIAN_INCLUDE_APP_CENTRIC |
|
92 if (aPersistVersion>=KPersistFormatSupportsPma) |
|
93 { |
|
94 aStream << aRep.iKeyspaceType; |
|
95 } |
|
96 #endif |
91 aStream << aRep.iOwner ; |
97 aStream << aRep.iOwner ; |
92 |
98 |
93 TUint32 count=aRep.iSinglePolicies.Count(); |
99 TUint32 count=aRep.iSinglePolicies.Count(); |
94 aStream << count; |
100 aStream << count; |
95 for(TUint32 i=0; i<count;i++) |
101 for(TUint32 i=0; i<count;i++) |
144 RDebug::Print(_L("CSharedRepository::InternalizeCreL - expected UID (from filename) - %08X, UID extracted from binary file - %08X "), aRep.iUid.iUid, tempUid.iUid); |
150 RDebug::Print(_L("CSharedRepository::InternalizeCreL - expected UID (from filename) - %08X, UID extracted from binary file - %08X "), aRep.iUid.iUid, tempUid.iUid); |
145 #endif |
151 #endif |
146 User::Leave(KErrCorrupt); |
152 User::Leave(KErrCorrupt); |
147 } |
153 } |
148 |
154 |
|
155 #ifdef SYMBIAN_INCLUDE_APP_CENTRIC |
|
156 if (version>=KPersistFormatSupportsPma) |
|
157 { |
|
158 aStream >> aRep.iKeyspaceType; |
|
159 } |
|
160 else |
|
161 { |
|
162 aRep.iKeyspaceType = ENonPMAKeyspace; |
|
163 } |
|
164 #endif |
149 aStream >> aRep.iOwner ; |
165 aStream >> aRep.iOwner ; |
150 |
166 |
151 TUint32 count; |
167 TUint32 count; |
152 aStream >> count; |
168 aStream >> count; |
153 for(TUint32 i=0; i<count;i++) |
169 for(TUint32 i=0; i<count;i++) |