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 * @param aContainerVisible |
|
81 * @param aIndicatorVisible |
|
82 */ |
|
83 void ConstructL( CMusUiGeneralView* aView, |
|
84 const TRect& aRect, |
|
85 TAknOrientation aIndicatorLayout, |
|
86 TBool aContainerVisible = EFalse, |
|
87 TBool aIndicatorVisible = EFalse ); |
|
88 |
|
89 |
|
90 private: // from base class CCoeControl |
|
91 |
|
92 /** |
|
93 * Gets called by the application framework when drawing is |
|
94 * needed. |
|
95 * |
|
96 * @param aRect The rectangle that needs to be drawn. |
|
97 */ |
|
98 virtual void Draw( const TRect& aRect ) const; |
|
99 |
|
100 virtual void SizeChanged(); |
|
101 |
|
102 virtual TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
103 |
|
104 |
|
105 private: // MMusUiLevelIndicatorObserver |
|
106 |
|
107 virtual void SetLevelIndicatorVisibility( TBool aVisible ); |
|
108 |
|
109 virtual void IndicatorLevelChanged( TInt aNewLevel ); |
|
110 |
|
111 |
|
112 protected: // data |
|
113 |
|
114 CMusUiLevelIndicator* iIndicator; |
|
115 |
|
116 |
|
117 private: // data |
|
118 |
|
119 /** Background skin control context. */ |
|
120 MAknsControlContext* iBackGround; |
|
121 |
|
122 /** Handle to the view that owns of this container. Not own. */ |
|
123 CMusUiGeneralView* iView; |
|
124 |
|
125 /** |
|
126 * Engine DSA area |
|
127 */ |
|
128 TRect iVideoRect; |
|
129 |
|
130 // Can be NULL |
|
131 CMusUiSendController* iSendController; |
|
132 |
|
133 }; |
|
134 |
|
135 |
|
136 #endif // MUSUISENDVIEWCONTAINER_H |
|
137 |
|
138 // end of file |
|