|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef RADIOHISTORYVIEW_H |
|
19 #define RADIOHISTORYVIEW_H |
|
20 |
|
21 // User includes |
|
22 #include "radioviewbase.h" |
|
23 #include "radiowidgetsexport.h" |
|
24 |
|
25 // Forward declarations |
|
26 class RadioXmlUiLoader; |
|
27 class HbListView; |
|
28 class HbAction; |
|
29 class RadioStationFilterModel; |
|
30 class HbAbstractViewItem; |
|
31 |
|
32 // Class declaration |
|
33 class WIDGETS_DLL_EXPORT RadioHistoryView : public RadioViewBase |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 |
|
39 explicit RadioHistoryView(); |
|
40 |
|
41 private slots: |
|
42 |
|
43 void deckButtonPressed(); |
|
44 void clearList(); |
|
45 void updateVisibilities(); |
|
46 void listItemClicked( const QModelIndex& index ); |
|
47 void listItemLongPressed( HbAbstractViewItem* item, const QPointF& coords ); |
|
48 |
|
49 private: |
|
50 |
|
51 // from base class RadioViewBase |
|
52 |
|
53 void init( RadioXmlUiLoader* uiLoader, RadioMainWindow* mainWindow ); |
|
54 void setOrientation(); |
|
55 |
|
56 // New functions |
|
57 |
|
58 void showContextMenu( const QModelIndex& index ); |
|
59 |
|
60 private: //data |
|
61 |
|
62 HbListView* mHistoryList; |
|
63 HbAction* mAllSongsButton; |
|
64 HbAction* mTaggedSongsButton; |
|
65 RadioStationFilterModel* mFilterModel; |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // RADIOHISTORYVIEW_H |