|
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 #include "smstestutils.h" |
|
17 |
|
18 #include <msvapi.h> |
|
19 #include <popcmtm.h> |
|
20 |
|
21 class TestUiTimer; |
|
22 class CInternetAccessTester : public CBase |
|
23 { |
|
24 public: |
|
25 static CInternetAccessTester* NewL(CSmsTestUtils& aTestUtils); |
|
26 void StartL(TMsvId aEntryId); |
|
27 ~CInternetAccessTester(); |
|
28 private: |
|
29 CInternetAccessTester(CSmsTestUtils& aTestUtils); |
|
30 |
|
31 virtual void ConstructL(); |
|
32 |
|
33 CMsvSession& Session() {return *iSmsTest.iMsvSession;} |
|
34 CMsvEntry& MsvEntry() {return *iSmsTest.iMsvEntry;} |
|
35 CSmsClientMtm& Client() {return *iSmsTest.iSmsClientMtm;} |
|
36 |
|
37 void GetParsedFieldStoreL(); |
|
38 void InternalizeL(RMsvReadStream& aReadStream); |
|
39 |
|
40 void GetIspAndMailServiceL(); |
|
41 void GetMailServiceL(const TDesC& aServiceName); |
|
42 void GetIAPL(const TDesC& aIspName); |
|
43 |
|
44 void TestRefreshL(); |
|
45 void TestQuitL(); |
|
46 |
|
47 private: |
|
48 enum TIapTestState |
|
49 { |
|
50 EIapTestGetIapAndService, |
|
51 EIapTestRefresh, |
|
52 EIapTestQuit |
|
53 } |
|
54 iState; |
|
55 |
|
56 CSmsTestUtils& iSmsTest; |
|
57 TMsvId iEntryId; |
|
58 CArrayPtrSeg<CParsedField>* iParsedFieldArray; |
|
59 CMsvEntrySelection* iSelection; |
|
60 |
|
61 TMsvId iServiceId; |
|
62 TUint32 iIap; |
|
63 |
|
64 CClientMtmRegistry* iClientMtmRegistry; |
|
65 CPop3ClientMtm* iPop3ClientMtm; |
|
66 TestUiTimer* iTimer; |
|
67 }; |