equal
deleted
inserted
replaced
884 void CSIPIMSProfileAgent::DeleteAllProfilesInWaitingQue() |
884 void CSIPIMSProfileAgent::DeleteAllProfilesInWaitingQue() |
885 { |
885 { |
886 PROFILE_DEBUG1("CSIPIMSProfileAgent::DeleteAllProfilesInWaitingQue") |
886 PROFILE_DEBUG1("CSIPIMSProfileAgent::DeleteAllProfilesInWaitingQue") |
887 |
887 |
888 CSIPConcreteProfile* profile = NULL; |
888 CSIPConcreteProfile* profile = NULL; |
889 for (TInt i=0; i< iWaitForRegisteringArray.Count();i++) |
889 for (TInt i = iWaitForRegisteringArray.Count() -1; i >= 0; --i) |
890 { |
890 { |
891 profile = iWaitForRegisteringArray[i]; |
891 profile = iWaitForRegisteringArray[i]; |
892 if (profile) |
892 if (profile) |
893 { |
893 { |
894 TerminateAndErrorEvent(*profile, KErrArgument); |
894 TerminateAndErrorEvent(*profile, KErrArgument); |
1343 RPointerArray<CSIPConcreteProfile>& aProfileArray, |
1343 RPointerArray<CSIPConcreteProfile>& aProfileArray, |
1344 CSIPConcreteProfile& aSIPConcreteProfile ) |
1344 CSIPConcreteProfile& aSIPConcreteProfile ) |
1345 { |
1345 { |
1346 TBool found = EFalse; |
1346 TBool found = EFalse; |
1347 CSIPConcreteProfile* profile = NULL; |
1347 CSIPConcreteProfile* profile = NULL; |
1348 for (TInt i=0; i< aProfileArray.Count() && !found; i++) |
1348 for (TInt i= aProfileArray.Count() -1; i >= 0 && !found; --i) |
1349 { |
1349 { |
1350 CSIPConcreteProfile* tmp = aProfileArray[ i ]; |
1350 CSIPConcreteProfile* tmp = aProfileArray[ i ]; |
1351 found = ( tmp->Id() == aSIPConcreteProfile.Id() ); |
1351 found = ( tmp->Id() == aSIPConcreteProfile.Id() ); |
1352 profile = NULL; |
1352 profile = NULL; |
1353 if ( found ) |
1353 if ( found ) |