radioapp/radiowidgets/inc/radiouiutilities.h
changeset 13 46974bebc798
child 16 f54ebcfc1b80
equal deleted inserted replaced
0:f3d95d9c00ab 13:46974bebc798
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _RADIOUIUTILITIES_H_
       
    19 #define _RADIOUIUTILITIES_H_
       
    20 
       
    21 // Forward declarations
       
    22 
       
    23 struct EffectInfo
       
    24 {
       
    25     EffectInfo( QGraphicsItem* item, QString path, QString event ) :
       
    26         mItem( item ),
       
    27         mPath( path ),
       
    28         mEvent( event )
       
    29     {}
       
    30 
       
    31     QGraphicsItem* mItem;
       
    32     QString mPath;
       
    33     QString mEvent;
       
    34 
       
    35 private:
       
    36     EffectInfo();
       
    37 };
       
    38 typedef QList<EffectInfo> QEffectList;
       
    39 
       
    40 // Class declaration
       
    41 class RadioUiUtilities
       
    42 {
       
    43 public:
       
    44 
       
    45     static bool addEffects( QEffectList list );
       
    46 
       
    47 private:
       
    48 
       
    49     RadioUiUtilities();
       
    50     ~RadioUiUtilities();
       
    51 
       
    52 };
       
    53 
       
    54 
       
    55 #endif // _RADIOUIUTILITIES_H_