mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpplaybackview/stub/inc/mpplaybackwidget.h
changeset 47 4cc1412daed0
equal deleted inserted replaced
45:612c4815aebe 47:4cc1412daed0
       
     1 /*
       
     2 * Copyright (c) 2009 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: Playback widget for Music Player playback view.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPPLAYBACKWIDGET_H
       
    19 #define MPPLAYBACKWIDGET_H
       
    20 
       
    21 #include <hbwidget.h>
       
    22 
       
    23 class MpPlaybackData;
       
    24 class HbStackedLayout;
       
    25 class QString;
       
    26 class HbTextItem;
       
    27 class HbProgressSlider;
       
    28 class HbLabel;
       
    29 class MpPlaybackDocumentLoader;
       
    30 class MpAlbumCoverWidget;
       
    31 
       
    32 class MpPlaybackWidget : public HbWidget
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     MpPlaybackWidget( MpPlaybackData *data, QGraphicsItem *parent=0 );
       
    39     virtual ~MpPlaybackWidget();
       
    40     void repeatChanged( bool);
       
    41 
       
    42 signals:
       
    43 
       
    44     void setPlaybackPosition( int value );
       
    45 
       
    46 private:
       
    47 
       
    48     MpPlaybackData           *mPlaybackData;        // Not own
       
    49     MpPlaybackDocumentLoader *mDocumentLoader;      // Own
       
    50 
       
    51     HbStackedLayout          *mLayout;              // Not own
       
    52     HbLabel                  *mSongTitle;           // Not own
       
    53     HbLabel                  *mArtistName;          // Not own
       
    54     HbLabel                  *mAlbumName;           // Not own
       
    55     MpAlbumCoverWidget       *mAlbumArt;            // Not own
       
    56     HbProgressSlider         *mProgressBar;         // Not own
       
    57     HbLabel                  *mRealAudioIndicator;  // Not own
       
    58     HbLabel                  *mRepeatIndicator;     // Not own
       
    59     bool                     mProgreesBarDragging;
       
    60     int                      mDuration;
       
    61 
       
    62     Q_DISABLE_COPY(MpPlaybackWidget)
       
    63 };
       
    64 
       
    65 #endif  // MPPLAYBACKWIDGET_H