equal
deleted
inserted
replaced
148 * signal is connected to service's itemSelected -slot |
148 * signal is connected to service's itemSelected -slot |
149 */ |
149 */ |
150 void fileUri(const QString&); |
150 void fileUri(const QString&); |
151 |
151 |
152 protected slots: |
152 protected slots: |
153 /** |
153 |
154 * Signaled by the fw during long press and indicating that popupmenu |
154 /** |
155 * concerning particular item is to be opened. |
155 * Signaled by the fw when item is long pressed. |
|
156 * Popup menu for the particular item is opened. |
156 * Saves current selected item's index to mCurrentIndex |
157 * Saves current selected item's index to mCurrentIndex |
157 */ |
158 */ |
158 void longPressGesture (const QPointF &point); |
159 void longPressedSlot(HbAbstractViewItem *item, const QPointF &point); |
159 |
160 |
|
161 /** |
|
162 * Re-implemented in case context menu is visible, the below list shoud not |
|
163 * be panned. |
|
164 */ |
|
165 void panGesture(const QPointF &point); |
|
166 |
160 private slots: |
167 private slots: |
161 |
168 |
162 /** |
169 /** |
163 * Signaled for one item deletion. |
170 * Signaled for one item deletion. |
164 * |
171 * |
168 /** |
175 /** |
169 * Signaled for item rename. |
176 * Signaled for item rename. |
170 * |
177 * |
171 */ |
178 */ |
172 void renameSlot(); |
179 void renameSlot(); |
173 |
|
174 /** |
|
175 * Signaled to play all items. |
|
176 * |
|
177 */ |
|
178 void playAllSlot(); |
|
179 |
180 |
180 /** |
181 /** |
181 * Signaled to add an item into a collection. |
182 * Signaled to add an item into a collection. |
182 * |
183 * |
183 */ |
184 */ |
201 * |
202 * |
202 */ |
203 */ |
203 void openDetailsSlot(); |
204 void openDetailsSlot(); |
204 |
205 |
205 /** |
206 /** |
206 * Signaled when the application has been lauched as a service and |
207 * Signaled when item's default functionality is initialized from context menu. |
207 * playback is initialized from context menu. |
208 * Calls emitActivated for actually axecuting the functionality |
208 * |
209 */ |
209 */ |
210 void openItemSlot(); |
210 void playItemSlot(); |
|
211 |
211 |
212 /** |
212 /** |
213 * slot is connected to view's doDelayeds -signal |
213 * slot is connected to view's doDelayeds -signal |
214 * |
214 * |
215 */ |
215 */ |
253 /** |
253 /** |
254 * Fetches thumbnails for the visible items. |
254 * Fetches thumbnails for the visible items. |
255 * |
255 * |
256 */ |
256 */ |
257 void fetchThumbnailsForVisibleItems(); |
257 void fetchThumbnailsForVisibleItems(); |
258 |
|
259 // TODO: following can be removed after all implementation ready |
|
260 /** |
|
261 * Slot is connected into item signals that are not yet implemented. |
|
262 * Slot shows "Not yet implemented" note |
|
263 */ |
|
264 void debugNotImplementedYet(); |
|
265 |
258 |
266 private: |
259 private: |
267 |
260 |
268 enum TContextActionIds |
261 enum TContextActionIds |
269 { |
262 { |
271 EActionDetails, |
264 EActionDetails, |
272 EActionRemove, |
265 EActionRemove, |
273 EActionAddToCollection, |
266 EActionAddToCollection, |
274 EActionRemoveCollection, |
267 EActionRemoveCollection, |
275 EActionRename, |
268 EActionRename, |
276 EActionPlay |
269 EActionPlay, |
|
270 EActionOpen |
277 }; |
271 }; |
278 |
272 |
279 /** |
273 /** |
280 * Method creates popup menu for list items. |
274 * Method creates popup menu for list items. |
281 * |
275 * |
285 /** |
279 /** |
286 * Method sets correct popup menu for specific list items. |
280 * Method sets correct popup menu for specific list items. |
287 * |
281 * |
288 */ |
282 */ |
289 void setContextMenu(); |
283 void setContextMenu(); |
|
284 |
|
285 /** |
|
286 * Method sets correct popup menu during browsing service. |
|
287 */ |
|
288 void setBrowsingServiceContextMenu(); |
290 |
289 |
291 /** |
290 /** |
292 * Method connects signals needed by the widget |
291 * Method connects signals needed by the widget |
293 * |
292 * |
294 * @return int 0 if connect ok, < 0 if connect fails |
293 * @return int 0 if connect ok, < 0 if connect fails |
298 /** |
297 /** |
299 * Method disconnects signals needed by the widget |
298 * Method disconnects signals needed by the widget |
300 * |
299 * |
301 */ |
300 */ |
302 void disConnectSignals(); |
301 void disConnectSignals(); |
|
302 |
|
303 /** |
|
304 * Return if this is a browsing service. |
|
305 */ |
|
306 bool isBrowsingService() const; |
|
307 |
|
308 /** |
|
309 * Set navigation action. |
|
310 */ |
|
311 void setNavigationAction(); |
|
312 |
|
313 /** |
|
314 * handles single item activation. Either from |
|
315 * user's single tap or from default action at context menu. |
|
316 * |
|
317 * @param index of item |
|
318 */ |
|
319 void doActivateItem(const QModelIndex &index); |
303 |
320 |
304 private: |
321 private: |
305 |
322 |
306 /** |
323 /** |
307 * Provided model |
324 * Provided model |
334 * Boolean for knowing when the app was started as a service. |
351 * Boolean for knowing when the app was started as a service. |
335 */ |
352 */ |
336 bool mIsService; |
353 bool mIsService; |
337 |
354 |
338 /** |
355 /** |
339 * Navigation softkey action object for back. |
356 * Navigation softkey action. |
340 */ |
357 */ |
341 HbAction *mNavKeyBackAction; |
358 HbAction *mNavKeyAction; |
342 |
|
343 /** |
|
344 * Navigation softkey action object for quit. |
|
345 */ |
|
346 HbAction *mNavKeyQuitAction; |
|
347 |
359 |
348 /** |
360 /** |
349 * Item sensitive context menu |
361 * Item sensitive context menu |
350 */ |
362 */ |
351 HbMenu *mContextMenu; |
363 HbMenu *mContextMenu; |