|
1 // Copyright (c) 2004-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 #ifndef __WSPTESTTRANSACTIONS__ |
|
17 #define __WSPTESTTRANSACTIONS__ |
|
18 |
|
19 |
|
20 // User includes |
|
21 #include "trans.h" |
|
22 #include <http/mhttpsessioneventcallback.h> |
|
23 |
|
24 |
|
25 class CWspTestTransactions : public CHttpTestTransactions, public MHTTPSessionEventCallback |
|
26 { |
|
27 public: //methods |
|
28 static CWspTestTransactions* NewL(CScriptFile& aIniFile, CScriptFile* aIniSettingsFile, const TInt aSectionNumber); |
|
29 ~CWspTestTransactions(); |
|
30 |
|
31 protected: // methods |
|
32 virtual void DoRunL(); |
|
33 void ConnectToGatewayL(); |
|
34 void DisconnectFromGatewayL(); |
|
35 virtual void OpenTestSessionL(); |
|
36 virtual void CloseTestSession(); |
|
37 void DoCloseTestSession(); |
|
38 void CreateSingleTransactionL(); |
|
39 void SetWspSessionPropertiesL(); |
|
40 void SetWspProxyPropertiesL(TInt aStartItem); |
|
41 void SetWspCapabilityPropertiesL(TInt aStartItem); |
|
42 void SetWspSecurityPolicyPropertiesL(TInt aStartItem); |
|
43 void LogCertificate(); |
|
44 void LogCertL(); |
|
45 |
|
46 private: // methods |
|
47 CWspTestTransactions(CScriptFile* aIniSettingsFile); |
|
48 void ConstructL(CScriptFile& aIniFile, CScriptFile* aIniSettingsFile, const TInt aSectionNumber); |
|
49 virtual void MHFSessionRunL(const THTTPSessionEvent& aEvent); |
|
50 virtual TInt MHFSessionRunError(TInt aError, const THTTPSessionEvent& aEvent); |
|
51 |
|
52 private: // attributes |
|
53 THTTPSessionEvent iSessionEvent; |
|
54 TBool iAuthenticationFailure; |
|
55 /** This has the instance of the settings.ini file. This instance is passed |
|
56 to ReplaceHostNameL() function which uses this instance to retrieve the |
|
57 data from settings.ini file. |
|
58 */ |
|
59 CScriptFile* iIniSettingsFile; |
|
60 }; |
|
61 |
|
62 #endif // __WSPTESTTRANSACTIONS__ |