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