diff -r cf5481c2bc0b -r 69946d1824c4 videocollection/videocollectionview/inc/videolistwidget.h --- a/videocollection/videocollectionview/inc/videolistwidget.h Fri Apr 16 14:59:52 2010 +0300 +++ b/videocollection/videocollectionview/inc/videolistwidget.h Mon May 03 12:32:50 2010 +0300 @@ -150,13 +150,20 @@ void fileUri(const QString&); protected slots: + /** - * Signaled by the fw during long press and indicating that popupmenu - * concerning particular item is to be opened. + * Signaled by the fw when item is long pressed. + * Popup menu for the particular item is opened. * Saves current selected item's index to mCurrentIndex */ - void longPressGesture (const QPointF &point); + void longPressedSlot(HbAbstractViewItem *item, const QPointF &point); + /** + * Re-implemented in case context menu is visible, the below list shoud not + * be panned. + */ + void panGesture(const QPointF &point); + private slots: /** @@ -172,12 +179,6 @@ void renameSlot(); /** - * Signaled to play all items. - * - */ - void playAllSlot(); - - /** * Signaled to add an item into a collection. * */ @@ -203,11 +204,10 @@ void openDetailsSlot(); /** - * Signaled when the application has been lauched as a service and - * playback is initialized from context menu. - * + * Signaled when item's default functionality is initialized from context menu. + * Calls emitActivated for actually axecuting the functionality */ - void playItemSlot(); + void openItemSlot(); /** * slot is connected to view's doDelayeds -signal @@ -255,13 +255,6 @@ * */ void fetchThumbnailsForVisibleItems(); - - // TODO: following can be removed after all implementation ready - /** - * Slot is connected into item signals that are not yet implemented. - * Slot shows "Not yet implemented" note - */ - void debugNotImplementedYet(); private: @@ -273,7 +266,8 @@ EActionAddToCollection, EActionRemoveCollection, EActionRename, - EActionPlay + EActionPlay, + EActionOpen }; /** @@ -287,6 +281,11 @@ * */ void setContextMenu(); + + /** + * Method sets correct popup menu during browsing service. + */ + void setBrowsingServiceContextMenu(); /** * Method connects signals needed by the widget @@ -300,6 +299,24 @@ * */ void disConnectSignals(); + + /** + * Return if this is a browsing service. + */ + bool isBrowsingService() const; + + /** + * Set navigation action. + */ + void setNavigationAction(); + + /** + * handles single item activation. Either from + * user's single tap or from default action at context menu. + * + * @param index of item + */ + void doActivateItem(const QModelIndex &index); private: @@ -336,14 +353,9 @@ bool mIsService; /** - * Navigation softkey action object for back. + * Navigation softkey action. */ - HbAction *mNavKeyBackAction; - - /** - * Navigation softkey action object for quit. - */ - HbAction *mNavKeyQuitAction; + HbAction *mNavKeyAction; /** * Item sensitive context menu