cellular/telephonysettings/xqbindings/psetwrapper/src/psetwrapper.cpp
changeset 13 e32024264ebb
parent 12 ae8abd0db65c
child 42 35488577e233
--- a/cellular/telephonysettings/xqbindings/psetwrapper/src/psetwrapper.cpp	Fri Mar 19 09:40:14 2010 +0200
+++ b/cellular/telephonysettings/xqbindings/psetwrapper/src/psetwrapper.cpp	Fri Apr 16 15:31:58 2010 +0300
@@ -16,12 +16,13 @@
  */
 
 
-#include <PsetContainer.h>
+#include <psetcontainer.h>
 #include "psetwrapper.h"
 #include "psetcliwrapper.h"
 #include "psetcallwaitingwrapper.h"
 #include "psetcalldivertingwrapper.h"
 #include "psetnetworkwrapper.h"
+#include "psetcallbarringwrapper.h"
 #include "logging.h"
 
 /*!
@@ -33,7 +34,8 @@
         m_wrapperCli(NULL),
         m_callWaitingWrapper(NULL),
         m_callDivertingWrapper(NULL),
-        m_networkWrapper(NULL)
+        m_networkWrapper(NULL),
+        m_callBarringWrapper(NULL)
 {
     DPRINT << ": IN ";
     
@@ -54,6 +56,7 @@
     delete m_callDivertingWrapper;
     delete m_networkWrapper;
     delete m_psetContainer;
+    delete m_callBarringWrapper;
     
     DPRINT << ": OUT ";
 }
@@ -120,4 +123,19 @@
     return *m_networkWrapper;    
 }
 
+/*!
+  PSetWrapper::callBarringWrapper
+ */
+PSetCallBarringWrapper& PSetWrapper::callBarringWrapper()
+{
+    DPRINT;
+    
+    if (!m_callBarringWrapper) {
+        m_callBarringWrapper = 
+            new PSetCallBarringWrapper(*m_psetContainer, this);
+    }
+    
+    return *m_callBarringWrapper;    
+}
+
 // End of File.