equal
deleted
inserted
replaced
247 // |
247 // |
248 void CSIPProfileCSSession::UpdateProfileL(const RMessage2& aMessage) |
248 void CSIPProfileCSSession::UpdateProfileL(const RMessage2& aMessage) |
249 { |
249 { |
250 HBufC8* profileBuf = iHelper.ReadLC(ESipProfileItcArgProfile,aMessage); |
250 HBufC8* profileBuf = iHelper.ReadLC(ESipProfileItcArgProfile,aMessage); |
251 CSIPConcreteProfile* profile = InternalizeProfileLC(*profileBuf); |
251 CSIPConcreteProfile* profile = InternalizeProfileLC(*profileBuf); |
252 TBool canProceed = iCore.UpdateProfileToStoreL(profile, *this); |
252 TBool updateAllowed = iCore.IsUpdateAllowed(profile); |
253 CleanupStack::Pop(profile); |
253 if(updateAllowed) |
254 CleanupStack::PopAndDestroy(profileBuf); |
254 { |
255 if (canProceed) |
255 TBool canProceed = iCore.UpdateProfileToStoreL(profile, *this); |
256 { |
256 CleanupStack::Pop(profile); |
257 iCore.UpdateRegistrationL(profile->Id(), *this); |
257 CleanupStack::PopAndDestroy(profileBuf); |
258 } |
258 if (canProceed) |
|
259 { |
|
260 iCore.UpdateRegistrationL(profile->Id(), *this); |
|
261 } |
|
262 } |
|
263 else |
|
264 { |
|
265 User::Leave(KErrNotSupported); |
|
266 } |
259 } |
267 } |
260 |
268 |
261 // ----------------------------------------------------------------------------- |
269 // ----------------------------------------------------------------------------- |
262 // CSIPProfileCSSession::RemoveProfileL |
270 // CSIPProfileCSSession::RemoveProfileL |
263 // ----------------------------------------------------------------------------- |
271 // ----------------------------------------------------------------------------- |