|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file MWspSessionHeadersProvider.h |
|
18 @warning : This file contains Rose Model ID comments - please do not delete |
|
19 */ |
|
20 |
|
21 #ifndef __MWSPSESSIONHEADERSPROVIDER_H__ |
|
22 #define __MWSPSESSIONHEADERSPROVIDER_H__ |
|
23 |
|
24 // System includes |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 class MWspSessionHeadersProvider |
|
29 /** |
|
30 @class MWspSessionHeadersProvider |
|
31 @since 7.0 |
|
32 The MWspSessionHeadersProvider API provides an interface for accessing and |
|
33 setting the Client and Server session headers, respectively. The Client |
|
34 session headers can be accessed to send to the Server in the S-Connect.req |
|
35 primitive. Any header information that is returned from the Server in the |
|
36 S-Connect.cnf can be passed to the Client. |
|
37 @publishedAll |
|
38 @deprecated |
|
39 */ |
|
40 { |
|
41 public: // Methods |
|
42 |
|
43 /** |
|
44 @fn ClientHeaders() const =0 |
|
45 Intended Usage : Provides the Client session headers as an encoded buffer. |
|
46 @since 7.0 |
|
47 @return A const reference to a buffer containing the encoded headers. |
|
48 */ |
|
49 virtual const TDesC8& ClientHeaders() const =0; |
|
50 |
|
51 /** |
|
52 @fn SetServerHeadersL(const TDesC8& aBuffer) =0; |
|
53 Intended Usage : Sets the Server session headers. Any headers returned |
|
54 from the Server are passed to the Client in their encoded |
|
55 form. |
|
56 @since 7.0 |
|
57 @leave Leave code KErrNoMemory if the headers cannot be set. |
|
58 @param aBuffer A const reference to a buffer containing the encoded |
|
59 session headers from the Server. |
|
60 @post The Server session headers have been passed to the Client. |
|
61 */ |
|
62 virtual void SetServerHeadersL(const TDesC8& aBuffer) =0; |
|
63 }; |
|
64 |
|
65 #endif // __MWSPSESSIONHEADERSPROVIDER_H__ |