1 /* |
|
2 * Copyright (c) 2006 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: test case |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BCTEST_COMMON_DLG_H |
|
20 #define BCTEST_COMMON_DLG_H |
|
21 |
|
22 #include "bctestcase.h" |
|
23 |
|
24 class MAknFileFilter; |
|
25 |
|
26 /** |
|
27 * test case for various list classes |
|
28 */ |
|
29 class CBCTestCommonDlg: public CBCTestCase |
|
30 { |
|
31 public: // constructor and destructor |
|
32 |
|
33 /** |
|
34 * Symbian 2nd static constructor |
|
35 */ |
|
36 static CBCTestCommonDlg* NewL(); |
|
37 |
|
38 /** |
|
39 * Destructor |
|
40 */ |
|
41 virtual ~CBCTestCommonDlg(); |
|
42 |
|
43 public: // from CBCTestCase |
|
44 |
|
45 /** |
|
46 * Execute corresponding test functions for UI command |
|
47 * @param aCmd, UI command |
|
48 */ |
|
49 void RunL( TInt aCmd ); |
|
50 |
|
51 protected: // new functions |
|
52 |
|
53 /** |
|
54 * Build autotest script |
|
55 */ |
|
56 void BuildScriptL(); |
|
57 |
|
58 /** |
|
59 * Create control or allocate resource for test |
|
60 * @param aCmd UI command, maybe you need to do some work |
|
61 * for different outline |
|
62 */ |
|
63 |
|
64 /** |
|
65 * Release resource used in test |
|
66 */ |
|
67 void Teardown(); |
|
68 |
|
69 /** |
|
70 * Test functions |
|
71 */ |
|
72 |
|
73 private: // constructor |
|
74 |
|
75 /** |
|
76 * C++ default constructor |
|
77 */ |
|
78 CBCTestCommonDlg(); |
|
79 |
|
80 /** |
|
81 * Symbian 2nd constructor |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 private: // data |
|
86 void RunCopyL(TInt aCmd); |
|
87 void RunSaveL(TInt aCmd); |
|
88 void RunMoveL(TInt aCmd); |
|
89 void RunSelectL(TInt aCmd); |
|
90 |
|
91 void BuildCopyScriptL(int i); |
|
92 void BuildSaveScriptL(int i); |
|
93 void BuildMoveScriptL(int i); |
|
94 void BuildSelectScriptL(int i); |
|
95 |
|
96 void SetupL(); |
|
97 void AddCancelL(); |
|
98 void AddOKL(); |
|
99 |
|
100 void TestSelectL(); |
|
101 void TestSelectL(const TDesC& aTitle); |
|
102 void TestSelectL(MAknFileFilter* aFilter); |
|
103 void TestSelectL(TInt aFileSelResID); |
|
104 void TestSelectL(const TDesC& aStartFolder, TInt aMemSelResID); |
|
105 void TestSelectL(const TDesC& aStartFolder, MAknFileFilter* aFilter); |
|
106 void TestSelectL(const TDesC& aStartFolder, TInt aMemSelResID, TInt aFileSelResID); |
|
107 void TestSelectL(const TDesC& aStartFolder, const TDesC& aTitle); |
|
108 |
|
109 void TestMoveL(TInt aFileSelResID); |
|
110 void TestMoveL(MAknFileFilter* aFilter); |
|
111 void TestMoveL(const TDesC& aTitle); |
|
112 void TestMoveL(); |
|
113 |
|
114 void TestSaveL(TBool aDirFlag, TInt aMemSelResID, const TDesC& aPrompt); |
|
115 void TestSaveL(TBool aDirFlag, TInt aMemSelResID); |
|
116 void TestSaveL(TInt aFileSelResID, const TDesC& aPrompt); |
|
117 void TestSaveL(TInt aFileSelResID); |
|
118 void TestSaveL(const TDesC& aFileTitle, const TDesC& aPromptTitle); |
|
119 void TestSaveL(MAknFileFilter* aFilter); |
|
120 void TestSaveL(); |
|
121 |
|
122 void TestCopyL(TInt aFileSelResID); |
|
123 void TestCopyL(MAknFileFilter* aFilter); |
|
124 void TestCopyL(); |
|
125 }; |
|
126 |
|
127 #endif // BCTEST_COMMON_DLG_H |
|