ui/viewmanagement/viewmanager/inc/glxviewmanager.h
changeset 33 1ee2af37811f
parent 26 c499df2dbb33
child 36 6481344a6d67
equal deleted inserted replaced
29:2c833fc9e98f 33:1ee2af37811f
    17 
    17 
    18 
    18 
    19 
    19 
    20 #ifndef GLXVIEWMANAGER_H
    20 #ifndef GLXVIEWMANAGER_H
    21 #define GLXVIEWMANAGER_H
    21 #define GLXVIEWMANAGER_H
    22  #include <QItemSelectionModel>
    22 
    23 #include <QObject>
    23 #include <QObject>
    24 #include <QList>
    24 #include <QList>
    25 #include <hbeffect.h>
    25 #include <hbeffect.h>
    26 #include "glxuistd.h"
    26 #include "glxuistd.h"
    27 
    27 
    33 class HbToolBar;
    33 class HbToolBar;
    34 class HbAction;
    34 class HbAction;
    35 class QItemSelectionModel;
    35 class QItemSelectionModel;
    36 class HbMenu;
    36 class HbMenu;
    37 class GlxSlideShowEffectEngine;
    37 class GlxSlideShowEffectEngine;
       
    38 class HbProgressDialog;
       
    39 class GlxMainWindowEventFilter;
    38 
    40 
    39 #ifdef BUILD_VIEWMANAGER
    41 #ifdef BUILD_VIEWMANAGER
    40 #define GLX_VIEWMANAGER_EXPORT Q_DECL_EXPORT
    42 #define GLX_VIEWMANAGER_EXPORT Q_DECL_EXPORT
    41 #else
    43 #else
    42 #define GLX_VIEWMANAGER_EXPORT Q_DECL_IMPORT
    44 #define GLX_VIEWMANAGER_EXPORT Q_DECL_IMPORT
    57 Q_OBJECT
    59 Q_OBJECT
    58 
    60 
    59 public :
    61 public :
    60     GlxViewManager();
    62     GlxViewManager();
    61     ~GlxViewManager();
    63     ~GlxViewManager();
    62     void setupItems(int subState = -1);
    64     void setupItems( );
    63     void launchApplication(qint32 id, QAbstractItemModel *model);
    65     void launchApplication(qint32 id, QAbstractItemModel *model);
    64     void addBackSoftKeyAction();
    66     void addBackSoftKeyAction();
    65 /*
    67 /*
    66  * This will return the orientation of main window
    68  * This will return the orientation of main window
    67  */    
    69  */    
    90     void handleUserAction(qint32 viewId, qint32 commandId);
    92     void handleUserAction(qint32 viewId, qint32 commandId);
    91 /*
    93 /*
    92  *  Return the selection model to the user
    94  *  Return the selection model to the user
    93  */    
    95  */    
    94     QItemSelectionModel * getSelectionModel(qint32 viewId);
    96     QItemSelectionModel * getSelectionModel(qint32 viewId);
       
    97 /*
       
    98  * To set the model of current view
       
    99  */
       
   100     void setModel( QAbstractItemModel *model );
    95 	    
   101 	    
    96 signals :
   102 signals :
    97 /*
   103 /*
    98  *  emit the user action
   104  *  emit the user action
    99  */
   105  */
   107     void launchView (qint32 id, QAbstractItemModel *model);
   113     void launchView (qint32 id, QAbstractItemModel *model);
   108 /*
   114 /*
   109  *  It is over load slot and used to run the animation for view transition and launch the view
   115  *  It is over load slot and used to run the animation for view transition and launch the view
   110  */    
   116  */    
   111     void launchView (qint32 id, QAbstractItemModel *model, GlxEffect effect, GlxViewEffect viewEffect);
   117     void launchView (qint32 id, QAbstractItemModel *model, GlxEffect effect, GlxViewEffect viewEffect);
       
   118     
       
   119     void launchProgressDialog( int maxValue );
       
   120     void updateProgressDialog( int currentValue);
   112 /*
   121 /*
   113  *  It will removed and deleted the view.
   122  *  It will removed and deleted the view.
   114  *  Currently It is not used so may be in future, It will be removed.
   123  *  Currently It is not used so may be in future, It will be removed.
   115  */    
   124  */    
   116     void destroyView (qint32 id);
   125     void destroyView (qint32 id);
   140 protected:
   149 protected:
   141 	
   150 	
   142 private slots:
   151 private slots:
   143 
   152 
   144    void checkMarked();
   153    void checkMarked();
       
   154    void hideProgressDialog();
       
   155    
   145 private:
   156 private:
   146 /*
   157 /*
   147  * It will create and return the view
   158  * It will create and return the view
   148  */
   159  */
   149     GlxView * resolveView (qint32 id);
   160     GlxView * resolveView (qint32 id);
   195     HbToolBar          *mViewToolBar; //view tool bar
   206     HbToolBar          *mViewToolBar; //view tool bar
   196     HbToolBar          *mMarkingToolBar; //marking mode tool bar
   207     HbToolBar          *mMarkingToolBar; //marking mode tool bar
   197     HbMenu *mMenu; 
   208     HbMenu *mMenu; 
   198     GlxView *mView;
   209     GlxView *mView;
   199     QAbstractItemModel *mModel; //no ownership
   210     QAbstractItemModel *mModel; //no ownership
   200 	QItemSelectionModel * mSelectionModel;
   211     QItemSelectionModel * mSelectionModel;
       
   212     HbProgressDialog *mProgressDialog;
       
   213     GlxMainWindowEventFilter* mWindowEventFilter;
       
   214 
   201 };
   215 };
   202 
   216 
   203 
   217 
   204 #endif /* GLXVIEWMANAGER_H_ */
   218 #endif /* GLXVIEWMANAGER_H_ */