voipplugins/sipconnectionprovider/src/scpsettinghandler.cpp
branchRCL_3
changeset 20 65a3ef1d5bd0
parent 15 43658d24f35d
equal deleted inserted replaced
18:8c9c07ad8b6b 20:65a3ef1d5bd0
    20 #include <spsettings.h>
    20 #include <spsettings.h>
    21 #include <spentry.h>
    21 #include <spentry.h>
    22 #include <spproperty.h>
    22 #include <spproperty.h>
    23 #include <spsettingsvoiputils.h>
    23 #include <spsettingsvoiputils.h>
    24 #include <pressettingsapi.h>
    24 #include <pressettingsapi.h>
    25 #include <xdmsettingsapi.h>
    25 #include <XdmSettingsApi.h>
    26 #include <xdmsettingscollection.h>
    26 #include <XdmSettingsCollection.h>
    27 
    27 
    28 #include "scpsettinghandler.h"
    28 #include "scpsettinghandler.h"
    29 #include "scpservice.h"
    29 #include "scpservice.h"
    30 #include "scpsubservice.h"
    30 #include "scpsubservice.h"
    31 #include "scplogger.h"
    31 #include "scplogger.h"
  1008     CleanupStack::PopAndDestroy( &entries );
  1008     CleanupStack::PopAndDestroy( &entries );
  1009     return length;
  1009     return length;
  1010     }
  1010     }
  1011 
  1011 
  1012 // -----------------------------------------------------------------------------
  1012 // -----------------------------------------------------------------------------
  1013 // CScpSettingHandler::IsVoIPOverWcdmaAllowedL
       
  1014 // -----------------------------------------------------------------------------
       
  1015 //
       
  1016 TBool CScpSettingHandler::IsVoIPOverWcdmaAllowedL( 
       
  1017     TUint32 aServiceId ) const
       
  1018     {
       
  1019     SCPLOGSTRING( "CScpSettingHandler::IsVoIPOverWcdmaAllowedL IN" );
       
  1020 
       
  1021     TBool response( EFalse );
       
  1022     RPointerArray<CRCSEProfileEntry> entries;
       
  1023 
       
  1024     // Push entries to cleanup stack
       
  1025     CleanupStack::PushL( TCleanupItem( TScpUtility::ResetAndDestroyEntries, 
       
  1026                                        &entries ) );
       
  1027 
       
  1028     iRcseProfileRegistry->FindByServiceIdL( aServiceId, entries );
       
  1029     
       
  1030     if ( entries.Count() )
       
  1031         {            
       
  1032         response = CRCSEProfileEntry::EOn == entries[ 0 ]->iAllowVoIPoverWCDMA;
       
  1033         }
       
  1034     else
       
  1035         {
       
  1036         User::Leave( KErrNotFound );
       
  1037         }
       
  1038     
       
  1039     CleanupStack::PopAndDestroy( &entries );
       
  1040     
       
  1041     SCPLOGSTRING2( 
       
  1042         "CScpSettingHandler::IsVoIPOverWcdmaAllowedL : allowed : %d OUT", 
       
  1043             response );
       
  1044     return response;
       
  1045     }
       
  1046 
       
  1047 // -----------------------------------------------------------------------------
       
  1048 // CScpSettingHandler::UpdateImSettingsL
  1013 // CScpSettingHandler::UpdateImSettingsL
  1049 // -----------------------------------------------------------------------------
  1014 // -----------------------------------------------------------------------------
  1050 //
  1015 //
  1051 void CScpSettingHandler::UpdateImSettingsL( CScpService& aService ) const
  1016 void CScpSettingHandler::UpdateImSettingsL( CScpService& aService ) const
  1052     {
  1017     {