|
1 /* |
|
2 * Copyright (c) 2004-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: Feature manager for Video Telephone application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUIFEATUREMANAGER_H |
|
20 #define C_VTUIFEATUREMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 class MVtUiFeature; |
|
28 class CVtUiAppUi; |
|
29 class CVtUiFeatureBase; |
|
30 class TVtUiStates; |
|
31 class MVtUiCommandManager; |
|
32 class MVtUiComponentManager; |
|
33 class CVtEngModel; |
|
34 /** |
|
35 * Feature manager for Video Telephone application. |
|
36 * |
|
37 * @since S60 v3.2 |
|
38 */ |
|
39 class CVtUiFeatureManager : public CBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CVtUiFeatureManager* NewL( CVtUiAppUi& aAppUi, |
|
47 TVtUiStates& aUiStates, MVtUiCommandManager& aCommandManager, |
|
48 MVtUiComponentManager& aComponentManager ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CVtUiFeatureManager(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * Return reference to CVtUiAppUi class. |
|
59 */ |
|
60 CVtUiAppUi& AppUi(); |
|
61 |
|
62 /** |
|
63 * GetFeatureById |
|
64 */ |
|
65 MVtUiFeature* GetFeatureById( TInt aId ); |
|
66 |
|
67 /** |
|
68 * TVtUiStates |
|
69 */ |
|
70 TVtUiStates& UiStates(); |
|
71 |
|
72 /** |
|
73 * Command Manager |
|
74 */ |
|
75 MVtUiCommandManager& CommandManager(); |
|
76 |
|
77 /** |
|
78 * Component Manager |
|
79 */ |
|
80 MVtUiComponentManager& ComponentManager(); |
|
81 |
|
82 /** |
|
83 * Return reference to CVtEngModel class. |
|
84 */ |
|
85 CVtEngModel& Model(); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * Second phase constructor |
|
91 */ |
|
92 void ConstructL(); |
|
93 |
|
94 /** |
|
95 * c++ constructor |
|
96 */ |
|
97 CVtUiFeatureManager( CVtUiAppUi& aAppUi, TVtUiStates& aUiStates, |
|
98 MVtUiCommandManager& aCommandManager, |
|
99 MVtUiComponentManager& aComponentManager ); |
|
100 |
|
101 /** |
|
102 * Creates all features |
|
103 */ |
|
104 void CreateFeaturesL(); |
|
105 |
|
106 private: // data |
|
107 |
|
108 // Feature list |
|
109 RPointerArray< CVtUiFeatureBase > iFeatures; |
|
110 |
|
111 // Ref to application ui. |
|
112 CVtUiAppUi& iAppUi; |
|
113 |
|
114 // Reference to UI states instance |
|
115 TVtUiStates& iUiStates; |
|
116 |
|
117 // Reference to command manager API |
|
118 MVtUiCommandManager& iCommandManager; |
|
119 |
|
120 // Reference to component manager API |
|
121 MVtUiComponentManager& iComponentManager; |
|
122 |
|
123 // Engine model. |
|
124 CVtEngModel* iModel; |
|
125 |
|
126 }; |
|
127 |
|
128 #endif // C_VTUIFEATUREMANAGER_H |
|
129 // End of File |