mmsharing/livecommsui/lcui/tsrc/ut_lcui/hbstubs/hbeffect.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2008-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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HBEFFECT_H
       
    20 #define HBEFFECT_H
       
    21 
       
    22 #include <QRect>
       
    23 #include <hbglobal.h>
       
    24 #include <hbnamespace.h>
       
    25 
       
    26 QT_BEGIN_NAMESPACE
       
    27 class QGraphicsItem;
       
    28 class QVariant;
       
    29 QT_END_NAMESPACE
       
    30 
       
    31 class HbEffect
       
    32 {
       
    33 
       
    34 public:
       
    35 
       
    36     struct EffectStatus {
       
    37         QGraphicsItem *item;
       
    38         QString effectEvent;
       
    39         Hb::EffectEvent reason;
       
    40         QVariant userData;
       
    41     };
       
    42 
       
    43     static bool start(QGraphicsItem *item, 
       
    44                             const QString &itemType, 
       
    45                             const QString &effectEvent,
       
    46                             QObject *receiver = 0,
       
    47                             const char *member = 0,
       
    48                             const QVariant &userData = QVariant());
       
    49 
       
    50     static bool add(const QString &itemType, const QString &filePath, const QString &effectEvent = QString() );
       
    51 
       
    52     static bool effectRunning(QGraphicsItem *item, const QString &effectEvent = QString());
       
    53 
       
    54     static bool mRunning;
       
    55     
       
    56 private:
       
    57     HbEffect();
       
    58 };
       
    59 
       
    60 #endif // HBEFFECT_H