ganeswidgets/inc/HgImageFader.h
changeset 6 1cdcc61142d2
parent 5 4fa04caf0f43
child 7 5ebec3429918
equal deleted inserted replaced
5:4fa04caf0f43 6:1cdcc61142d2
     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 HGIMAGEFADER_H_
       
    19 #define HGIMAGEFADER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QTimer>
       
    23 #include <QLinkedList>
       
    24 
       
    25 class HgImage;
       
    26 
       
    27 class HgImageFader : public QObject
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     HgImageFader();
       
    32     virtual ~HgImageFader();
       
    33     void addImage(HgImage* image);
       
    34     void removeImage(HgImage* image);
       
    35     void fadeImages();
       
    36 signals:
       
    37     void doUpdate();
       
    38 private slots:
       
    39     void doFading();
       
    40 private:
       
    41     QTimer mTimer;
       
    42     QLinkedList<HgImage*> mImages;
       
    43 };
       
    44 
       
    45 #endif /* HGIMAGEFADER_H_ */