ui/viewutilities/effectengine/inc/glxtransitioneffect.h
changeset 36 6481344a6d67
equal deleted inserted replaced
33:1ee2af37811f 36:6481344a6d67
       
     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 #ifndef GLXTRANSITIONEFFECT_H
       
    19 #define GLXTRANSITIONEFFECT_H
       
    20 
       
    21 #include <QList>
       
    22 
       
    23 #include "glxuistd.h"
       
    24 
       
    25 class QString;
       
    26 class QGraphicsItem ;
       
    27 
       
    28 /*
       
    29  * This class have the views transition effect information
       
    30  */
       
    31 class GlxTransitionEffectSetting
       
    32 {
       
    33 public :
       
    34     GlxTransitionEffectSetting(GlxEffect effect);
       
    35     ~GlxTransitionEffectSetting();
       
    36     
       
    37     QList <QString > effectFileList() { return mEffectFileList ; }
       
    38     QList <QString > itemType() { return mItemType ; }
       
    39     QList <QString > eventType() { return mEventType ; }
       
    40     bool isTransitionLater() { return mTransitionLater ; }
       
    41     QGraphicsItem * animationItem() { return mItem ; }
       
    42     
       
    43     void setEffectFileList( QList <QString > & effectFileList) { mEffectFileList = effectFileList ; }
       
    44     void setItemTypes( QList <QString > & itemType) { mItemType = itemType; }
       
    45     void setEventTypes( QList <QString > & eventType) { mEventType = eventType ; }
       
    46     void setTransitionLater(bool transitionLater) { mTransitionLater = transitionLater ; }
       
    47     void setAnimationItem(QGraphicsItem *item) { mItem = item ;}
       
    48     int count() { return mEffectFileList.count() ; }
       
    49     
       
    50 private :
       
    51     void init();
       
    52     
       
    53 private :
       
    54     GlxEffect mEffect;     //transition effect type
       
    55     bool mTransitionLater; //second animation will run same time(false) or later (true)
       
    56     QGraphicsItem *mItem; //it will used in the case of animation run later
       
    57     QList <QString > mEffectFileList; //list of fxml file used for animation
       
    58     QList <QString > mItemType; //list of item type 
       
    59     QList <QString > mEventType; //list of event type
       
    60 };
       
    61 
       
    62 #endif //GLXTRANSITIONEFFECT_H