qthighway/xqserviceipc/xqserviceipc/xqserviceipc_symbian.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 24 9d760f716ca8
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
   178 // this is sync operation
   178 // this is sync operation
   179 
   179 
   180     XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll");
   180     XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll");
   181     QByteArray rtn;
   181     QByteArray rtn;
   182     
   182     
   183     TRAPD( err, rtn = doReadAllL() );
   183     TInt err(KErrNone);
       
   184     TRAP( err, rtn = doReadAllL() );
       
   185     XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll status=%d",err);
   184     
   186     
   185     if ( err )
   187     if ( err )
   186         {
   188         {
   187         emitError(err);
   189         emitError(err);
   188         }
   190         }
   259 void CServiceSymbianIPC::readAll(QByteArray& aArray)
   261 void CServiceSymbianIPC::readAll(QByteArray& aArray)
   260 {
   262 {
   261     XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll");
   263     XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll");
   262 	
   264 	
   263     // this is async operation
   265     // this is async operation
   264     TRAPD(err, doReadAllL(aArray));
   266     TInt err(KErrNone);
       
   267     TRAP(err, doReadAllL(aArray));
       
   268     XQSERVICE_DEBUG_PRINT("CServiceSymbianIPC::readAll status=%d", err);
   265     if (err)
   269     if (err)
   266         {
   270         {
   267         emitError(err);
   271         emitError(err);
   268         }
   272         }
       
   273     
   269 }
   274 }
   270 
   275 
   271 /*!
   276 /*!
   272  Reads all data pending in the buffer, leaves if an error occured
   277  Reads all data pending in the buffer, leaves if an error occured
   273  @return QByteArray containing the result data
   278  @return QByteArray containing the result data