|
1 /* |
|
2 * Copyright (c) 2005 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: The MUS application's UI class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUISENDVIEWCONTAINER_H |
|
21 #define MUSUISENDVIEWCONTAINER_H |
|
22 |
|
23 |
|
24 #include "musuiviewcontainer.h" |
|
25 #include "musuilevelindicatorobserver.h" |
|
26 |
|
27 #include <avkon.hrh> |
|
28 |
|
29 class MAknsControlContext; |
|
30 class CMusUiGeneralView; |
|
31 class CAknWaitDialog; |
|
32 class CMusUiLevelIndicator; |
|
33 class CMusUiSendController; |
|
34 |
|
35 /** |
|
36 * |
|
37 * |
|
38 */ |
|
39 class CMusUiSendViewContainer : public CMusUiViewContainer, |
|
40 public MMusUiLevelIndicatorObserver |
|
41 { |
|
42 |
|
43 public: // constructors and destructor |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CMusUiSendViewContainer(); |
|
49 |
|
50 public: // new functions |
|
51 |
|
52 /** |
|
53 * Return pointer to view class. User needs to type cast to |
|
54 * appropriate concrete view class. |
|
55 * |
|
56 * @return handle to view |
|
57 */ |
|
58 CMusUiGeneralView* MusUiView() const; |
|
59 |
|
60 /** |
|
61 * @param Pointer to instance of controller who is notified about changes in |
|
62 * indicator. NULL if notifications are to be suppressed. |
|
63 */ |
|
64 void SetController( CMusUiSendController* aController ); |
|
65 |
|
66 |
|
67 protected: // constructors |
|
68 |
|
69 /** |
|
70 * Meant to be a base class, no instantiation |
|
71 */ |
|
72 CMusUiSendViewContainer(); |
|
73 |
|
74 /** |
|
75 * Symbian second-phase constructor. |
|
76 * |
|
77 * @param aView Parent view of container. |
|
78 * @param aRect Frame rectangle for container. |
|
79 * @param aInputParams Packaged data. |
|
80 */ |
|
81 void ConstructL( CMusUiGeneralView* aView, |
|
82 const TRect& aRect, |
|
83 TAknOrientation aIndicatorLayout ); |
|
84 |
|
85 |
|
86 private: // from base class CCoeControl |
|
87 |
|
88 /** |
|
89 * Gets called by the application framework when drawing is |
|
90 * needed. |
|
91 * |
|
92 * @param aRect The rectangle that needs to be drawn. |
|
93 */ |
|
94 virtual void Draw( const TRect& aRect ) const; |
|
95 |
|
96 virtual void SizeChanged(); |
|
97 |
|
98 virtual TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
99 |
|
100 |
|
101 private: // MMusUiLevelIndicatorObserver |
|
102 |
|
103 virtual void SetLevelIndicatorVisibility( TBool aVisible ); |
|
104 |
|
105 virtual void IndicatorLevelChanged( TInt aNewLevel ); |
|
106 |
|
107 |
|
108 protected: // data |
|
109 |
|
110 CMusUiLevelIndicator* iIndicator; |
|
111 |
|
112 |
|
113 private: // data |
|
114 |
|
115 /** Background skin control context. */ |
|
116 MAknsControlContext* iBackGround; |
|
117 |
|
118 /** Handle to the view that owns of this container. Not own. */ |
|
119 CMusUiGeneralView* iView; |
|
120 |
|
121 /** |
|
122 * Engine DSA area |
|
123 */ |
|
124 TRect iVideoRect; |
|
125 |
|
126 // Can be NULL |
|
127 CMusUiSendController* iSendController; |
|
128 |
|
129 }; |
|
130 |
|
131 |
|
132 #endif // MUSUISENDVIEWCONTAINER_H |
|
133 |
|
134 // end of file |