videocollection/videocollectionview/inc/videolistview.h
changeset 41 229f037ce963
parent 40 13331705e488
child 44 518105d52e45
equal deleted inserted replaced
40:13331705e488 41:229f037ce963
    79      * orientation change signals.
    79      * orientation change signals.
    80      *
    80      *
    81      * @param itemId, Id of the widget which is to be activated
    81      * @param itemId, Id of the widget which is to be activated
    82      * @return 0 activation ok, < 0 if activation fails
    82      * @return 0 activation ok, < 0 if activation fails
    83      */
    83      */
    84     int activateView(const TMPXItemId &itemId);
    84     int activateView(TMPXItemId &itemId);
    85 
    85 
    86     /**
    86     /**
    87      * Deactivates current widget, disables menu and disconnects
    87      * Deactivates current widget, disables menu and disconnects
    88      * orientation change signals.
    88      * orientation change signals.
    89      *
    89      *
   248     void handleAsyncStatusSlot(int statusCode, QVariant &additional);
   248     void handleAsyncStatusSlot(int statusCode, QVariant &additional);
   249 
   249 
   250     /**
   250     /**
   251      * Slot is connected to videolistwidgets collectionOpened -signal
   251      * Slot is connected to videolistwidgets collectionOpened -signal
   252      *
   252      *
   253      * @param collectionOpened
   253      * @param openingCollection
   254      * @param collection contains the name of the collection opened
   254      * @param collection contains the name of the collection opened
   255      */
   255      */
   256     void collectionOpenedSlot(bool collectionOpened,
   256     void collectionOpenedSlot(bool openingCollection,
   257         const QString& collection,
   257         const QString& collection,
   258         const QModelIndex &index);
   258         const TMPXItemId &collectionId);
   259         
   259         
   260     /**
   260     /**
   261      * Slot which is called when an object has been loaded.
   261      * Slot which is called when an object has been loaded.
   262      */
   262      */
   263     void objectReadySlot(QObject *object, const QString &name);
   263     void objectReadySlot(QObject *object, const QString &name);
   318      * Shows or hides a menu action.
   318      * Shows or hides a menu action.
   319      */
   319      */
   320     void showAction(bool show, const QString &name);
   320     void showAction(bool show, const QString &name);
   321     
   321     
   322     /**
   322     /**
   323      * Activate to all videos view. 
   323      * Activates all videos or collections -list.
   324      */
   324      * 
   325     int activateVideosView();
   325      * @return int 0 ok 
   326     
   326      */
   327     /**
   327     int activateMainView();
   328      * Activate to collection content view.
   328     
       
   329     /**
       
   330      * Activate to collection content view when servicing.
       
   331      * Only default collections are supported. If some other
       
   332      * id is provided, all videos  -list will be activated 
       
   333      * 
       
   334      * @param itemId. Id of collection to activate
       
   335      * @return int 
   329      */
   336      */
   330     int activateCollectionContentView(const TMPXItemId &itemId);
   337     int activateCollectionContentView(const TMPXItemId &itemId);
   331     
   338     
   332 private:
   339 private:
   333 
   340 
   357      * Pointer to the XML UI (DocML) loader, not owned
   364      * Pointer to the XML UI (DocML) loader, not owned
   358      */
   365      */
   359     VideoCollectionUiLoader* mUiLoader;
   366     VideoCollectionUiLoader* mUiLoader;
   360     
   367     
   361     /**
   368     /**
   362      * Boolean for knowing when the app was started as a service.
       
   363      */
       
   364     bool mIsService;
       
   365     
       
   366     /**
       
   367      * Boolean for knowing when the model is ready.
   369      * Boolean for knowing when the model is ready.
   368      */
   370      */
   369     bool mModelReady;
   371     bool mModelReady;
   370     
   372     
   371     /**
   373     /**
   378      */
   380      */
   379     VideoHintWidget::HintLevel mHintLevel;
   381     VideoHintWidget::HintLevel mHintLevel;
   380 
   382 
   381     /**
   383     /**
   382      * pointer to videoservices instance
   384      * pointer to videoservices instance
       
   385      * if exists, app has started as service
   383      */
   386      */
   384     VideoServices* mVideoServices;
   387     VideoServices* mVideoServices;
   385 
   388 
   386     /**
   389     /**
   387      * Currently used list
   390      * Currently used list