equal
deleted
inserted
replaced
18 #define SEARCH_CONTROLLER_H |
18 #define SEARCH_CONTROLLER_H |
19 |
19 |
20 #include "search_global.h" |
20 #include "search_global.h" |
21 #include <qobject.h> |
21 #include <qobject.h> |
22 #include <qmutex.h> |
22 #include <qmutex.h> |
23 |
23 #include <hbmainwindow.h> |
24 class HbDocumentLoader; |
24 class HbDocumentLoader; |
25 class HbView; |
25 class HbView; |
26 class HbListWidget; |
26 class HbListWidget; |
27 class HbSearchPanel; |
27 class HbSearchPanel; |
28 class TsTaskSettings; |
28 class TsTaskSettings; |
29 class HbMainWindow; |
29 class SearchMainWindow; |
30 class HbShrinkingVkbHost; |
30 class HbShrinkingVkbHost; |
31 |
|
32 SEARCH_CLASS( SearchStateProviderTest) |
31 SEARCH_CLASS( SearchStateProviderTest) |
33 |
32 |
34 class SearchUiLoader : public QObject |
33 class SearchUiLoader : public QObject |
35 { |
34 { |
36 Q_OBJECT |
35 Q_OBJECT |
74 |
73 |
75 /** |
74 /** |
76 * Slot to send the application to background fake exit |
75 * Slot to send the application to background fake exit |
77 * @since S60 ?S60_version. |
76 * @since S60 ?S60_version. |
78 */ |
77 */ |
79 void slotsendtobackground(); |
78 void slotsendtobackground(); |
|
79 |
|
80 /** |
|
81 * Slot to open vkb |
|
82 * @since S60 ?S60_version. |
|
83 */ |
|
84 void slotbringvkb(); |
80 |
85 |
81 public: |
86 public: |
82 |
87 |
83 /** |
88 /** |
84 * Function returns the HbListWidget object |
89 * Function returns the HbListWidget object |
103 * @param aUid Unique app Id. |
108 * @param aUid Unique app Id. |
104 */ |
109 */ |
105 HbSearchPanel* SearchPanel() |
110 HbSearchPanel* SearchPanel() |
106 { |
111 { |
107 return mSearchPanel; |
112 return mSearchPanel; |
108 } |
113 } |
109 |
|
110 /** |
|
111 * Function to listen the applicaition foreground event |
|
112 * @param aUid Unique app Id. |
|
113 */ |
|
114 bool eventFilter(QObject *, QEvent *); |
|
115 |
|
116 private: |
114 private: |
117 /** |
115 /** |
118 * Constructor. |
116 * Constructor. |
119 * @since S60 ?S60_version. |
117 * @since S60 ?S60_version. |
120 * @param aParent Owner. |
118 * @param aParent Owner. |
170 TsTaskSettings* mClient; |
168 TsTaskSettings* mClient; |
171 |
169 |
172 /** |
170 /** |
173 * application main window |
171 * application main window |
174 */ |
172 */ |
175 HbMainWindow* mMainWindow; |
173 SearchMainWindow* mMainWindow; |
176 |
174 |
177 /** |
175 /** |
178 * vkbhost to resize the result screen |
176 * vkbhost to resize the result screen |
179 * Own. |
177 * Own. |
180 */ |
178 */ |
181 HbShrinkingVkbHost* mVirtualKeyboard; |
179 HbShrinkingVkbHost* mVirtualKeyboard; |
|
180 |
|
181 /** |
|
182 * flag to validate fake exit |
|
183 * Own. |
|
184 */ |
|
185 bool mBringtoForground; |
182 private: |
186 private: |
183 SEARCH_FRIEND_CLASS ( SearchStateProviderTest) |
187 SEARCH_FRIEND_CLASS ( SearchStateProviderTest) |
184 }; |
188 }; |
185 |
189 |
|
190 class SearchMainWindow : public HbMainWindow |
|
191 { |
|
192 Q_OBJECT |
|
193 public: |
|
194 /** |
|
195 * Constructor. |
|
196 * @since S60 ?S60_version. |
|
197 */ |
|
198 SearchMainWindow() |
|
199 { |
|
200 connect(this, SIGNAL(viewReady()), this, SLOT(slotViewReady())); |
|
201 } |
|
202 /** |
|
203 * Function capture the focusin event |
|
204 * @param event . |
|
205 */ |
|
206 void focusInEvent(QFocusEvent * event) |
|
207 { |
|
208 Q_UNUSED(event); |
|
209 slotViewReady(); |
|
210 } |
|
211 public slots: |
|
212 /** |
|
213 * Slot to send the application to background fake exit |
|
214 * @since S60 ?S60_version. |
|
215 */ |
|
216 void slotViewReady(); |
|
217 signals: |
|
218 /** |
|
219 * signal to send the notification for vkb |
|
220 * @since S60 ?S60_version. |
|
221 */ |
|
222 void bringvkb(); |
|
223 }; |
186 #endif //SEARCH_CONTROLLER_H |
224 #endif //SEARCH_CONTROLLER_H |