|
1 /** |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef __CMTF_TEST_ACTION_UTILS_IMAP_SCRIPTS_H__ |
|
26 #define __CMTF_TEST_ACTION_UTILS_IMAP_SCRIPTS_H__ |
|
27 |
|
28 class TImapAccount; |
|
29 |
|
30 #include <e32std.h> |
|
31 |
|
32 |
|
33 // Forward declarations |
|
34 class CMtfTestCase; |
|
35 class CMtfTestActionUtilsConfigFileParser; |
|
36 class CImIAPPreferences; |
|
37 class CImImap4Settings; |
|
38 class CImSmtpSettings; |
|
39 |
|
40 class CMtfTestActionUtilsImapScripts |
|
41 { |
|
42 |
|
43 private: |
|
44 static void ReadIAPAndAddL( CMtfTestCase& aTestCase, |
|
45 CMtfTestActionUtilsConfigFileParser* aScriptFileParser , |
|
46 const TDesC& aParamListName , CImIAPPreferences& aIapPref ); |
|
47 static void _ReadIAPAndAddL( CMtfTestCase& aTestCase, |
|
48 CMtfTestActionUtilsConfigFileParser* aScriptFileParser , |
|
49 const TDesC& aFieldName , CImIAPPreferences& aIapPref ); |
|
50 static TBool GetString( const TDesC& aStringPtr , |
|
51 TInt& aStart, TInt aEnd , TPtrC& aBaseString ); |
|
52 |
|
53 public: |
|
54 static void ReadImapSettingsFromConfigurationFileL(CMtfTestCase& aTestCase, const TDesC& aSettingsFile, |
|
55 CImImap4Settings& aImapSet, CImIAPPreferences& aImapIapPref, |
|
56 CImSmtpSettings& aSmtpSet, CImIAPPreferences& aSmtpIapPref); |
|
57 |
|
58 static TBool CompareIapPrefs(CImIAPPreferences& prefs1, CImIAPPreferences& prefs2); |
|
59 |
|
60 private: |
|
61 CMtfTestActionUtilsImapScripts() {}; |
|
62 ~CMtfTestActionUtilsImapScripts() {}; |
|
63 }; |
|
64 |
|
65 #endif |