mpviewplugins/mpmediawallviewplugin/inc/mptracklistwidget.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:10:13 +0300
changeset 41 ea59c434026a
parent 29 8192e5b5c935
child 55 f3930dda3342
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Track List Widget for Music Player Media Wall.
*
*/
#ifndef MPTRACKLISTWIDGET_H
#define MPTRACKLISTWIDGET_H

#include <QGesture>

#include <hbwidget.h>

class HbFrameItem;
class HbListView;

class MpTrackListWidget : public HbWidget
{
    Q_OBJECT
  
public:
    
    MpTrackListWidget( QGraphicsItem *parent = 0 );
    virtual ~MpTrackListWidget();
    HbListView *list(); 


signals:

    void closed();

private:
    void resizeEvent(QGraphicsSceneResizeEvent *event);
    void mousePressEvent( QGraphicsSceneMouseEvent *event );
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    void gestureEvent(QGestureEvent *event);
    QSwipeGesture::SwipeDirection swipeAngleToDirection( int angle );
    
private:
    HbListView      *mList;      // own - parented
    HbFrameItem     *mFrameItem; // own - parented
};

#endif // MPTRACKLISTWIDGET_H

// EOF