equal
deleted
inserted
replaced
23 |
23 |
24 #include <HbShrinkingVkbHost> |
24 #include <HbShrinkingVkbHost> |
25 |
25 |
26 #include "hsmenustates_global.h" |
26 #include "hsmenustates_global.h" |
27 #include "hsmenuviewbuilder.h" |
27 #include "hsmenuviewbuilder.h" |
|
28 #include "hssearchviewbuilder.h" |
28 |
29 |
29 class QSortFilterProxyModel; |
30 class QSortFilterProxyModel; |
30 class HsMainWindow; |
31 class HsMainWindow; |
31 class HbAbstractViewItem; |
32 class HbAbstractViewItem; |
32 class HbLineEdit; |
33 class HbLineEdit; |
47 HsStateContext stateContext, |
48 HsStateContext stateContext, |
48 HsMainWindow &mainWindow); |
49 HsMainWindow &mainWindow); |
49 ~HsSearchView(); |
50 ~HsSearchView(); |
50 |
51 |
51 void setSearchPanelVisible(bool visible); |
52 void setSearchPanelVisible(bool visible); |
|
53 private: |
|
54 |
52 bool isActive() const; |
55 bool isActive() const; |
53 private: |
|
54 |
56 |
55 QModelIndex firstVisibleItemIndex(const HbListView *view) const; |
57 QModelIndex firstVisibleItemIndex(const HbListView *view) const; |
56 void searchBegins(); |
58 void searchBegins(); |
57 |
59 |
58 void connectSearchItemViewsSignals(); |
60 void connectSearchItemViewsSignals(); |
68 void activated(const QModelIndex &index); |
70 void activated(const QModelIndex &index); |
69 void longPressed(HbAbstractViewItem *item, const QPointF &coords); |
71 void longPressed(HbAbstractViewItem *item, const QPointF &coords); |
70 |
72 |
71 public slots: |
73 public slots: |
72 void hideSearchPanel(); |
74 void hideSearchPanel(); |
|
75 |
|
76 private slots: |
73 void activatedProxySlot(const QModelIndex &index); |
77 void activatedProxySlot(const QModelIndex &index); |
74 void longPressedProxySlot( |
78 void longPressedProxySlot( |
75 HbAbstractViewItem *item, const QPointF &coords); |
79 HbAbstractViewItem *item, const QPointF &coords); |
76 |
80 |
77 private slots: |
81 private slots: |
78 void findItem(QString criteriaStr); |
82 void findItem(QString criteriaStr); |
|
83 void setNoResultsVisibility(); |
|
84 |
79 private: |
85 private: |
80 void setOriginatingContext(); |
86 void setOriginatingContext(); |
81 void setSearchContext(); |
|
82 void initSearchPanel(HbSearchPanel &searchPanel); |
87 void initSearchPanel(HbSearchPanel &searchPanel); |
83 HbLineEdit *searchPanelLineEdit(HbSearchPanel &searchPanel) const; |
88 HbLineEdit *searchPanelLineEdit(HbSearchPanel &searchPanel) const; |
84 |
89 |
85 private: |
90 private: |
86 |
91 |
95 HsOperationalContext mAfterSearchContext; |
100 HsOperationalContext mAfterSearchContext; |
96 HsMenuViewBuilder &mBuilder; |
101 HsMenuViewBuilder &mBuilder; |
97 HsMainWindow &mMainWindow; |
102 HsMainWindow &mMainWindow; |
98 HbListView *mListView; |
103 HbListView *mListView; |
99 QScopedPointer<HbShrinkingVkbHost> mVkbHost; |
104 QScopedPointer<HbShrinkingVkbHost> mVkbHost; |
|
105 HsSearchViewBuilder mSearchViewBuilder; |
|
106 bool mEmptyResultText; |
100 |
107 |
101 }; |
108 }; |
102 |
109 |
103 #endif /* HSSEARCHVIEW_H_ */ |
110 #endif /* HSSEARCHVIEW_H_ */ |