equal
deleted
inserted
replaced
21 #define CMPXCOMMONPLAYBACKVIEWCONTAINER_H |
21 #define CMPXCOMMONPLAYBACKVIEWCONTAINER_H |
22 |
22 |
23 |
23 |
24 // INCLUDES |
24 // INCLUDES |
25 #include <coecntrl.h> |
25 #include <coecntrl.h> |
|
26 #include <hwrmlight.h> |
26 |
27 |
27 #include "mpxcommonplaybackviewdefs.h" |
28 #include "mpxcommonplaybackviewdefs.h" |
28 #include "mpxalbumartutilobserver.h" |
29 #include "mpxalbumartutilobserver.h" |
29 #include "mpxbutton.h" |
30 #include "mpxbutton.h" |
30 #include "mpxplaybackframeworkdefs.h" |
31 #include "mpxplaybackframeworkdefs.h" |
|
32 #include "mpxconstants.h" |
31 |
33 |
32 |
34 |
33 // FORWARD DECLARATIONS |
35 // FORWARD DECLARATIONS |
34 class MEikCommandObserver; |
36 class MEikCommandObserver; |
35 class MAknsControlContext; |
37 class MAknsControlContext; |
48 * @lib mpxplaybackview.lib |
50 * @lib mpxplaybackview.lib |
49 * @since S60 v3.0 |
51 * @since S60 v3.0 |
50 */ |
52 */ |
51 class CMPXCommonPlaybackViewContainer : public CCoeControl, |
53 class CMPXCommonPlaybackViewContainer : public CCoeControl, |
52 public MMPXAlbumArtUtilObserver, |
54 public MMPXAlbumArtUtilObserver, |
53 public MMPXButtonCmdObserver |
55 public MMPXButtonCmdObserver, |
|
56 public MHWRMLightObserver |
54 { |
57 { |
55 public: |
58 public: |
56 |
59 |
57 /** |
60 /** |
58 * Symbian 2nd phase constructor. |
61 * Symbian 2nd phase constructor. |
272 */ |
275 */ |
273 IMPORT_C virtual void UpdateProgressBarGraphics(); |
276 IMPORT_C virtual void UpdateProgressBarGraphics(); |
274 |
277 |
275 /** |
278 /** |
276 * Update progress bar graphics and redraw. |
279 * Update progress bar graphics and redraw. |
|
280 * Refresh happens only when backlight is ON and |
|
281 * UI is in foreground. |
|
282 * Note: Some display types may not need backlight. In that case |
|
283 * code may need to be adjusted accordingly. |
277 */ |
284 */ |
278 IMPORT_C virtual void RefreshProgressBar(); |
285 IMPORT_C virtual void RefreshProgressBar(); |
279 |
286 |
280 /** |
287 /** |
281 * Update label text color according to skin |
288 * Update label text color according to skin |
360 * since 5.0 |
367 * since 5.0 |
361 */ |
368 */ |
362 void SetNewSongPosition( const TInt64& aPositon ); |
369 void SetNewSongPosition( const TInt64& aPositon ); |
363 |
370 |
364 /** |
371 /** |
|
372 * From MBacklightControlObserver. |
|
373 * Callback for change in backlight status |
|
374 * |
|
375 * @param aTarget The target of light change event; keypad, screen or both |
|
376 * @param aStatus New status of the target |
|
377 */ |
|
378 IMPORT_C virtual void LightStatusChanged( TInt aTarget, CHWRMLight::TLightStatus aStatus ); |
|
379 |
|
380 /** |
365 * Restore Buttons' state in some special case |
381 * Restore Buttons' state in some special case |
366 * |
382 * |
367 * @since S60 3.0 |
383 * @since S60 3.0 |
368 */ |
384 */ |
369 void RestoreButtons( TMPXPlaybackState aState ); |
385 void RestoreButtons( TMPXPlaybackState aState ); |
379 * |
395 * |
380 * @since S60 3.0 |
396 * @since S60 3.0 |
381 */ |
397 */ |
382 void AdjustOrdinalPosition( TInt aNewOrdinalPosition ); |
398 void AdjustOrdinalPosition( TInt aNewOrdinalPosition ); |
383 |
399 |
|
400 /** |
|
401 * Records the transition animation begin state. |
|
402 * Animation is started when albumart is fetched. |
|
403 */ |
|
404 void BeginTransition(); |
|
405 |
384 private: |
406 private: |
385 |
407 |
386 /** |
408 /** |
387 * Set layout for all elements and set sizes for icons. |
409 * Set layout for all elements and set sizes for icons. |
388 */ |
410 */ |
389 void DoUpdateLayoutL(); |
411 void DoUpdateLayoutL(); |
390 |
412 |
|
413 /** |
|
414 * Trickers the transtition. |
|
415 */ |
|
416 void EndTransition(); |
|
417 |
391 protected: // data |
418 protected: // data |
392 |
419 |
393 MEikCommandObserver* iCommandObserver; // not owned |
420 MEikCommandObserver* iCommandObserver; // not owned |
394 MMPXLayoutSwitchObserver* iLayoutObserver; // not owned |
421 MMPXLayoutSwitchObserver* iLayoutObserver; // not owned |
395 RPointerArray<CMPXPlaybackViewInfoLabel> iLabels; // owned |
422 RPointerArray<CMPXPlaybackViewInfoLabel> iLabels; // owned |
469 TInt iTrackTotalLengthInSeconds; |
496 TInt iTrackTotalLengthInSeconds; |
470 TInt64 iNewSongPosition; // Final position from touch progress bar |
497 TInt64 iNewSongPosition; // Final position from touch progress bar |
471 TBool iTouchDown; // Flag indicating touch progress bar is in use |
498 TBool iTouchDown; // Flag indicating touch progress bar is in use |
472 TBool iActiveView; |
499 TBool iActiveView; |
473 |
500 |
474 |
501 TBool iIsForeground; |
|
502 CHWRMLight::TLightStatus iLightStatus; |
|
503 CHWRMLight *iLight; |
475 |
504 |
476 TBool iDragProgressBar; //Flag drag progress bar |
505 TBool iDragProgressBar; //Flag drag progress bar |
|
506 TTransitionType iTransitionType; // Transition direction |
477 }; |
507 }; |
478 |
508 |
479 #endif // CMPXCOMMONPLAYBACKVIEWCONTAINER_H |
509 #endif // CMPXCOMMONPLAYBACKVIEWCONTAINER_H |
480 |
510 |
481 // End of File |
511 // End of File |