equal
deleted
inserted
replaced
|
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 |
|
24 class HbFrameItem; |
|
25 class HbListView; |
|
26 |
|
27 class MpTrackListWidget : public HbWidget |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 |
|
33 MpTrackListWidget( QGraphicsItem *parent = 0 ); |
|
34 virtual ~MpTrackListWidget(); |
|
35 HbListView *list(); |
|
36 |
|
37 |
|
38 signals: |
|
39 |
|
40 void closed(); |
|
41 |
|
42 private: |
|
43 void resizeEvent(QGraphicsSceneResizeEvent *event); |
|
44 void mousePressEvent( QGraphicsSceneMouseEvent *event ); |
|
45 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
46 void gestureEvent(QGestureEvent *event); |
|
47 QSwipeGesture::SwipeDirection swipeAngleToDirection( int angle ); |
|
48 |
|
49 private: |
|
50 HbListView *mList; // own - parented |
|
51 HbFrameItem *mFrameItem; // own - parented |
|
52 }; |
|
53 |
|
54 #endif // MPTRACKLISTWIDGET_H |
|
55 |
|
56 // EOF |