|
1 // Copyright (c) 1999-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 __SMTPTESTPARSERS_H |
|
17 #define __SMTPTESTPARSERS_H |
|
18 |
|
19 #include "emailsmokeparse.h" |
|
20 #include "smtptests.h" |
|
21 |
|
22 // |
|
23 // |
|
24 // CNewSmtpTestCommandParser |
|
25 // |
|
26 |
|
27 class CNewSmtpTestCommandParser : public CBaseCommandParser |
|
28 { |
|
29 public: |
|
30 void ProcessL(); |
|
31 static CNewSmtpTestCommandParser* NewL(CTestScript& aScript, CEmailClientTest& aEmailClientTest); |
|
32 private: |
|
33 void ConstructL(); |
|
34 CNewSmtpTestCommandParser(CTestScript& aScript, CEmailClientTest& CEmailClientTest); |
|
35 CEmailClientTest& iEmailClientTest; |
|
36 CTestScript& iScript; |
|
37 }; |
|
38 |
|
39 |
|
40 |
|
41 // |
|
42 // |
|
43 // CSmtpServiceCommandParser |
|
44 // |
|
45 |
|
46 class CSmtpServiceCommandParser : public CBaseCommandParser |
|
47 { |
|
48 public: |
|
49 void ProcessL(); |
|
50 static CSmtpServiceCommandParser* NewL(CTestScript& aScript, CSmtpClientTest& aSmtpClientTest); |
|
51 private: |
|
52 void ConstructL(); |
|
53 CSmtpServiceCommandParser(CTestScript& aScript, CSmtpClientTest& aSmtpClientTest); |
|
54 CSmtpClientTest& iSmtpClientTest; |
|
55 CTestScript& iScript; |
|
56 }; |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 // |
|
62 // |
|
63 // CSmtpClientSectionParser |
|
64 // |
|
65 |
|
66 class CSmtpClientSectionParser : public CEmailClientSectionParser |
|
67 { |
|
68 public: |
|
69 static CSmtpClientSectionParser* NewL(CSmtpClientTest& aSmtpTest, CTestScript& aScript, const TDesC& aNewSectionName); |
|
70 |
|
71 protected: |
|
72 void ConstructL(const TDesC& aNewSectionName); |
|
73 CSmtpClientSectionParser(CSmtpClientTest& aSmtpTest, CTestScript& aScript); |
|
74 |
|
75 private: |
|
76 CSmtpClientTest& iSmtpTest; |
|
77 }; |
|
78 |
|
79 |
|
80 |
|
81 // |
|
82 // |
|
83 // CSmtpServiceSectionParser |
|
84 // |
|
85 |
|
86 class CImSmtpSettings; |
|
87 |
|
88 class CSmtpServiceSectionParser : public CEmailServiceSectionParser |
|
89 { |
|
90 public: |
|
91 static CSmtpServiceSectionParser* NewL(CTestScript& aScript, CEmailClientTest& aTestHarness, const TDesC& aSectionName); |
|
92 ~CSmtpServiceSectionParser(); |
|
93 |
|
94 protected: |
|
95 void ConstructL(const TDesC& aSectionName); |
|
96 CSmtpServiceSectionParser(CTestScript& aScript, CEmailClientTest& aTestHarness); |
|
97 }; |
|
98 |
|
99 |
|
100 |
|
101 // |
|
102 // |
|
103 // CSmtpServiceCommands |
|
104 // |
|
105 |
|
106 class CCreateSmtpService; |
|
107 |
|
108 class CSmtpServiceCommands : public CBaseCommandParser |
|
109 { |
|
110 public: |
|
111 static CSmtpServiceCommands* NewL(CCreateSmtpService& aTestState); |
|
112 void ProcessL(); |
|
113 |
|
114 private: |
|
115 CSmtpServiceCommands(CCreateSmtpService& aTestState); |
|
116 void ConstructL(); |
|
117 |
|
118 private: |
|
119 CCreateSmtpService& iTestState; |
|
120 }; |
|
121 |
|
122 |
|
123 |
|
124 // |
|
125 // |
|
126 // CSmtpCheckStatusParser |
|
127 // |
|
128 |
|
129 |
|
130 class CSmtpCheckStatusParser : public CBaseCommandParser |
|
131 { |
|
132 public: |
|
133 static CSmtpCheckStatusParser* NewL(CSmtpClientTest& aSmtpTestHarness); |
|
134 void ProcessL(); |
|
135 |
|
136 private: |
|
137 CSmtpCheckStatusParser(CSmtpClientTest& aSmtpTestHarness); |
|
138 void ConstructL(); |
|
139 |
|
140 private: |
|
141 CSmtpClientTest& iTestHarness; |
|
142 }; |
|
143 |
|
144 |
|
145 // |
|
146 // |
|
147 // CSmtpOperationParser |
|
148 // |
|
149 |
|
150 class CSmtpOperationParser : public CBaseCommandParser |
|
151 { |
|
152 public: |
|
153 void ProcessL(); |
|
154 static CSmtpOperationParser* NewL(CSmtpClientTest& iSmtpClientTest); |
|
155 private: |
|
156 void ConstructL(); |
|
157 CSmtpOperationParser(CSmtpClientTest& aSmtpClientTest); |
|
158 CSmtpClientTest& iSmtpClientTest; |
|
159 }; |
|
160 |
|
161 #endif |
|
162 |