ui/viewutilities/effectplugin/inc/glxeffectpluginbase.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 GLXEFFECTPLUGINBASE_H
       
    19 #define GLXEFFECTPLUGINBASE_H
       
    20 
       
    21 #include <QList>
       
    22 #include <QString>
       
    23 #include <QGraphicsItem>
       
    24 
       
    25 /*
       
    26  * It is based class of diffetent animation plugin.
       
    27  * These Plugin mostly used for playing the animation in slide show
       
    28  */
       
    29 
       
    30 class GlxEffectPluginBase 
       
    31 {
       
    32 public :
       
    33     /*
       
    34      * Constructor
       
    35      */
       
    36     GlxEffectPluginBase( int effectId ) { mEffectId = effectId ;  }
       
    37     
       
    38     /*
       
    39      * Destructor
       
    40      */
       
    41     virtual ~GlxEffectPluginBase() {}
       
    42     
       
    43     /*
       
    44      * return the list of effect file's 
       
    45      */
       
    46     virtual QList <QString > effectFileList() = 0;
       
    47     
       
    48     /*
       
    49      * Setup the item's postion and other properties before plaing the animation
       
    50      */
       
    51     virtual void setUpItems( QList< QGraphicsItem * > &  items ) { Q_UNUSED( items ) }
       
    52 
       
    53     /*
       
    54      * second animation will run same time(false) or later (true)
       
    55      */    
       
    56     virtual bool isAnimationLater(int index) 
       
    57     { 
       
    58         Q_UNUSED( index )
       
    59         return false ; 
       
    60     }
       
    61     
       
    62     /*
       
    63      * Return the item type of animated object
       
    64      */
       
    65     virtual QString ItemType() { return QString("HbIconItem") ; }
       
    66     
       
    67     /*
       
    68      * Return the animation object
       
    69      */
       
    70     virtual QGraphicsItem * animationItem() { return NULL; }
       
    71     
       
    72 private :
       
    73     int mEffectId ;
       
    74 
       
    75 };
       
    76 
       
    77 #endif /*GLXEFFECTPLUGINBASE_H*/