diff -r 594d59766373 -r 7d48bed6ce0c phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp --- a/phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp Thu Aug 19 10:28:14 2010 +0300 +++ b/phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp Tue Aug 31 15:45:17 2010 +0300 @@ -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,25 +117,22 @@ // 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 - - TInt error = settingsApi->FindPropertyL( idArray[i], - EPropertyServiceAttributeMask, *property ); + User::LeaveIfError( settingsApi->FindPropertyL( idArray[i], + EPropertyServiceAttributeMask, *property ) ); + // read the value of mask property - if ( KErrNone == error ) + TInt mask = 0; + if ( KErrNone == property->GetValue( mask ) ) { - TInt mask = 0; - if ( KErrNone == property->GetValue( mask ) ) + if ( ( mask & ESupportsInternetCall ) + && ( mask & EIsVisibleInCallMenu ) ) { - if ( ( mask & ESupportsInternetCall ) - && ( mask & EIsVisibleInCallMenu ) ) - { - aVoipServiceIds.Append( idArray[i] ); - } + aVoipServiceIds.Append( idArray[i] ); } - } + } CleanupStack::PopAndDestroy( property ); } }