|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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: HG VOD main view container implementation* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VCXHGVODMAINVIEWCONTAINER_H |
|
21 #define VCXHGVODMAINVIEWCONTAINER_H |
|
22 |
|
23 #include <coecntrl.h> |
|
24 |
|
25 class CAknViewAppUi; |
|
26 class CVcxHgVodMainView; |
|
27 class CVcxNsUiEngine; |
|
28 class CVcxHgVodUtils; |
|
29 class CVcxHgVodServiceListImpl; |
|
30 class CVcxHgVodCategoryListImpl; |
|
31 class CVcxHgVodContentListImpl; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 /** |
|
35 * Main view container |
|
36 * This class provides the adaptation to encapsulate the AlfDisplay |
|
37 * |
|
38 * @code |
|
39 * |
|
40 * @endcode |
|
41 * |
|
42 * @lib vcxhgvodui.lib |
|
43 * @since S60 v5.0 |
|
44 */ |
|
45 class CVcxHgVodMainViewContainer : public CCoeControl |
|
46 { |
|
47 |
|
48 public: // Constructors and destructor |
|
49 |
|
50 |
|
51 |
|
52 /** |
|
53 * C++ default constructor |
|
54 */ |
|
55 CVcxHgVodMainViewContainer( |
|
56 CAknViewAppUi* aAppUi, |
|
57 CVcxHgVodMainView& aParent ); |
|
58 |
|
59 /** |
|
60 * Default constructor. |
|
61 * |
|
62 * @param aRect Client rectangle |
|
63 */ |
|
64 void ConstructL( const TRect& aRect ); |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 ~CVcxHgVodMainViewContainer(); |
|
70 |
|
71 /** |
|
72 * Return count of controls. |
|
73 * |
|
74 * @return count of controls. |
|
75 */ |
|
76 TInt CountComponentControls() const; |
|
77 |
|
78 /** |
|
79 * Returns control in container. |
|
80 * |
|
81 * @param aIndex Index of control. |
|
82 * @return Control. |
|
83 */ |
|
84 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
85 |
|
86 /** |
|
87 * Key event handler. |
|
88 * |
|
89 * @param aKeyEvent Key event. |
|
90 * @param aType Key event type. |
|
91 * @return Response, tells if key was handled or not. |
|
92 */ |
|
93 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
94 TEventCode aType ); |
|
95 |
|
96 /** |
|
97 * From CCoeControl |
|
98 * Draws skin background. |
|
99 */ |
|
100 void Draw(const TRect& aRect) const; |
|
101 |
|
102 /** |
|
103 * Returns control's help context. |
|
104 * |
|
105 * @param aContext On return help context. |
|
106 */ |
|
107 void GetHelpContext(TCoeHelpContext &aContext) const; |
|
108 |
|
109 private: // data |
|
110 |
|
111 /** |
|
112 * View Appui. |
|
113 * Not own. |
|
114 */ |
|
115 CAknViewAppUi* iAppUi; |
|
116 |
|
117 /** |
|
118 * Parent view |
|
119 * |
|
120 */ |
|
121 CVcxHgVodMainView& iParentView; |
|
122 |
|
123 /** |
|
124 * Pointer to UI Engine |
|
125 * |
|
126 */ |
|
127 CVcxNsUiEngine* iDataProviderIf; |
|
128 |
|
129 }; |
|
130 |
|
131 #endif // VCXHGVODMAINVIEWCONTAINER_H |