phoneclientserver/CallUI/Src/CaUiEngine/CaUiVoIPExtension.cpp
branchRCL_3
changeset 3 a4a774cb6ea7
parent 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
0:ff3b6d0fd310 3:a4a774cb6ea7
   118         for ( TInt i = 0; idArray.Count() > i; i++)
   118         for ( TInt i = 0; idArray.Count() > i; i++)
   119             {                        
   119             {                        
   120             // check if the service supports internet call                     	                                        
   120             // check if the service supports internet call                     	                                        
   121             CSPProperty* property = CSPProperty::NewLC();
   121             CSPProperty* property = CSPProperty::NewLC();
   122             // get attribute mask of the service
   122             // get attribute mask of the service
   123             User::LeaveIfError( settingsApi->FindPropertyL( idArray[i], 
   123 
   124                 EPropertyServiceAttributeMask, *property ) );
   124             TInt error = settingsApi->FindPropertyL( idArray[i], 
   125             
   125                 EPropertyServiceAttributeMask, *property );
   126             // read the value of mask property
   126             // read the value of mask property
   127             TInt mask = 0;                    
   127             if ( KErrNone == error )
   128             if ( KErrNone == property->GetValue( mask ) )
       
   129                 {
   128                 {
   130                 if ( ( mask & ESupportsInternetCall )
   129                 TInt mask = 0;                    
   131                     && ( mask & EIsVisibleInCallMenu ) ) 
   130                 if ( KErrNone == property->GetValue( mask ) )
   132                     {
   131                     {
   133                     aVoipServiceIds.Append( idArray[i] );
   132                     if ( ( mask & ESupportsInternetCall )
       
   133                         && ( mask & EIsVisibleInCallMenu ) ) 
       
   134                         {
       
   135                         aVoipServiceIds.Append( idArray[i] );
       
   136                         }
   134                     }
   137                     }
   135                 }
   138                 }   
   136             CleanupStack::PopAndDestroy( property );     
   139             CleanupStack::PopAndDestroy( property );     
   137             }                                   
   140             }                                   
   138         }
   141         }
   139     CleanupStack::PopAndDestroy( 2, settingsApi );
   142     CleanupStack::PopAndDestroy( 2, settingsApi );
   140     }
   143     }