contentstorage/caclient/src/caservice.cpp
changeset 83 156f692b1687
parent 80 397d00875918
child 103 b99b84bcd2d1
--- a/contentstorage/caclient/src/caservice.cpp	Thu May 27 13:11:12 2010 +0300
+++ b/contentstorage/caclient/src/caservice.cpp	Fri Jun 11 13:58:37 2010 +0300
@@ -30,6 +30,8 @@
 
 #include "caclientproxy.h"
 #include "caclientnotifierproxy.h"
+#include "cahandlerproxy.h"
+#include "caqtsfhandlerloader.h"
 #include "caobjectadapter.h"
 #include "caclienttest_global.h"
 
@@ -89,7 +91,6 @@
 CaService::CaService(QObject *parent) :
     QObject(parent), m_d(new CaServicePrivate(this))
 {
-
 }
 
 /*!
@@ -944,7 +945,10 @@
  \param servicePublic pointer to public service
  */
 CaServicePrivate::CaServicePrivate(CaService *servicePublic) :
-    m_q(servicePublic), mProxy(new CaClientProxy), 
+    m_q(servicePublic),
+    mCommandHandler(new CaHandlerProxy(QSharedPointer<CaHandlerLoader>
+        (new CaQtSfHandlerLoader()))),
+    mProxy(new CaClientProxy()),
     mNotifierProxy(NULL)
 {
     const ErrorCode connectionResult = mProxy->connect();
@@ -1338,7 +1342,7 @@
         touch(entry);
     }
 
-    mErrorCode = mProxy->executeCommand(entry, command);
+    mErrorCode = mCommandHandler->execute(entry, command);
 
     qDebug() << "CaServicePrivate::executeCommand mErrorCode on return:"
              << mErrorCode;