diff -r adbe7d5ba2f5 -r 45e72b57a2fd videocollection/videocollectionview/inc/videolistview.h --- a/videocollection/videocollectionview/inc/videolistview.h Wed Jun 23 18:14:16 2010 +0300 +++ b/videocollection/videocollectionview/inc/videolistview.h Tue Jul 06 14:17:50 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;