1 /* |
|
2 * Copyright (c) 2006-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: test case |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef BCTEST_FILE_NAME_DLG_H |
|
27 #define BCTEST_FILE_NAME_DLG_H |
|
28 |
|
29 #include "bctestcase.h" |
|
30 |
|
31 class CAknFileNamePromptDialog; |
|
32 |
|
33 /** |
|
34 * test case for various list classes |
|
35 */ |
|
36 class CBCTestFileNameDlg: public CBCTestCase |
|
37 { |
|
38 public: // constructor and destructor |
|
39 |
|
40 /** |
|
41 * Symbian 2nd static constructor |
|
42 */ |
|
43 static CBCTestFileNameDlg* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 virtual ~CBCTestFileNameDlg(); |
|
49 |
|
50 public: // from CBCTestCase |
|
51 |
|
52 /** |
|
53 * Execute corresponding test functions for UI command |
|
54 * @param aCmd, UI command |
|
55 */ |
|
56 void RunL( TInt aCmd ); |
|
57 |
|
58 protected: // new functions |
|
59 |
|
60 /** |
|
61 * Build autotest script |
|
62 */ |
|
63 void BuildScriptL(); |
|
64 |
|
65 /** |
|
66 * Create control or allocate resource for test |
|
67 * @param aCmd UI command, maybe you need to do some work |
|
68 * for different outline |
|
69 */ |
|
70 |
|
71 /** |
|
72 * Release resource used in test |
|
73 */ |
|
74 void Teardown(); |
|
75 |
|
76 /** |
|
77 * Test functions |
|
78 */ |
|
79 |
|
80 private: // constructor |
|
81 |
|
82 /** |
|
83 * C++ default constructor |
|
84 */ |
|
85 CBCTestFileNameDlg(); |
|
86 |
|
87 /** |
|
88 * Symbian 2nd constructor |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 private: // data |
|
93 void TestSettingsL(); |
|
94 void TestQuickCreateL(TInt aResID); |
|
95 void TestQuickCreateL(const TDesC& aTitle); |
|
96 void TestCreateL(TInt aResID); |
|
97 void SetupL(); |
|
98 void AddCancelL(); |
|
99 void AddOKL(); |
|
100 void TestQuickCreateL(); |
|
101 void TestCreateL(); |
|
102 |
|
103 CAknFileNamePromptDialog* iDlg; |
|
104 }; |
|
105 |
|
106 #endif // BCTEST_FILE_NAME_DLG_H |
|