contentstorage/caclient/s60/src/caclientproxy.cpp
changeset 83 156f692b1687
parent 66 32469d7d46ff
equal deleted inserted replaced
80:397d00875918 83:156f692b1687
    36 #include "caqtsfhandlerloader.h"
    36 #include "caqtsfhandlerloader.h"
    37 
    37 
    38 //----------------------------------------------------------------------------
    38 //----------------------------------------------------------------------------
    39 //
    39 //
    40 //----------------------------------------------------------------------------
    40 //----------------------------------------------------------------------------
    41 CaClientProxy::CaClientProxy():
    41 CaClientProxy::CaClientProxy()
    42     mCommandHandler(new CaHandlerProxy(new CaQtSfHandlerLoader()))
       
    43 {
    42 {
    44 }
    43 }
    45 
    44 
    46 //----------------------------------------------------------------------------
    45 //----------------------------------------------------------------------------
    47 //
    46 //
   159                                      QList<int> &sourceIdList)
   158                                      QList<int> &sourceIdList)
   160 {
   159 {
   161     TRAPD(error, getEntryIdsL(query, sourceIdList));
   160     TRAPD(error, getEntryIdsL(query, sourceIdList));
   162 
   161 
   163     USE_QDEBUG_IF(error) << "CaClientProxy::getEntryIds - Error ("
   162     USE_QDEBUG_IF(error) << "CaClientProxy::getEntryIds - Error ("
   164                          << error << ")";
       
   165 
       
   166     return CaObjectAdapter::convertErrorCode(error);
       
   167 }
       
   168 
       
   169 //----------------------------------------------------------------------------
       
   170 //
       
   171 //----------------------------------------------------------------------------
       
   172 ErrorCode CaClientProxy::executeCommand(const CaEntry &entry,
       
   173                                         const QString &command)
       
   174 {
       
   175     TInt error = mCommandHandler->execute(entry, command);
       
   176 
       
   177     USE_QDEBUG_IF(error) << "CaClientProxy::executeCommand - Error ("
       
   178                          << error << ")";
   163                          << error << ")";
   179 
   164 
   180     return CaObjectAdapter::convertErrorCode(error);
   165     return CaObjectAdapter::convertErrorCode(error);
   181 }
   166 }
   182 
   167