2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Hostlet response call back interface
19 #ifndef MSEN_HOSTLET_RESPONSE_H
20 #define MSEN_HOSTLET_RESPONSE_H
29 class MSenHostletResponse
34 * @param aResponseUtf8 is the response that this hostlet is providing
35 * @param aCode can be set to error code, in case that request is not
36 * accepted by this hostlet.
37 * @param aResponseProperties may be provided in order to pass (transport)
38 * properties with the response.
39 * @param aResponseMessage may be provided in order to pass concrete
40 * message object with the response (like libxml2 based SOAP-ENV,
43 virtual void SetResponseUtf8L(const TDesC8& aResponseUtf8,
44 const TInt aResponseCode = KErrNone,
45 MSenProperties* aResponseProperties = NULL,
46 MSenMessage* apMessage = NULL) = 0;
49 * Getter for request (transaction) ID
50 * @return the id of the request to which this is a response for
52 virtual TInt RequestId() const = 0;
55 * Getter for response data
56 * @return the set response as UTF-8 descriptor
58 virtual TPtrC8 ResponseUtf8() = 0;
61 * Getter for response code
62 * @return the response code (KErrNone or some error) that hostlet has provided
64 virtual TInt ResponseCode() const = 0;
67 * Getter for response properties
69 virtual MSenProperties* ResponseProperties() = 0;
72 #endif // MSEN_HOSTLET_RESPONSE_H