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 BC for Template control API. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BCTEST_CMDLG_VIEW_H |
|
20 #define BCTEST_CMDLG_VIEW_H |
|
21 |
|
22 #include <aknview.h> |
|
23 |
|
24 const TUid KBCTestCmDlgViewId = { 1 }; |
|
25 |
|
26 class CBCTestCmDlgContainer; |
|
27 class CBCTestUtil; |
|
28 |
|
29 /** |
|
30 * Application UI class |
|
31 * |
|
32 * @lib bctestutil.lib |
|
33 */ |
|
34 class CBCTestCmDlgView : public CAknView |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Symbian static 2nd constructor |
|
40 */ |
|
41 static CBCTestCmDlgView* NewL(); |
|
42 |
|
43 /** |
|
44 * dtor |
|
45 */ |
|
46 virtual ~CBCTestCmDlgView(); |
|
47 |
|
48 public: // from CAknView |
|
49 |
|
50 /** |
|
51 * Return view Id. |
|
52 */ |
|
53 TUid Id() const; |
|
54 |
|
55 /** |
|
56 * From CAknView, HandleCommandL. |
|
57 * @param aCommand Command to be handled. |
|
58 */ |
|
59 void HandleCommandL( TInt aCommand ); |
|
60 |
|
61 protected: // from CAknView |
|
62 |
|
63 /** |
|
64 * When view is activated, do something |
|
65 */ |
|
66 void DoActivateL( const TVwsViewId&, TUid, const TDesC8& ); |
|
67 |
|
68 /** |
|
69 * When view is deactivated, do something |
|
70 */ |
|
71 void DoDeactivate(); |
|
72 |
|
73 private: // constructor |
|
74 |
|
75 /** |
|
76 * C++ default constructor |
|
77 */ |
|
78 CBCTestCmDlgView(); |
|
79 |
|
80 /** |
|
81 * symbian 2nd ctor |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 private: // data |
|
86 |
|
87 /** |
|
88 * pointor to the BC Test framework utility. |
|
89 * own |
|
90 */ |
|
91 CBCTestUtil* iTestUtil; |
|
92 |
|
93 /** |
|
94 * pointor to the container. |
|
95 * own |
|
96 */ |
|
97 CBCTestCmDlgContainer* iContainer; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif // BCTEST_CMDLG_VIEW_H |
|
102 |
|
103 // End of File |
|