ui/viewmanagement/statehandler/inc/glxgridstate.h
branchRCL_3
changeset 59 8e5f6eea9c9f
equal deleted inserted replaced
57:ea65f74e6de4 59:8e5f6eea9c9f
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef GLXGRIDSTATE_H
       
    21 #define GLXGRIDSTATE_H
       
    22 
       
    23 #include <glxbasestate.h>
       
    24 
       
    25 class GlxStateManager;
       
    26 
       
    27 class GlxGridState : public GlxState
       
    28 {
       
    29 public :
       
    30 	GlxGridState(GlxStateManager *stateManager, GlxState *preState = NULL);
       
    31 	int state() const { return (int) mState; }
       
    32 	void setState(int internalState) { mState = (GridState) internalState; }
       
    33 	void eventHandler(qint32 &id);
       
    34 	void setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect);
       
    35 	
       
    36 signals :    
       
    37 
       
    38 public slots:
       
    39 
       
    40 protected:
       
    41 	
       
    42 private slots:
       
    43 
       
    44 private:
       
    45 	void defaultEventHandler ( qint32 &id );
       
    46 	void allItemEventHandler ( qint32 &id );
       
    47 	void albumItemEventHandler ( qint32 &id );
       
    48 
       
    49 private:
       
    50 	//grid internal state
       
    51 	GridState mState; 	
       
    52 	GlxStateManager *mStateManager;
       
    53 	bool mIsMarkingMode;
       
    54 	qint32 mCommandId;  //commandID, save the command before entering into the marking mode for next user interaction
       
    55 };
       
    56 
       
    57 
       
    58 #endif /* GLXGRIDSTATE_H_ */