ui/viewmanagement/statehandler/inc/glxstatemanager.h
changeset 45 863223ea6961
parent 44 aa2fa096cbfb
child 54 0f0f3f26f787
equal deleted inserted replaced
44:aa2fa096cbfb 45:863223ea6961
    22 #define STATEHANDLER_H
    22 #define STATEHANDLER_H
    23 
    23 
    24 #include <QObject>
    24 #include <QObject>
    25 #include <QList>
    25 #include <QList>
    26 #include <glxbasestate.h>
    26 #include <glxbasestate.h>
       
    27 #include <qmap.h>
    27 
    28 
    28 class GlxState;
    29 class GlxState;
    29 class GlxViewManager;
    30 class GlxViewManager;
    30 class GlxMediaModel;
    31 class GlxMediaModel;
    31 class GlxAlbumModel;
    32 class GlxAlbumModel;
   116     
   117     
   117     /*
   118     /*
   118      * call back function to monitor the change in thumbnail manager
   119      * call back function to monitor the change in thumbnail manager
   119      */
   120      */
   120     void updateTNProgress( int count);
   121     void updateTNProgress( int count);
       
   122     void saveData();
   121 
   123 
   122 public :
   124 public :
   123     /*
   125     /*
   124      * It will create a new state and replace the current state with new state in the stack.
   126      * It will create a new state and replace the current state with new state in the stack.
   125      * It will use in the case of state switching.
   127      * It will use in the case of state switching.
   196     /*
   198     /*
   197      * A function to care the exit for application, in the case when application launch from internal and external
   199      * A function to care the exit for application, in the case when application launch from internal and external
   198      */        
   200      */        
   199     void exitApplication();
   201     void exitApplication();
   200 
   202 
       
   203     /*Launch Application as an acitivyt.
       
   204      * Return Value @0 : If launching an activity fails
       
   205      *              @1 : If launch activity passes
       
   206      */
       
   207      bool launchActivity();
   201 private:
   208 private:
   202     GlxViewManager      *mViewManager;
   209     GlxViewManager      *mViewManager;
   203     GlxMediaModel       *mAllMediaModel;        // for all grid
   210     GlxMediaModel       *mAllMediaModel;        // for all grid
   204     GlxMediaModel       *mAlbumGridMediaModel;  // for album grid 
   211     GlxMediaModel       *mAlbumGridMediaModel;  // for album grid 
   205     GlxAlbumModel       *mAlbumMediaModel;      // for album list
   212     GlxAlbumModel       *mAlbumMediaModel;      // for album list
   208     GlxState            *mCurrentState;		
   215     GlxState            *mCurrentState;		
   209     GlxActionHandler    *mActionHandler;
   216     GlxActionHandler    *mActionHandler;
   210     GlxTNObserver       *mTNObserver;
   217     GlxTNObserver       *mTNObserver;
   211     int                 mCollectionId;
   218     int                 mCollectionId;
   212     bool                isProgressbarRunning;
   219     bool                isProgressbarRunning;
       
   220     QMap<QString, qint32> mSaveActivity;
   213 };
   221 };
   214 
   222 
   215 
   223 
   216 #endif /* STATEHANDLER_H_ */
   224 #endif /* STATEHANDLER_H_ */