|
1 /* |
|
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef R_SEN_HOSTLET_CONNECTION_H |
|
26 #define R_SEN_HOSTLET_CONNECTION_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32base.h> |
|
30 #include <flogger.h> |
|
31 |
|
32 // FORWARD DECLARE |
|
33 class CSenSoapEnvelope; |
|
34 class CSenChunk; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 class RSenHostletConnection : public RSessionBase |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * C++ default constructor. |
|
42 */ |
|
43 RSenHostletConnection(); |
|
44 |
|
45 // New functions |
|
46 TInt Connect(); |
|
47 TVersion Version() const; |
|
48 |
|
49 void CancelSession(TRequestStatus& aStatus); |
|
50 |
|
51 TInt Establish(TDesC8& aHostletServiceDescription); |
|
52 void AwaitRequest(TRequestStatus& aStatus, TDes8& aErrPtr, TDes8& aTxnPtr); |
|
53 TInt AcquireRequestHandle(TDes8& aErrPtr, TDes8& aTxnPtr); |
|
54 |
|
55 void ProvideResponse(TRequestStatus& aStatus, |
|
56 TDes8& aErrPtr, TDes8& aTxnPtr, |
|
57 CSenChunk& aClientOp, |
|
58 const TInt aResponseCode); |
|
59 |
|
60 TInt ConnectionID(); |
|
61 TInt RegisterTransferObserver(const TDesC* aServerName, TAny* aConnection); |
|
62 |
|
63 // void SetTlsLogChannel(TInt aTlsLogChannel); |
|
64 |
|
65 private: // Helper functions |
|
66 RFileLogger* Log() const; |
|
67 |
|
68 private: // Data |
|
69 RFileLogger* iLog; |
|
70 TInt iTlsLogChannel; |
|
71 }; |
|
72 |
|
73 #endif //R_SEN_HOSTLET_CONNECTION_H |
|
74 |