diff -r 7d48bed6ce0c -r 987c9837762f phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp --- a/phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp Tue Aug 31 15:45:17 2010 +0300 +++ b/phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp Wed Sep 01 12:15:03 2010 +0100 @@ -18,12 +18,12 @@ // INCLUDE FILES -#include "cauivoipextension.h" -#include +#include "CaUiVoIPExtension.h" +#include #include #include #include -#include // String Loader. +#include // String Loader. @@ -90,7 +90,7 @@ } CleanupStack::PopAndDestroy( &voipServiceIds ); - return isProfiles; + return isProfiles; } // ----------------------------------------------------------------------------- @@ -117,22 +117,25 @@ // of them supports internet call for ( TInt i = 0; idArray.Count() > i; i++) { - // check if the service supports internet call + // check if the service supports internet call CSPProperty* property = CSPProperty::NewLC(); // get attribute mask of the service - User::LeaveIfError( settingsApi->FindPropertyL( idArray[i], - EPropertyServiceAttributeMask, *property ) ); - + + TInt error = settingsApi->FindPropertyL( idArray[i], + EPropertyServiceAttributeMask, *property ); // read the value of mask property - TInt mask = 0; - if ( KErrNone == property->GetValue( mask ) ) + if ( KErrNone == error ) { - if ( ( mask & ESupportsInternetCall ) - && ( mask & EIsVisibleInCallMenu ) ) + TInt mask = 0; + if ( KErrNone == property->GetValue( mask ) ) { - aVoipServiceIds.Append( idArray[i] ); + if ( ( mask & ESupportsInternetCall ) + && ( mask & EIsVisibleInCallMenu ) ) + { + aVoipServiceIds.Append( idArray[i] ); + } } - } + } CleanupStack::PopAndDestroy( property ); } }