|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Declares view for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CBCTESTLAUNCHERVIEW_H |
|
20 #define C_CBCTESTLAUNCHERVIEW_H |
|
21 |
|
22 #include <aknview.h> |
|
23 |
|
24 // UID of view |
|
25 const TUid KViewId = { 1 }; |
|
26 |
|
27 class CBCTestLauncherContainer; |
|
28 class CBCTestApplication; |
|
29 |
|
30 /** |
|
31 * CBCTestLauncherView view class. |
|
32 */ |
|
33 class CBCTestLauncherView : public CAknView |
|
34 { |
|
35 public : |
|
36 // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor |
|
40 */ |
|
41 CBCTestLauncherView(RArray<CBCTestApplication*>* aList); |
|
42 |
|
43 /** |
|
44 * Symbian 2nd phase constructor |
|
45 */ |
|
46 void ConstructL(); |
|
47 |
|
48 /** |
|
49 * Destructor |
|
50 */ |
|
51 virtual ~CBCTestLauncherView(); |
|
52 |
|
53 // From CAknView |
|
54 |
|
55 /** |
|
56 * From CAknView, Id. |
|
57 * Returns the ID of view. |
|
58 * @return The ID of view. |
|
59 */ |
|
60 TUid Id() const; |
|
61 |
|
62 /** |
|
63 * From CAknView, Handles the commands. |
|
64 * @param aCommand Command to be handled. |
|
65 */ |
|
66 void HandleCommandL( TInt aCommand ); |
|
67 |
|
68 /** |
|
69 * From CAknView, Handles the clientrect. |
|
70 */ |
|
71 void HandleClientRectChange(); |
|
72 |
|
73 // New Functions |
|
74 TBool SelectL(); |
|
75 void Reset(); |
|
76 |
|
77 private: |
|
78 // From CAknView |
|
79 |
|
80 /** |
|
81 * From CAknView, Creates the Container class object. |
|
82 * @param aPrevViewId ID of previous view. |
|
83 * @param aCustomMessageId ID of the custom message. |
|
84 * @param aCustomMessage Custom message. |
|
85 */ |
|
86 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
87 const TDesC8& aCustomMessage ); |
|
88 |
|
89 /** |
|
90 * From CAknView, Deletes the Container class object. |
|
91 */ |
|
92 void DoDeactivate(); |
|
93 |
|
94 //From MEikMenuObsever |
|
95 |
|
96 /** |
|
97 * init menu according to the bc test applications loaded. |
|
98 */ |
|
99 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
100 |
|
101 private: // Data |
|
102 |
|
103 CBCTestLauncherContainer* iContainer; // own |
|
104 RArray<CBCTestApplication*>* iSelectApps; // not own, only refer to |
|
105 }; |
|
106 |
|
107 #endif // C_CBCTESTLAUNCHERVIEW_H |
|
108 |