|
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 #ifndef IRSONGHISTORYVIEW_H_ |
|
18 #define IRSONGHISTORYVIEW_H_ |
|
19 |
|
20 #include "irabstractlistviewbase.h" |
|
21 #include "irqevent.h" |
|
22 |
|
23 class IRQPreset; |
|
24 class IRSongHistoryModel; |
|
25 class IRQMusicShop; |
|
26 class IRQStatisticsReporter; |
|
27 class IRQMetaData; |
|
28 class HbIcon; |
|
29 class QTimer; |
|
30 |
|
31 class IRSongHistoryView : public IrAbstractListViewBase |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 ~IRSongHistoryView(); |
|
37 |
|
38 protected: |
|
39 IRSongHistoryView(IRApplication *aApplication, TIRViewId aViewId); |
|
40 |
|
41 //from base class IRBaseView |
|
42 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
|
43 |
|
44 private slots: |
|
45 void clearAllList(); |
|
46 void modelChanged(); |
|
47 void newMetadataAdded(IRQMetaData * aMetadata); |
|
48 void clearHisotrySongDB(); |
|
49 void showPrompt(); |
|
50 void gotoStationHistory(); |
|
51 |
|
52 private: |
|
53 void showSongHistory(); |
|
54 void handleItemSelected(); |
|
55 //from IrAbstractListViewBase |
|
56 void prepareMenu(); |
|
57 void itemAboutToBeSelected(bool& needNetwork); |
|
58 |
|
59 private: |
|
60 IRSongHistoryModel *iModel; |
|
61 HbAction *iClearSongHistoryAction; |
|
62 HbAction *iStationHistoryAction; |
|
63 IRQMusicShop *iMusicShop; |
|
64 IRQStatisticsReporter *iStatisticsReporter; |
|
65 int iShowPrompt; |
|
66 |
|
67 |
|
68 friend class IRViewManager; |
|
69 }; |
|
70 |
|
71 #endif |