MSenHostletResponse Class Reference

#include <mw/MSenHostletResponse.h>

class MSenHostletResponse
Public Member Functions
pure virtual TInt RequestId()
pure virtual TInt ResponseCode()
pure virtual MSenProperties *ResponseProperties()
pure virtual TPtrC8 ResponseUtf8()
pure virtual voidSetResponseUtf8L(const TDesC8 &, const TInt, MSenProperties *, MSenMessage *)

Member Function Documentation

RequestId ( )

TInt RequestId()const [pure virtual]

Getter for request (transaction) ID

Returns: the id of the request to which this is a response for

ResponseCode ( )

TInt ResponseCode()const [pure virtual]

Getter for response code

Returns: the response code (KErrNone or some error) that hostlet has provided

ResponseProperties ( )

MSenProperties *ResponseProperties()[pure virtual]

Getter for response properties

ResponseUtf8 ( )

TPtrC8 ResponseUtf8()[pure virtual]

Getter for response data

Returns: the set response as UTF-8 descriptor

SetResponseUtf8L ( const TDesC8 &, const TInt, MSenProperties *, MSenMessage * )

voidSetResponseUtf8L(const TDesC8 &aResponseUtf8,
const TIntaResponseCode =  KErrNone ,
MSenProperties *aResponseProperties = NULL,
MSenMessage *apMessage = NULL
)[pure virtual]

Set the response

ParameterDescription
aResponseUtf8is the response that this hostlet is providing
aResponsePropertiesmay be provided in order to pass (transport) properties with the response.