MSenServiceConsumer Class Reference

API published in: S60 3rd Ed

Link against: senservconn.lib

Capability Information

Required Capabilities

NetworkServices ReadUserData WriteUserData


#include <msenserviceconsumer.h>

Detailed Description

An interface class for SenServiceConnection callbacks from remote service.

Public Member Functions

virtual void  HandleMessageL (const TDesC8 &aMessage)=0
  Receive response to a request submitted.
virtual void  HandleErrorL (const TInt aErrorCode, const TDesC8 &aMessage)=0
  Error occured.
virtual void  SetStatus (const TInt aStatus)=0
  This method is called when the status of the connection to the service changes.

Member Function Documentation

virtual void MSenServiceConsumer::HandleErrorL const TInt  aErrorCode,
const TDesC8 &  aMessage
[pure virtual]
 

Error occured.

Parameters:
aError  error code. Error codes are some of the following: KErrSenNotInitialized Connection hasn't been initialized. KErrConnectionInitializing Connection is still initializing. KErrSubmitting Submitting a message failed, e.g. tried to send a NULL message. KErrConnectionExpired Connection has expired and needs to be renewed. KErrSenSoapFault A SOAP fault occurred, aMessage should contain more detailed information. KErrSenInternal Internal error in Web Services framework KErrUnknown An unexpected major error has occurred and cause is unknown. Other possible error codes can be HTTP error codes or system-wide Symbian error codes.
virtual void MSenServiceConsumer::HandleMessageL const TDesC8 &  aMessage  )  [pure virtual]
 

Receive response to a request submitted.

Parameters:
aMessage  incoming message. The ownerships is transfered with the message ,)
virtual void MSenServiceConsumer::SetStatus const TInt  aStatus  )  [pure virtual]
 

This method is called when the status of the connection to the service changes.

Parameters:
aStatus  is connection state indicator, which could be specified by the actual service invocation framework implementation. The following status codes are possible for any installed framework: KSenConnectionStatusNew Connection is being initialized, but not yet ready. KSenConnectionStatusReady Connection is ready to be used. For example, SubmitL() and SendL() methods (depending of framework) are in invocable state. KSenConnectionStatusExpired Connection is expired. Typically, a new connection needs next to be initialized in order to communicate with the underlying service behind this service connection.

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top