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