equal
deleted
inserted
replaced
18 #define IRHISTORYVIEW_H |
18 #define IRHISTORYVIEW_H |
19 |
19 |
20 #include "irabstractlistviewbase.h" |
20 #include "irabstractlistviewbase.h" |
21 #include "irqevent.h" |
21 #include "irqevent.h" |
22 |
22 |
23 class IRQPreset; |
23 |
24 class IRHistoryModel; |
24 class IRHistoryModel; |
25 class IRQSongHistoryInfo; |
25 |
26 |
26 |
27 class IRHistoryView : public IrAbstractListViewBase |
27 class IRHistoryView : public IrAbstractListViewBase |
28 { |
28 { |
29 Q_OBJECT |
29 Q_OBJECT |
30 |
30 |
38 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
38 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
39 |
39 |
40 private slots: |
40 private slots: |
41 void clearAllList(HbAction *aAction); |
41 void clearAllList(HbAction *aAction); |
42 void networkRequestNotified(IRQNetworkEvent aEvent); |
42 void networkRequestNotified(IRQNetworkEvent aEvent); |
43 //to start the convertion asynchronously |
43 |
44 void convertAnother(); |
|
45 void presetLogoDownload(IRQPreset* aPreset); |
|
46 void presetLogoDownloadError(); |
|
47 void modelChanged(); |
44 void modelChanged(); |
48 |
45 |
49 void actionClicked(HbAction *aAction); |
46 void actionClicked(HbAction *aAction); |
50 void popupClearHistoryConfirmMessageBox(); |
47 void popupClearHistoryConfirmMessageBox(); |
51 private: |
48 private: |
55 |
52 |
56 //from IrAbstractListViewBase |
53 //from IrAbstractListViewBase |
57 void prepareMenu(); |
54 void prepareMenu(); |
58 #ifdef HS_WIDGET_ENABLED |
55 #ifdef HS_WIDGET_ENABLED |
59 void itemAboutToBeSelected(bool &aNeedNetwork); |
56 void itemAboutToBeSelected(bool &aNeedNetwork); |
60 #endif |
57 #endif |
61 void startConvert(int aIndex); |
|
62 void convertStationHistory2Preset(const IRQSongHistoryInfo& aHistoryInfo, IRQPreset& aPreset); |
|
63 void addContextAction(); |
58 void addContextAction(); |
64 void deleteContextAction(); |
59 void deleteContextAction(); |
65 void detailsContextAction(); |
60 void detailsContextAction(); |
66 |
61 |
67 private: |
62 private: |
68 IRHistoryModel *iModel; |
63 IRHistoryModel *iModel; |
69 HbAction *iClearHistoryAction; |
64 HbAction *iClearHistoryAction; |
70 HbAction *iSongHistoryAction; |
|
71 |
|
72 |
|
73 //the following are used to support the img |
|
74 QList<int> iIconIndexArray; |
|
75 IRQPreset *iLogoPreset; |
|
76 |
|
77 |
|
78 friend class IRViewManager; |
65 friend class IRViewManager; |
79 }; |
66 }; |
80 |
67 |
81 #endif //IRHISTORYVIEW_H |
68 #endif //IRHISTORYVIEW_H |