|
1 // Copyright (c) 2005-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 __T_IMAPNEWMSGDURINGSYNCIDLECANCELSTEP_H__ |
|
17 #define __T_IMAPNEWMSGDURINGSYNCIDLECANCELSTEP_H__ |
|
18 |
|
19 #include <testexecutestepbase.h> |
|
20 #include "cspoofserver.h" |
|
21 #include <msvapi.h> |
|
22 |
|
23 class CImapNewMsgDuringSyncIdleCancelClient; |
|
24 class CEmailTestUtils; |
|
25 class TDummySessionObserver; |
|
26 |
|
27 class CImapNewMsgDuringSyncIdleCancelStep : public CTestStep, MImapTestEventHandler |
|
28 { |
|
29 public: |
|
30 CImapNewMsgDuringSyncIdleCancelStep(); |
|
31 ~CImapNewMsgDuringSyncIdleCancelStep(); |
|
32 virtual TVerdict doTestStepPreambleL(); |
|
33 virtual TVerdict doTestStepPostambleL(); |
|
34 virtual TVerdict doTestStepL(); |
|
35 |
|
36 private: |
|
37 void GetDetailsFromIniFileL(); |
|
38 void CreateImapAccountL(); |
|
39 void PrintEntryTime(TTime* aTIme); |
|
40 TInt GetEntryCountL(); |
|
41 virtual void TestComplete(TInt aErrorCode); |
|
42 |
|
43 private: |
|
44 CSpoofServer* iSpoofServer; |
|
45 CImapNewMsgDuringSyncIdleCancelClient* iImapClient; |
|
46 CConsoleBase* iConsole; |
|
47 CActiveScheduler* iScheduler; |
|
48 TMsvId iImapService; |
|
49 CEmailTestUtils* iTestUtils; |
|
50 CMsvSession* iSession; |
|
51 TInt iMessageEntryCount; |
|
52 TDummySessionObserver* iSessionObserver; |
|
53 TPtrC16 iScriptFile; |
|
54 TInt iExpectedEntryCount; |
|
55 }; |
|
56 |
|
57 _LIT(KTestImapNewMsgDuringSyncIdleCancel,"TestImapNewMsgDuringSyncIdleCancel"); |
|
58 |
|
59 #endif //__T_IMAPNEWMSGDURINGSYNCIDLECANCELSTEP_H__ |