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_FILE_NAME_DLG_H |
|
20 #define BCTEST_FILE_NAME_DLG_H |
|
21 |
|
22 #include "bctestcase.h" |
|
23 |
|
24 class CAknFileNamePromptDialog; |
|
25 |
|
26 /** |
|
27 * test case for various list classes |
|
28 */ |
|
29 class CBCTestFileNameDlg: public CBCTestCase |
|
30 { |
|
31 public: // constructor and destructor |
|
32 |
|
33 /** |
|
34 * Symbian 2nd static constructor |
|
35 */ |
|
36 static CBCTestFileNameDlg* NewL(); |
|
37 |
|
38 /** |
|
39 * Destructor |
|
40 */ |
|
41 virtual ~CBCTestFileNameDlg(); |
|
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 CBCTestFileNameDlg(); |
|
79 |
|
80 /** |
|
81 * Symbian 2nd constructor |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 private: // data |
|
86 void TestSettingsL(); |
|
87 void TestQuickCreateL(TInt aResID); |
|
88 void TestQuickCreateL(const TDesC& aTitle); |
|
89 void TestCreateL(TInt aResID); |
|
90 void SetupL(); |
|
91 void AddCancelL(); |
|
92 void AddOKL(); |
|
93 void TestQuickCreateL(); |
|
94 void TestCreateL(); |
|
95 |
|
96 CAknFileNamePromptDialog* iDlg; |
|
97 }; |
|
98 |
|
99 #endif // BCTEST_FILE_NAME_DLG_H |
|