qthighway/xqserviceipc/xqserviceipc/xqserviceipc_apasymbian.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 24 9d760f716ca8
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
   196     // map return value
   196     // map return value
   197     if (err == KErrNone) {
   197     if (err == KErrNone) {
   198         iDataSize = dataSize;
   198         iDataSize = dataSize;
   199     }
   199     }
   200     
   200     
   201     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::sendSync DONE");
   201     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::sendSync status=%s", err);
   202     
   202     
   203     return (err == KErrNone);
   203     return (err == KErrNone);
   204 }
   204 }
   205 
   205 
   206 
   206 
   210 QByteArray CApaSymbianIPC::readAll()
   210 QByteArray CApaSymbianIPC::readAll()
   211 {
   211 {
   212     // this is sync operation
   212     // this is sync operation
   213     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll");
   213     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll");
   214     QByteArray rtn;
   214     QByteArray rtn;
   215     TRAPD( err, rtn = doReadAllL() );
   215     TInt err(KErrNone);
       
   216     TRAP( err, rtn = doReadAllL() );
       
   217     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll status=%d",err);
   216     if ( err )
   218     if ( err )
   217         {
   219         {
   218         emitError(err);
   220         emitError(err);
   219         }
   221         }
   220     return rtn;
   222     return rtn;
   290 void CApaSymbianIPC::readAll(QByteArray& aArray)
   292 void CApaSymbianIPC::readAll(QByteArray& aArray)
   291 {
   293 {
   292     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll");
   294     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll");
   293 
   295 
   294 	// this is async operation
   296 	// this is async operation
   295     TRAPD(err, doReadAllL(aArray ));
   297     TInt err(KErrNone);
       
   298     TRAP(err, doReadAllL(aArray ));
       
   299     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::readAll status=%d",err);
   296     if (err)
   300     if (err)
   297         {
   301         {
   298         emitError(err);
   302         emitError(err);
   299         }
   303         }
       
   304     
   300 }
   305 }
   301 
   306 
   302 /*!
   307 /*!
   303  Reads all data pending in the buffer, leaves if an error occured
   308  Reads all data pending in the buffer, leaves if an error occured
   304  @return QByteArray containing the result data
   309  @return QByteArray containing the result data
   448 void CApaSymbianIPC::StartExitMonitor()
   453 void CApaSymbianIPC::StartExitMonitor()
   449 {
   454 {
   450     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::StartExitMonitor");
   455     XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::StartExitMonitor");
   451     if (iServerExitMonitor == NULL)
   456     if (iServerExitMonitor == NULL)
   452         {
   457         {
   453         TRAPD( err, iServerExitMonitor = CApaServerAppExitMonitor::NewL(iSession,
   458         TInt err(KErrNone);
       
   459         TRAP( err, iServerExitMonitor = CApaServerAppExitMonitor::NewL(iSession,
   454                                                                         *this,
   460                                                                         *this,
   455                                                                         CActive::EPriorityStandard ));    
   461                                                                         CActive::EPriorityStandard ));    
       
   462         XQSERVICE_DEBUG_PRINT("CApaSymbianIPC::StartExitMonitor status=%d",err);
   456         }
   463         }
   457 }
   464 }
   458 
   465 
   459 /*!
   466 /*!
   460  HandleServerAppExit
   467  HandleServerAppExit