|
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 IRSEARCHVIEWC_H |
|
18 #define IRSEARCHVIEWC_H |
|
19 |
|
20 |
|
21 #include "irqevent.h" |
|
22 #include "irbaseview.h" |
|
23 |
|
24 |
|
25 class HbPushButton; |
|
26 class HbAction; |
|
27 class HbLabel; |
|
28 class IrComboBox; |
|
29 class IrNowPlayingBannerLabel; |
|
30 class IRQMetaData; |
|
31 class IRSearchCriteriaDB; |
|
32 |
|
33 |
|
34 class IRSearchChannelsView : public IRBaseView |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 |
|
40 ~IRSearchChannelsView(); |
|
41 //from base class IRBaseView |
|
42 TIRHandleResult handleCommand(TIRViewCommand aCommand, TIRViewCommandReason aReason); |
|
43 |
|
44 protected: |
|
45 IRSearchChannelsView(IRApplication* aApplication, TIRViewId aViewId); |
|
46 |
|
47 private: |
|
48 |
|
49 //move from irabstractlistbaseview |
|
50 void updateView(); |
|
51 void initMenu(); |
|
52 void initToolBar(); |
|
53 void initContentWidget(); |
|
54 void addBanner(const QString &aText); |
|
55 void createDB(); |
|
56 |
|
57 |
|
58 private slots: |
|
59 |
|
60 void collectionsActionClicked(); |
|
61 void favoritesActionClicked(); |
|
62 |
|
63 void startSearch(bool aBool); |
|
64 void helpAction(); |
|
65 void searchBoxTextChanged(const QString &aString); |
|
66 void cancelRequest(); |
|
67 void networkRequestNotified(IRQNetworkEvent aEvent); |
|
68 void comboboxClicked(); |
|
69 void launchSettingsView(); |
|
70 void openWebAddress(); |
|
71 void gotoNowPlaying(); |
|
72 void metaDataAvailable(IRQMetaData* aMetaData); |
|
73 void removeBanner(); |
|
74 void dbDataChanged(); |
|
75 |
|
76 private: // members |
|
77 |
|
78 HbAction *iCollectionsAction; |
|
79 HbAction *iFavoritesAction; |
|
80 HbAction *iGenresAction; |
|
81 HbAction *iSearchAction; |
|
82 HbPushButton *iSearchButton; |
|
83 HbLabel *iSearchText; |
|
84 HbLabel *iSearchIconLabel; |
|
85 IrComboBox *iSearchCombobox; |
|
86 bool iFirstTime; |
|
87 IrNowPlayingBannerLabel *iBannerLabel; |
|
88 IRSearchCriteriaDB *iDB; |
|
89 |
|
90 friend class IRViewManager; |
|
91 }; |
|
92 #endif |