ui/viewmanagement/viewmanager/inc/glxviewmanager.h
changeset 71 27f2d7aec52a
parent 58 383b67fbdb11
child 72 0a8e959402e5
equal deleted inserted replaced
69:45459746d5e8 71:27f2d7aec52a
    77     /**
    77     /**
    78      * launch application
    78      * launch application
    79      * @param id viewId
    79      * @param id viewId
    80      * @param model model to be used for the view
    80      * @param model model to be used for the view
    81      */
    81      */
    82     void launchApplication(qint32 id, QAbstractItemModel *model);
    82     void launchApplication( qint32 id, QAbstractItemModel *model );
    83 
    83 
    84     /**
    84     /**
    85      * add back key action
    85      * add back key action
    86      */
    86      */
    87     void addBackSoftKeyAction();
    87     void addBackSoftKeyAction();
    99 
    99 
   100     /**
   100     /**
   101      *  To update the tool bar enable and disable icon
   101      *  To update the tool bar enable and disable icon
   102      *  id = This should be selected toolbar tab id
   102      *  id = This should be selected toolbar tab id
   103      */    
   103      */    
   104     void updateToolBarIcon(int id);
   104     void updateToolBarIcon( int id );
   105 
   105 
   106     /**
   106     /**
   107      * Enable the marking mode of the view to select multiple item
   107      * Enable the marking mode of the view to select multiple item
   108      */    
   108      */    
   109     void enterMarkingMode(qint32 viewId);
   109     void enterMarkingMode( qint32 viewId, qint32 commandId );
   110 
   110 
   111     /**
   111     /**
   112      * Enable the normal mode of the view
   112      * Enable the normal mode of the view
   113      */    
   113      */    
   114     void exitMarkingMode(qint32 viewId);
   114     void exitMarkingMode( qint32 viewId );
   115 
   115 
   116     /**
   116     /**
   117      * Pass the user action to the view
   117      * Pass the user action to the view
   118      */    
   118      */    
   119     void handleUserAction(qint32 viewId, qint32 commandId);
   119     void handleUserAction( qint32 viewId, qint32 commandId );
   120 
   120 
   121     /**
   121     /**
   122      *  Return the selection model to the user
   122      *  Return the selection model to the user
   123      */    
   123      */    
   124     QItemSelectionModel * getSelectionModel(qint32 viewId);
   124     QItemSelectionModel * getSelectionModel( qint32 viewId );
   125 
   125 
   126     /**
   126     /**
   127      * To set the model of current view
   127      * To set the model of current view
   128      */
   128      */
   129     void setModel( QAbstractItemModel *model );
   129     void setModel( QAbstractItemModel *model );
   130 	    
   130 	    
   131 signals :
   131 signals :
   132     /**
   132     /**
   133      *  emit the user action
   133      *  emit the user action
   134      */
   134      */
   135     void actionTriggered(qint32 id);
   135     void actionTriggered( qint32 id );
   136     void externalCommand(int cmdId);
   136     void externalCommand( int cmdId );
   137 
   137 
   138 public slots:
   138 public slots:
   139     /**
   139     /**
   140      *  This public slot is used to launch the view
   140      *  This public slot is used to launch the view
   141      */
   141      */
   142     void launchView (qint32 id, QAbstractItemModel *model);
   142     void launchView ( qint32 id, QAbstractItemModel *model );
   143 
   143 
   144     /**
   144     /**
   145      *  It is over load slot and used to run the animation for view transition and launch the view
   145      *  It is over load slot and used to run the animation for view transition and launch the view
   146      */    
   146      */    
   147     void launchView (qint32 id, QAbstractItemModel *model, GlxEffect effect, GlxViewEffect viewEffect);
   147     void launchView ( qint32 id, QAbstractItemModel *model, GlxEffect effect, GlxViewEffect viewEffect );
   148     
   148     
   149     void launchProgressDialog( int maxValue );
   149     void launchProgressDialog( int maxValue );
   150     void updateProgressDialog( int currentValue);
   150     void updateProgressDialog( int currentValue );
   151 
   151 
   152     /**
   152     /**
   153      *  It will removed and deleted the view.
   153      *  It will removed and deleted the view.
   154      *  Currently It is not used so may be in future, It will be removed.
   154      *  Currently It is not used so may be in future, It will be removed.
   155      */    
   155      */    
   156     void destroyView (qint32 id);
   156     void destroyView ( qint32 id );
   157 
   157 
   158     /**
   158     /**
   159      *  It will pass the user action to the state manager
   159      *  It will pass the user action to the state manager
   160      */    
   160      */    
   161     void actionProcess(qint32 id);
   161     void actionProcess( qint32 id );
   162 
   162 
   163     /**
   163     /**
   164      *  It will pass the user selected menu action to state manager 
   164      *  It will pass the user selected menu action to state manager 
   165      *  check for depricated with actionProcess api
   165      *  check for depricated with actionProcess api
   166      */    
   166      */    
   167     void handleMenuAction(qint32 commandId);
   167     void handleMenuAction( qint32 commandId );
   168 
   168 
   169     /**
   169     /**
   170      *  It will pass the user action ( tool bar + back ) to state manager
   170      *  It will pass the user action ( tool bar + back ) to state manager
   171      */    
   171      */    
   172     void handleAction();
   172     void handleAction();
   178     void effectFinished( );
   178     void effectFinished( );
   179 
   179 
   180     /**
   180     /**
   181      *  This will open the item specifc Menu
   181      *  This will open the item specifc Menu
   182      */    
   182      */    
   183     void itemSpecificMenuTriggered(qint32,QPointF );
   183     void itemSpecificMenuTriggered( qint32, QPointF );
   184     
   184     
   185     void handleReadyView();
   185     void handleReadyView();
   186 	
   186 	
   187 private slots:
   187 private slots:
   188 
   188 
   191    
   191    
   192 private:
   192 private:
   193     /**
   193     /**
   194      * It will create and return the view
   194      * It will create and return the view
   195      */
   195      */
   196     GlxView * resolveView (qint32 id);
   196     GlxView * resolveView ( qint32 id );
   197 
   197 
   198     /**
   198     /**
   199      *  It will find a view from the view list and return it
   199      *  It will find a view from the view list and return it
   200      */    
   200      */    
   201     GlxView * findView (qint32 id);
   201     GlxView * findView ( qint32 id );
   202 
   202 
   203     /**
   203     /**
   204      *  It will deativate the current view
   204      *  It will deativate the current view
   205      */    
   205      */    
   206     void deActivateView();
   206     void deActivateView();
   227 
   227 
   228     /**
   228     /**
   229      *  It will create the marking mode tool bar
   229      *  It will create the marking mode tool bar
   230      */    
   230      */    
   231     void createMarkingModeToolBar();
   231     void createMarkingModeToolBar();
       
   232     
       
   233     /**
       
   234      * setMarkingToolBarAction() - set the toolbar action text
       
   235      */
       
   236     void setMarkingToolBarAction( qint32 commandId );
   232 
   237 
   233     /**
   238     /**
   234      *  It will add all the view manager related connection
   239      *  It will add all the view manager related connection
   235      */    
   240      */    
   236     void addConnection();
   241     void addConnection();