equal
deleted
inserted
replaced
101 CWriteableJavaRegistryEntry* writeableEntry |
101 CWriteableJavaRegistryEntry* writeableEntry |
102 = WritableEntry()->EmbeddedEntryByUidL(aEntryUid); |
102 = WritableEntry()->EmbeddedEntryByUidL(aEntryUid); |
103 |
103 |
104 if (writeableEntry == NULL) |
104 if (writeableEntry == NULL) |
105 { |
105 { |
106 WLOG(EJavaStorage, |
106 ILOG(EJavaStorage, |
107 "Can't find entry for the given uid, returning NULL."); |
107 "Can't find entry for the given uid, returning NULL."); |
108 return NULL; |
108 return NULL; |
109 } |
109 } |
110 CleanupStack::PushL(writeableEntry); |
110 CleanupStack::PushL(writeableEntry); |
111 |
111 |
117 entryType < EGeneralApplication) |
117 entryType < EGeneralApplication) |
118 { |
118 { |
119 entry |
119 entry |
120 = new(ELeave) CJavaRegistryPackageEntry( |
120 = new(ELeave) CJavaRegistryPackageEntry( |
121 (CWriteableJavaRegistryPackageEntry*) writeableEntry); |
121 (CWriteableJavaRegistryPackageEntry*) writeableEntry); |
122 LOG(EJavaStorage, EInfo, "PackageEntry created"); |
122 ILOG(EJavaStorage, "PackageEntry created"); |
123 } |
123 } |
124 else if (EGeneralApplication <= entryType) |
124 else if (EGeneralApplication <= entryType) |
125 { |
125 { |
126 entry |
126 entry |
127 = new(ELeave) CJavaRegistryApplicationEntry |
127 = new(ELeave) CJavaRegistryApplicationEntry |
128 ((CWriteableJavaRegistryApplicationEntry*) writeableEntry); |
128 ((CWriteableJavaRegistryApplicationEntry*) writeableEntry); |
129 LOG(EJavaStorage, EInfo, "ApplicationEntry created"); |
129 ILOG(EJavaStorage, "ApplicationEntry created"); |
130 } |
130 } |
131 else |
131 else |
132 { |
132 { |
133 ELOG(EJavaStorage, "Invalid type, returning NULL"); |
133 ELOG(EJavaStorage, "Invalid type, returning NULL"); |
134 CleanupStack::PopAndDestroy(writeableEntry); |
134 CleanupStack::PopAndDestroy(writeableEntry); |
165 entryType < EGeneralApplication) |
165 entryType < EGeneralApplication) |
166 { |
166 { |
167 entry |
167 entry |
168 = new(ELeave) CJavaRegistryPackageEntry( |
168 = new(ELeave) CJavaRegistryPackageEntry( |
169 (CWriteableJavaRegistryPackageEntry*) writeableEntry); |
169 (CWriteableJavaRegistryPackageEntry*) writeableEntry); |
170 LOG(EJavaStorage, EInfo, "PackageEntry created"); |
170 ILOG(EJavaStorage, "PackageEntry created"); |
171 } |
171 } |
172 else if (EGeneralApplication <= entryType) |
172 else if (EGeneralApplication <= entryType) |
173 { |
173 { |
174 entry |
174 entry |
175 = new(ELeave) CJavaRegistryApplicationEntry |
175 = new(ELeave) CJavaRegistryApplicationEntry |
176 ((CWriteableJavaRegistryApplicationEntry*) writeableEntry); |
176 ((CWriteableJavaRegistryApplicationEntry*) writeableEntry); |
177 LOG(EJavaStorage, EInfo, "ApplicationEntry created"); |
177 ILOG(EJavaStorage, "ApplicationEntry created"); |
178 } |
178 } |
179 else |
179 else |
180 { |
180 { |
181 ELOG(EJavaStorage, "Invalid type, returning NULL"); |
181 ELOG(EJavaStorage, "Invalid type, returning NULL"); |
182 CleanupStack::PopAndDestroy(writeableEntry); |
182 CleanupStack::PopAndDestroy(writeableEntry); |