cellular/telephonysettings/xqbindings/psetwrapper/src/psetcallbarringwrapper_p.cpp
changeset 48 78df25012fda
parent 19 e44a8c097b15
--- a/cellular/telephonysettings/xqbindings/psetwrapper/src/psetcallbarringwrapper_p.cpp	Fri Sep 03 13:59:20 2010 +0300
+++ b/cellular/telephonysettings/xqbindings/psetwrapper/src/psetcallbarringwrapper_p.cpp	Fri Sep 17 17:09:13 2010 +0300
@@ -214,6 +214,7 @@
   PSetCallBarringWrapperPrivate::enableBarring
  */
 void PSetCallBarringWrapperPrivate::enableBarring(
+        int basicServiceGroup,
         PsServiceGroup serviceGroup,
         PSetCallBarringWrapper::BarringType barringType,
         QString barringPassword)
@@ -226,11 +227,9 @@
     setting.iServiceGroup = convertServiceGroup(serviceGroup);
     setting.iPassword.Copy(barringPassword.utf16());
     
-    TBasicServiceGroups serviceGroups = EAllTeleAndBearer;
-    
     m_currentRequest = RequestEnableBarring;
-    QT_TRAP_THROWING(
-        m_callBarring->SetBarringL(setting, serviceGroups);
+    QT_TRAP_THROWING(m_callBarring->SetBarringL(
+        setting, static_cast<TBasicServiceGroups>(basicServiceGroup));
     )
 }
 
@@ -239,6 +238,7 @@
   PSetCallBarringWrapperPrivate::disableBarring
  */
 void PSetCallBarringWrapperPrivate::disableBarring(
+    int basicServiceGroup,
     PsServiceGroup serviceGroup,
     PSetCallBarringWrapper::BarringType barringType,
     QString barringPassword)
@@ -251,12 +251,10 @@
     setting.iServiceGroup = convertServiceGroup(serviceGroup);
     setting.iPassword.Copy(barringPassword.utf16());
     
-    TBasicServiceGroups serviceGroups = EAllTeleAndBearer;
-
     m_currentRequest = RequestDisableBarring;
-    QT_TRAP_THROWING(
-        m_callBarring->SetBarringL(setting, serviceGroups);
-    )    
+    QT_TRAP_THROWING(m_callBarring->SetBarringL(
+        setting, static_cast<TBasicServiceGroups>(basicServiceGroup));
+    )
 }