webservices/wsframework/src/sensyncrequester.cpp
branchRCL_3
changeset 11 6abf3d6055cd
parent 0 62f9d29f7211
equal deleted inserted replaced
7:7bc6ab9b5bcd 11:6abf3d6055cd
   146                                      const TInt /*aTxnId*/,
   146                                      const TInt /*aTxnId*/,
   147                                      MSenRemoteServiceConsumer& /*aConsumer*/,
   147                                      MSenRemoteServiceConsumer& /*aConsumer*/,
   148                                      MSenProperties* /*aResponseTransportProperties*/)
   148                                      MSenProperties* /*aResponseTransportProperties*/)
   149     {
   149     {
   150     // NONE of the errors between transport and session are handled in this level:
   150     // NONE of the errors between transport and session are handled in this level:
   151     delete apError;
   151     if(apError)
       
   152     	{
       
   153     	delete apError;
       
   154     	apError = NULL;
       
   155     	}
   152     return aErrorCode; // simply bounce the error back to the caller
   156     return aErrorCode; // simply bounce the error back to the caller
   153     }
   157     }
   154 
   158 
   155 const TDesC8& CSenSyncRequester::Id() const
   159 const TDesC8& CSenSyncRequester::Id() const
   156     {
   160     {
   174         iResponsePropertiesType = aResponseTransportProperties->PropertiesClassType();
   178         iResponsePropertiesType = aResponseTransportProperties->PropertiesClassType();
   175         ipResponseProperties = aResponseTransportProperties->AsUtf8L();
   179         ipResponseProperties = aResponseTransportProperties->AsUtf8L();
   176         }
   180         }
   177     // Now stop the SYNC wait in the SubmitL, so that the main thread 
   181     // Now stop the SYNC wait in the SubmitL, so that the main thread 
   178     // of the Serene Core Active Scheduler can continue it's execution
   182     // of the Serene Core Active Scheduler can continue it's execution
   179     iSchedulerWait.AsyncStop();
   183     if(iSchedulerWait.IsStarted())
       
   184     	iSchedulerWait.AsyncStop();
   180     return aTxnId;
   185     return aTxnId;
   181     }
   186     }
   182 
   187 
   183 // From MSenServiceSession
   188 // From MSenServiceSession
   184 TInt CSenSyncRequester::HandleErrorL(HBufC8* apError,
   189 TInt CSenSyncRequester::HandleErrorL(HBufC8* apError,
   193         iResponsePropertiesType = aResponseTransportProperties->PropertiesClassType();
   198         iResponsePropertiesType = aResponseTransportProperties->PropertiesClassType();
   194         ipResponseProperties = aResponseTransportProperties->AsUtf8L();
   199         ipResponseProperties = aResponseTransportProperties->AsUtf8L();
   195         }
   200         }
   196     // Now stop the SYNC wait in the SubmitL, so that the main thread 
   201     // Now stop the SYNC wait in the SubmitL, so that the main thread 
   197     // of the Serene Core Active Scheduler can continue it's execution
   202     // of the Serene Core Active Scheduler can continue it's execution
   198     iSchedulerWait.AsyncStop();
   203     if(iSchedulerWait.IsStarted())
       
   204     	iSchedulerWait.AsyncStop();
   199     return aTxnId;
   205     return aTxnId;
   200     }
   206     }
   201 
   207 
   202 void CSenSyncRequester::SetStatusL(const TInt /*aStatus*/)
   208 void CSenSyncRequester::SetStatusL(const TInt /*aStatus*/)
   203     {
   209     {