mpviewplugins/mpmediawallviewplugin/inc/mptracklistwidget.h
changeset 29 8192e5b5c935
child 37 eb79a7c355bf
equal deleted inserted replaced
25:3ec52facab4d 29:8192e5b5c935
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Track List Widget for Music Player Media Wall.
       
    15 *
       
    16 */
       
    17 #ifndef MPTRACKLISTWIDGET_H
       
    18 #define MPTRACKLISTWIDGET_H
       
    19 
       
    20 #include <QGesture>
       
    21 
       
    22 #include <hbwidget.h>
       
    23 #include <hblistview.h>
       
    24 
       
    25 class HbFrameItem;
       
    26 
       
    27 class MpTrackListWidget : public HbWidget
       
    28 {
       
    29     Q_OBJECT
       
    30   
       
    31 public:
       
    32     
       
    33     MpTrackListWidget( QGraphicsItem *parent = 0 );
       
    34     void resizeEvent(QGraphicsSceneResizeEvent *event);
       
    35     void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, 
       
    36                 QWidget *widget = 0 );
       
    37     HbListView *list(); 
       
    38 
       
    39 
       
    40 signals:
       
    41 
       
    42     void close();
       
    43 
       
    44 private:
       
    45     void gestureEvent(QGestureEvent *event);
       
    46     QSwipeGesture::SwipeDirection swipeAngleToDirection( int angle );
       
    47     void mousePressEvent( QGraphicsSceneMouseEvent *event );
       
    48     void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
       
    49     
       
    50 private:
       
    51     HbListView      *mList;
       
    52     HbFrameItem     *mFrameItem;
       
    53 };
       
    54 
       
    55 #endif // MPTRACKLISTWIDGET_H
       
    56 
       
    57 // EOF