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