ui/viewmanagement/statehandler/inc/glxslideshowstate.h
changeset 55 fb37077c270f
parent 24 99ad1390cd33
equal deleted inserted replaced
49:f291796e213d 55:fb37077c270f
    19 #define GLXSLIDESHOWSTATE_H
    19 #define GLXSLIDESHOWSTATE_H
    20 
    20 
    21 #include <glxbasestate.h>
    21 #include <glxbasestate.h>
    22 
    22 
    23 class GlxStateManager;
    23 class GlxStateManager;
       
    24 class GlxOrientationSensorFilter;
    24 
    25 
       
    26 /**
       
    27  * Class Description
       
    28  * This is slide show state corresponding to slide show view.
       
    29  */
    25 class GlxSlideShowState : public GlxState
    30 class GlxSlideShowState : public GlxState
    26 {
    31 {
    27 public :
    32 public :
       
    33     /**
       
    34      * constructor
       
    35      * @param pointer of state manager.
       
    36      * @param pointer of perivious state.
       
    37      */
    28 	GlxSlideShowState(GlxStateManager *stateManager, GlxState *preState = NULL);
    38 	GlxSlideShowState(GlxStateManager *stateManager, GlxState *preState = NULL);
       
    39 	
       
    40 	/**
       
    41 	 * state()
       
    42 	 * @return return the substate.
       
    43 	 */
    29 	int state() const { return (int) mState; }
    44 	int state() const { return (int) mState; }
       
    45 	
       
    46 	/**
       
    47 	 * setState() - set the current substate
       
    48 	 * @param substate of the this state
       
    49 	 */
    30 	void setState(int internalState) { mState = (SlideShowState) internalState; }
    50 	void setState(int internalState) { mState = (SlideShowState) internalState; }
    31 	void eventHandler(qint32 &id);
    51 	
       
    52 	/**
       
    53 	 * eventHandler() - A command handler of this state
       
    54 	 * @param command id 
       
    55 	 */
       
    56 	void eventHandler(qint32 &commandId);
       
    57 	
       
    58 	/**
       
    59 	 * albumItemEventHandler() - A command handle for album substate
       
    60 	 * @param command id 
       
    61 	 */
    32 	void albumItemEventHandler( qint32 &id );
    62 	void albumItemEventHandler( qint32 &id );
    33 	~GlxSlideShowState() {}	
    63 	
       
    64 	/**
       
    65 	 * Destructor
       
    66 	 */
       
    67 	~GlxSlideShowState();	
    34 	
    68 	
    35 private:
    69 private:
    36     //slide show internal state
    70     //slide show internal state
    37     SlideShowState mState;
    71     SlideShowState mState;
    38     GlxStateManager *mStateManager;
    72     GlxStateManager *mStateManager;
       
    73     GlxOrientationSensorFilter *mOrientSensorFilter;
    39 };
    74 };
    40 
    75 
    41 #endif /* GLXSLIDESHOWSTATE_H */
    76 #endif /* GLXSLIDESHOWSTATE_H */