ui/viewmanagement/statehandler/inc/glxliststate.h
changeset 54 0f0f3f26f787
parent 23 74c9f037fd5d
equal deleted inserted replaced
52:a3a4c0de738e 54:0f0f3f26f787
    18 #ifndef GLXLISTSTATE_H
    18 #ifndef GLXLISTSTATE_H
    19 #define GLXLISTSTATE_H
    19 #define GLXLISTSTATE_H
    20 
    20 
    21 #include <glxbasestate.h>
    21 #include <glxbasestate.h>
    22 
    22 
       
    23 /**
       
    24  * class to manage list state
       
    25  */
    23 class GlxListState : public GlxState
    26 class GlxListState : public GlxState
    24 {
    27 {
    25 public :
    28 public :
       
    29     /**
       
    30      * constructor
       
    31      */
    26 	GlxListState(GlxState *preState = NULL);
    32 	GlxListState(GlxState *preState = NULL);
       
    33 
       
    34 	/**
       
    35 	 * return current state of list
       
    36 	 * @return current state
       
    37 	 */
       
    38 	int state() const { return (int) mState; }
       
    39 	/**
       
    40 	 * set current state
       
    41 	 * @param internalState substate of list to be set
       
    42 	 */
       
    43     void setState(int internalState) { mState = (ListState) internalState; }
       
    44 	
       
    45     /**
       
    46      * event handler
       
    47      */
    27 	void eventHandler(qint32 &id);
    48 	void eventHandler(qint32 &id);
    28 	void setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect);	
    49 	/**
       
    50 	 * set transition parameter
       
    51 	 * @param dir navigation direction
       
    52 	 * @param effect effect to be run on view transition
       
    53 	 * @param viewEffect 
       
    54 	 */
       
    55 	void setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect);
       
    56 private:
       
    57     ///list internal state
       
    58 	ListState mState;   
       
    59 	
    29 };
    60 };
    30 
    61 
    31 #endif /* GLXLISTSTATE_H */
    62 #endif /* GLXLISTSTATE_H */