videocollection/videocollectionview/inc/videolistwidget.h
changeset 41 229f037ce963
parent 40 13331705e488
child 44 518105d52e45
equal deleted inserted replaced
40:13331705e488 41:229f037ce963
    67     /**
    67     /**
    68      * Method creates colleciton wrapper, grid and list views,
    68      * Method creates colleciton wrapper, grid and list views,
    69      * layout and activates correct view based on the current orientation
    69      * layout and activates correct view based on the current orientation
    70      * 
    70      * 
    71      * @param model Model for this list view.
    71      * @param model Model for this list view.
    72      * @param videoservices
    72      * @param isService, flag indicating app service status
    73      * @param level presetted level for the widget
    73      * @param level presetted level for the widget
    74      * @return int 0 initialization ok, < 0 if fails.
    74      * @return int 0 initialization ok, < 0 if fails.
    75      */
    75      */
    76     int initialize(VideoSortFilterProxyModel &model, 
    76     int initialize(VideoSortFilterProxyModel &model, 
    77                    VideoServices* videoServices  = 0,
    77                    bool isService  = false,
    78                    VideoCollectionCommon::TCollectionLevels level = VideoCollectionCommon::ELevelInvalid);
    78                    VideoCollectionCommon::TCollectionLevels level = VideoCollectionCommon::ELevelInvalid);
    79 
    79 
    80     /**
    80     /**
    81      * Method enables and displays current active view
    81      * Method enables and displays current active view
    82      *
    82      *
   146      * view incase some collection item is opened
   146      * view incase some collection item is opened
   147      *
   147      *
   148      * @param true if opened, false if closed.
   148      * @param true if opened, false if closed.
   149      * @param optional name string
   149      * @param optional name string
   150      */
   150      */
   151     void collectionOpened(bool, const QString&, const QModelIndex&);
   151     void collectionOpened(bool, const QString&, const TMPXItemId&);
   152 
   152 
   153     /**
   153     /**
   154      * signal is connected to service's itemSelected -slot
   154      * signal is connected to service's itemSelected -slot
   155      */
   155      */
   156     void fileUri(const QString&);
   156     void fileUri(const QString&);
   241     /**
   241     /**
   242      * Signaled when stepping back from collection in collection view
   242      * Signaled when stepping back from collection in collection view
   243      *
   243      *
   244      */
   244      */
   245     void back();
   245     void back();
       
   246     
       
   247     /**
       
   248      * connected to navi -quit action triggered signal.
       
   249      * Signals fileUri with empty path for servicing to be completed
       
   250      */
       
   251     void endVideoFecthingSlot();
   246 	
   252 	
   247 	/**
   253 	/**
   248 	 * Signaled when view scrolling starts, pauses thumbnail creation.
   254 	 * Signaled when view scrolling starts, pauses thumbnail creation.
   249 	 *
   255 	 *
   250 	 */
   256 	 */
   276     /**
   282     /**
   277      * Fetches thumbnails for the visible items.
   283      * Fetches thumbnails for the visible items.
   278      *
   284      *
   279      */
   285      */
   280     void fetchThumbnailsForVisibleItems();
   286     void fetchThumbnailsForVisibleItems();
   281     
   287 
   282 private:
   288 private:
   283 
   289 
   284     enum TContextActionIds
   290     enum TContextActionIds
   285     {
   291     {
   286     	EActionDelete = 1,
   292     	EActionDelete = 1,
   305      *
   311      *
   306      */
   312      */
   307     void setContextMenu();
   313     void setContextMenu();
   308     
   314     
   309     /**
   315     /**
   310      * Method sets correct popup menu during browsing service.
   316      * Method sets correct popup menu for service.
   311      */
   317      */
   312     void setBrowsingServiceContextMenu();
   318     void setServiceContextMenu();
   313 
   319 
   314     /**
   320     /**
   315      * Method connects signals needed by the widget
   321      * Method connects signals needed by the widget
   316      *
   322      *
   317      * @return int 0 if connect ok, < 0 if connect fails
   323      * @return int 0 if connect ok, < 0 if connect fails
   321     /**
   327     /**
   322      * Method disconnects signals needed by the widget
   328      * Method disconnects signals needed by the widget
   323      *
   329      *
   324      */
   330      */
   325     void disConnectSignals();
   331     void disConnectSignals();
   326     
       
   327     /**
       
   328      * Return if this is a browsing service.
       
   329      */
       
   330     bool isBrowsingService() const;
       
   331     
   332     
   332     /**
   333     /**
   333      * Set navigation action.
   334      * Set navigation action.
   334      */
   335      */
   335     void setNavigationAction();
   336     void setNavigationAction();
   357      * Not own.
   358      * Not own.
   358      */
   359      */
   359     QPointer<VideoSortFilterProxyModel> mModel;
   360     QPointer<VideoSortFilterProxyModel> mModel;
   360 
   361 
   361     /**
   362     /**
   362      * pointer to videoservices instance
   363      * pointer to videoservices instance. If exists, 
       
   364      * app has started as service.
   363      */
   365      */
   364     VideoServices* mVideoServices;
   366     VideoServices* mVideoServices;
   365 
   367 
   366     /**
   368     /**
   367      * map containing pointers to main menu actions
   369      * map containing pointers to main menu actions
   377 	/**
   379 	/**
   378      * True if signals have been connected
   380      * True if signals have been connected
   379      */
   381      */
   380 	bool                       mSignalsConnected;
   382 	bool                       mSignalsConnected;
   381 	
   383 	
   382     /**
       
   383      * Boolean for knowing when the app was started as a service.
       
   384      */
       
   385 	bool                       mIsService;
       
   386 
       
   387 	/**
   384 	/**
   388      * Navigation softkey action.
   385      * Navigation softkey action.
   389      */
   386      */
   390 	HbAction 				   *mNavKeyAction;
   387 	HbAction 				   *mNavKeyAction;
   391 
   388