equal
deleted
inserted
replaced
193 // ----------------------------------------------------------------------------- |
193 // ----------------------------------------------------------------------------- |
194 // |
194 // |
195 TBool CGSSIPModel::SaveProfileL() |
195 TBool CGSSIPModel::SaveProfileL() |
196 { |
196 { |
197 __GSLOGSTRING("CGSSIPModel::SaveProfileL" ) |
197 __GSLOGSTRING("CGSSIPModel::SaveProfileL" ) |
|
198 if( iNewProfile ) |
|
199 { |
|
200 return EFalse; |
|
201 } |
198 TBool modifications = ETrue; |
202 TBool modifications = ETrue; |
199 TInt err( KErrNone ); |
203 TInt err( KErrNone ); |
200 |
204 |
201 CheckDuplicateNameL( iProfileData.iID, iProfileData.iProviderName ); |
205 CheckDuplicateNameL( iProfileData.iID, iProfileData.iProviderName ); |
202 |
206 |
1197 __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL Start" ) |
1201 __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL Start" ) |
1198 CSIPManagedProfile* profile = iProfiles->At( aIndex ); |
1202 CSIPManagedProfile* profile = iProfiles->At( aIndex ); |
1199 |
1203 |
1200 if ( profile ) |
1204 if ( profile ) |
1201 { |
1205 { |
1202 profile->GetParameter( KSIPProfileRegistered, aIsUse ); |
|
1203 profile->GetParameter( KSIPDefaultProfile, aDefault ); |
1206 profile->GetParameter( KSIPDefaultProfile, aDefault ); |
1204 profile->GetParameter( KSIPProfileLocked, aLocked ); |
1207 profile->GetParameter( KSIPProfileLocked, aLocked ); |
|
1208 aIsUse = iEngine->IsInUseL( *profile ); |
1205 } |
1209 } |
1206 __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL End" ) |
1210 __GSLOGSTRING("CGSSIPModel::CheckProfileForDeleteL End" ) |
1207 } |
1211 } |
1208 |
1212 |
1209 // ----------------------------------------------------------------------------- |
1213 // ----------------------------------------------------------------------------- |