videocollection/videocollectionview/inc/videolistview.h
changeset 41 229f037ce963
parent 40 13331705e488
child 44 518105d52e45
--- a/videocollection/videocollectionview/inc/videolistview.h	Fri Jun 11 09:44:20 2010 +0300
+++ b/videocollection/videocollectionview/inc/videolistview.h	Thu Jun 24 09:49:13 2010 +0300
@@ -81,7 +81,7 @@
      * @param itemId, Id of the widget which is to be activated
      * @return 0 activation ok, < 0 if activation fails
      */
-    int activateView(const TMPXItemId &itemId);
+    int activateView(TMPXItemId &itemId);
 
     /**
      * Deactivates current widget, disables menu and disconnects
@@ -250,12 +250,12 @@
     /**
      * Slot is connected to videolistwidgets collectionOpened -signal
      *
-     * @param collectionOpened
+     * @param openingCollection
      * @param collection contains the name of the collection opened
      */
-    void collectionOpenedSlot(bool collectionOpened,
+    void collectionOpenedSlot(bool openingCollection,
         const QString& collection,
-        const QModelIndex &index);
+        const TMPXItemId &collectionId);
         
     /**
      * Slot which is called when an object has been loaded.
@@ -320,12 +320,19 @@
     void showAction(bool show, const QString &name);
     
     /**
-     * Activate to all videos view. 
+     * Activates all videos or collections -list.
+     * 
+     * @return int 0 ok 
      */
-    int activateVideosView();
+    int activateMainView();
     
     /**
-     * Activate to collection content view.
+     * Activate to collection content view when servicing.
+     * Only default collections are supported. If some other
+     * id is provided, all videos  -list will be activated 
+     * 
+     * @param itemId. Id of collection to activate
+     * @return int 
      */
     int activateCollectionContentView(const TMPXItemId &itemId);
     
@@ -359,11 +366,6 @@
     VideoCollectionUiLoader* mUiLoader;
     
     /**
-     * Boolean for knowing when the app was started as a service.
-     */
-    bool mIsService;
-    
-    /**
      * Boolean for knowing when the model is ready.
      */
     bool mModelReady;
@@ -380,6 +382,7 @@
 
     /**
      * pointer to videoservices instance
+     * if exists, app has started as service
      */
     VideoServices* mVideoServices;