mpviewplugins/mpplaybackviewplugin/inc/mpplaybackview.h
changeset 37 eb79a7c355bf
parent 35 fdb31ab341af
child 51 560ce2306a17
equal deleted inserted replaced
36:a0afa279b8fe 37:eb79a7c355bf
    25 class HbMainWindow;
    25 class HbMainWindow;
    26 class MpEngine;
    26 class MpEngine;
    27 class MpPlaybackData;
    27 class MpPlaybackData;
    28 class MpPlaybackWidget;
    28 class MpPlaybackWidget;
    29 class MpEqualizerWidget;
    29 class MpEqualizerWidget;
    30 class QTranslator;
       
    31 
    30 
    32 
    31 
    33 class MpPlaybackView : public MpViewBase
    32 class MpPlaybackView : public MpViewBase
    34 {
    33 {
    35     Q_OBJECT
    34     Q_OBJECT
       
    35     Q_PROPERTY(QString PlaybackStatus READ playbackStatus)
       
    36     Q_PROPERTY(bool Shuffle READ shuffleEnabled)
       
    37     Q_PROPERTY(bool Repeat READ repeatEnabled)
    36 
    38 
    37 public:
    39 public:
    38 
    40 
    39     explicit MpPlaybackView();
    41     explicit MpPlaybackView();
    40     virtual ~MpPlaybackView();
    42     virtual ~MpPlaybackView();
    41 
    43 
    42     void initializeView();
    44     void initializeView();
    43     void activateView();
    45     void activateView();
    44     void deactivateView();
    46     void deactivateView();
    45 
    47 
       
    48     QString playbackStatus();
       
    49     bool shuffleEnabled();
       
    50     bool repeatEnabled();
       
    51     
    46 signals:
    52 signals:
    47 
    53 
    48     void command( int aCommand );
    54     void command( int aCommand );
    49 
    55 
    50 public slots:
    56 public slots:
    62     void toggleRepeat();
    68     void toggleRepeat();
    63     void repeatChanged( bool repeat );
    69     void repeatChanged( bool repeat );
    64 
    70 
    65     void handleSongSelected();
    71     void handleSongSelected();
    66     void showEqualizerDialog();
    72     void showEqualizerDialog();
       
    73     void closeEqualizerDialog();
    67     
    74     
    68     void startRewindTimer();
    75     void startRewindTimer();
    69     void startForwardTimer();
    76     void startForwardTimer();
    70     void startSeekRewind();
    77     void startSeekRewind();
    71     void startSeekForward();
    78     void startSeekForward();
    97     HbIcon                  *mShuffleOffIcon;   // Own
   104     HbIcon                  *mShuffleOffIcon;   // Own
    98 
   105 
    99     HbAction                *mPlayPauseAction;  // Not own
   106     HbAction                *mPlayPauseAction;  // Not own
   100     HbAction                *mRepeatAction;     // Not own
   107     HbAction                *mRepeatAction;     // Not own
   101     HbAction                *mShuffleAction;    // Not own
   108     HbAction                *mShuffleAction;    // Not own
   102     
   109 
   103     QTranslator             *mMpTranslator;     // Own
       
   104     QTranslator             *mCommonTranslator; // Own
       
   105     
       
   106     QTimer                  *mTimer;
   110     QTimer                  *mTimer;
   107 
   111 
   108     bool                    mShuffle;
   112     bool                    mShuffle;
   109     bool                    mRepeat;
   113     bool                    mRepeat;
   110     bool                    mSeeking;
   114     bool                    mSeeking;