equal
deleted
inserted
replaced
168 if (erx != KErrNone) |
168 if (erx != KErrNone) |
169 { |
169 { |
170 RDEBUG_2( "CDeliveryComponentStorage::ConstructL() ERROR CentRep not initialized: Check deployment! %d", erx ); |
170 RDEBUG_2( "CDeliveryComponentStorage::ConstructL() ERROR CentRep not initialized: Check deployment! %d", erx ); |
171 User::Leave(erx); |
171 User::Leave(erx); |
172 } |
172 } |
|
173 |
173 TInt err(iRepository->Get(KNextIdKey, iNextId) ); |
174 TInt err(iRepository->Get(KNextIdKey, iNextId) ); |
174 if (err == KErrNotFound) |
175 if (err == KErrNotFound) |
175 { |
176 { |
176 iNextId = KMinIdValue; |
177 iNextId = KMinIdValue; |
177 User::LeaveIfError(iRepository->Create(KNextIdKey, iNextId) ); |
178 User::LeaveIfError(iRepository->Create(KNextIdKey, iNextId) ); |
179 else |
180 else |
180 { |
181 { |
181 User::LeaveIfError(err); |
182 User::LeaveIfError(err); |
182 } |
183 } |
183 LoadComponentsL(); |
184 LoadComponentsL(); |
|
185 |
184 } |
186 } |
185 |
187 |
186 void CDeliveryComponentStorage::LoadCertsL() |
188 void CDeliveryComponentStorage::LoadCertsL() |
187 { |
189 { |
188 RFs fs; |
190 RFs fs; |