equal
deleted
inserted
replaced
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <coecntrl.h> |
23 #include <coecntrl.h> |
24 #include <coecobs.h> |
24 #include <coecobs.h> |
25 #include "SmilPlayerTimeObserver.h" |
25 #include "SmilPlayerTimeObserver.h" |
26 #include "SmilPlayerPauseObserver.h" |
|
27 |
26 |
28 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
29 class CSmilPlayerPresentationController; |
28 class CSmilPlayerPresentationController; |
30 class CSmilPlayerVolumeIndicatorController; |
29 class CSmilPlayerVolumeIndicatorController; |
31 class CSmilPlayerTimeIndicatorTimer; |
30 class CSmilPlayerTimeIndicatorTimer; |
40 * Controller class of the indicators. |
39 * Controller class of the indicators. |
41 */ |
40 */ |
42 NONSHARABLE_CLASS(CSmilPlayerIndicatorController) : public CCoeControl, |
41 NONSHARABLE_CLASS(CSmilPlayerIndicatorController) : public CCoeControl, |
43 public MCoeForegroundObserver, |
42 public MCoeForegroundObserver, |
44 public MCoeControlObserver, |
43 public MCoeControlObserver, |
45 public MSmilPlayerTimeObserver, |
44 public MSmilPlayerTimeObserver |
46 public MSmilPlayerPauseObserver |
|
47 { |
45 { |
48 public: // Constructors and destructor |
46 public: // Constructors and destructor |
49 |
47 |
50 /** |
48 /** |
51 * Constructor. |
49 * Constructor. |
107 /** |
105 /** |
108 * From MSmilPlayerTimeObserver |
106 * From MSmilPlayerTimeObserver |
109 * See the documentation from the SmilPlayerTimeObserver.h |
107 * See the documentation from the SmilPlayerTimeObserver.h |
110 */ |
108 */ |
111 TBool IsDurationFinite() const; |
109 TBool IsDurationFinite() const; |
112 |
|
113 /** |
|
114 * From MSmilPlayerPauseObserver |
|
115 * See the documentation from the SmilPlayerPauseObserver.h |
|
116 */ |
|
117 void TogglePauseIndicator() const; |
|
118 |
110 |
119 /** |
111 /** |
120 * From MCoeForegroundObserver |
112 * From MCoeForegroundObserver |
121 * See the documentation from the coemain.h |
113 * See the documentation from the coemain.h |
122 */ |
114 */ |
218 void InitializeIconIndicatorL( CEikImage*& aIndicator, |
210 void InitializeIconIndicatorL( CEikImage*& aIndicator, |
219 const TAknsItemID& aItem, |
211 const TAknsItemID& aItem, |
220 const TInt aBitmapIndex, |
212 const TInt aBitmapIndex, |
221 const TInt aMaskIndex ) const; |
213 const TInt aMaskIndex ) const; |
222 |
214 |
223 /** |
|
224 * Sets pause indicator blinking on/off. |
|
225 */ |
|
226 void SetPauseIndicatorBlinking( TBool aValue ); |
|
227 |
215 |
228 /** |
216 /** |
229 * Handles skin change event. |
217 * Handles skin change event. |
230 */ |
218 */ |
231 void DoHandleSkinChangeL(); |
219 void DoHandleSkinChangeL(); |
267 CEikImage* iPauseIndicator; |
255 CEikImage* iPauseIndicator; |
268 |
256 |
269 /** View class for play indicator. */ |
257 /** View class for play indicator. */ |
270 CEikImage* iPlayIndicator; |
258 CEikImage* iPlayIndicator; |
271 |
259 |
272 /** Timer for pause indicator. */ |
|
273 CSmilPlayerPauseIndicatorTimer* iPauseTimer; |
|
274 |
|
275 /** Specifies whether time indicator should be shown. */ |
260 /** Specifies whether time indicator should be shown. */ |
276 TBool iShowTimeIndicator; |
261 TBool iShowTimeIndicator; |
277 }; |
262 }; |
278 |
263 |
279 #endif // SMILPLAYERINDICATORCONTROLLER_H |
264 #endif // SMILPLAYERINDICATORCONTROLLER_H |